package com.mcbans.firestar.mcbans.events;

import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;

public class PlayerUnbanEvent extends Event implements Cancellable {
    private static final HandlerList handlers = new HandlerList();
    private boolean isCancelled = false;

    private String player;
    private String sender;

    public PlayerUnbanEvent(String player, String sender) {
        this.player = player;
        this.sender = sender;
    }

    public String getPlayerName() {
        return this.player;
    }

    public String getSenderName() {
        return this.sender;
    }

    public void setSenderName(String senderName) {
        this.sender = senderName;
    }

    @Override
    public boolean isCancelled() {
        return this.isCancelled;
    }

    @Override
    public void setCancelled(boolean cancelled) {
        this.isCancelled = cancelled;
    }

    @Override
    public HandlerList getHandlers() {
        return handlers;
    }

    public static HandlerList getHandlerList() {
        return handlers;
    }
}

@@ -149,16 +149,64 @@
 ist;%0D%0A%0D%0A
+import com.mcbans.firestar.mcbans.util.Util;%0D%0A%0D%0A
 public c
@@ -398,22 +398,22 @@
  String 
-player
+target
 ;%0D%0A    p
@@ -472,22 +472,22 @@
 (String 
-player
+target
 , String
@@ -515,23 +515,23 @@
 his.
-player = player
+target = target
 ;%0D%0A 
@@ -561,32 +561,128 @@
 nder;%0D%0A    %7D%0D%0A%0D%0A
+    public String getTargetName() %7B%0D%0A        return this.target;%0D%0A    %7D%0D%0A    %0D%0A    @Deprecated%0D%0A
     public Strin
@@ -726,14 +726,23 @@
 his.
-player
+getTargetName()
 ;%0D%0A 
@@ -909,32 +909,121 @@
 derName;%0D%0A    %7D%0D
+%0A    %0D%0A    public boolean isIPBan()%7B%0D%0A        return Util.isValidIP(this.target);%0D%0A    %7D%0D
 %0A%0D%0A    @Override

Add isIPBan method to PlayerUnbanEvent