Created
May 29, 2017 19:12
-
-
Save brcdev/5997696cd2d6ce7881f0e16b5a667b8f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.brcdev.gangs.event; | |
import net.brcdev.gangs.gang.Gang; | |
import org.bukkit.entity.Player; | |
import org.bukkit.event.Cancellable; | |
import org.bukkit.event.Event; | |
import org.bukkit.event.HandlerList; | |
/** | |
* Called when a gang gets created | |
*/ | |
public class GangCreateEvent extends Event implements Cancellable { | |
private static final HandlerList handlers = new HandlerList(); | |
private Gang gang; | |
private Player player; | |
private boolean cancelled; | |
public GangCreateEvent(Gang gang, Player player) { | |
this.gang = gang; | |
this.player = player; | |
} | |
/** | |
* Gets the gang which was created | |
* | |
* @return Gang Gang which was created | |
*/ | |
public Gang getGang() { | |
return gang; | |
} | |
/** | |
* Gets the player who created the gang | |
* | |
* @return Player Player who created the gang | |
*/ | |
public Player getPlayer() { | |
return player; | |
} | |
public boolean isCancelled() { | |
return cancelled; | |
} | |
public void setCancelled(boolean cancel) { | |
cancelled = cancel; | |
} | |
public HandlerList getHandlers() { | |
return handlers; | |
} | |
public static HandlerList getHandlerList() { | |
return handlers; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment