Created
February 21, 2020 18:53
-
-
Save brcdev/54cd5f4731134c874ba0435df2d41858 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 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