Skip to content

Instantly share code, notes, and snippets.

@brcdev
Created February 21, 2020 18:53
Show Gist options
  • Save brcdev/4bc7a5c7b0b700976f00de5183998b12 to your computer and use it in GitHub Desktop.
Save brcdev/4bc7a5c7b0b700976f00de5183998b12 to your computer and use it in GitHub Desktop.
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