diff options
Diffstat (limited to 'EssentialsAntiCheat/src/com/earth2me/essentials/anticheat/NoCheatLogEvent.java')
-rw-r--r-- | EssentialsAntiCheat/src/com/earth2me/essentials/anticheat/NoCheatLogEvent.java | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/EssentialsAntiCheat/src/com/earth2me/essentials/anticheat/NoCheatLogEvent.java b/EssentialsAntiCheat/src/com/earth2me/essentials/anticheat/NoCheatLogEvent.java new file mode 100644 index 000000000..28193405c --- /dev/null +++ b/EssentialsAntiCheat/src/com/earth2me/essentials/anticheat/NoCheatLogEvent.java @@ -0,0 +1,78 @@ +package com.earth2me.essentials.anticheat; + +import org.bukkit.event.Event; +import org.bukkit.event.HandlerList; + + +public class NoCheatLogEvent extends Event +{ + private static final HandlerList handlers = new HandlerList(); + private String message; + private String prefix; + private boolean toConsole, toChat, toFile; + + public NoCheatLogEvent(String prefix, String message, boolean toConsole, boolean toChat, boolean toFile) + { + this.prefix = prefix; + this.message = message; + this.toConsole = toConsole; + this.toChat = toChat; + this.toFile = toFile; + } + + public String getPrefix() + { + return prefix; + } + + public void setPrefix(String prefix) + { + this.prefix = prefix; + } + + public String getMessage() + { + return message; + } + + public void setMessage(String message) + { + this.message = message; + } + + public boolean toFile() + { + return toFile; + } + + public void setToFile(boolean toFile) + { + this.toFile = toFile; + } + + public boolean toChat() + { + return toChat; + } + + public void setToChat(boolean toChat) + { + this.toChat = toChat; + } + + public boolean toConsole() + { + return toConsole; + } + + public void setToConsole(boolean toConsole) + { + this.toConsole = toConsole; + } + + @Override + public HandlerList getHandlers() + { + return handlers; + } +} |