Created
February 21, 2020 18:53
-
-
Save brcdev/4bc7a5c7b0b700976f00de5183998b12 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 org.bukkit.entity.Player; | |
import org.bukkit.event.Cancellable; | |
import org.bukkit.event.Event; | |
import org.bukkit.event.HandlerList; | |
public class PlayerAllyChatEvent extends Event implements Cancellable { | |
private static final HandlerList handlers = new HandlerList(); | |
private Player player; | |
private String message; | |
private boolean cancelled; | |
public PlayerAllyChatEvent(Player player, String message) { | |
this.player = player; | |
this.message = message; | |
} | |
public static HandlerList getHandlerList() { | |
return handlers; | |
} | |
public Player getPlayer() { | |
return player; | |
} | |
public String getMessage() { | |
return message; | |
} | |
public void setMessage(String message) { | |
this.message = message; | |
} | |
public boolean isCancelled() { | |
return cancelled; | |
} | |
public void setCancelled(boolean cancel) { | |
cancelled = cancel; | |
} | |
public HandlerList getHandlers() { | |
return handlers; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment