Skip to content

Instantly share code, notes, and snippets.

@brcdev
Created February 21, 2020 18:53
Show Gist options
  • Save brcdev/54cd5f4731134c874ba0435df2d41858 to your computer and use it in GitHub Desktop.
Save brcdev/54cd5f4731134c874ba0435df2d41858 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 PlayerGangChatEvent extends Event implements Cancellable {
private static final HandlerList handlers = new HandlerList();
private Player player;
private String message;
private boolean cancelled;
public PlayerGangChatEvent(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