summaryrefslogtreecommitdiffstats
path: root/EssentialsAntiCheat/src/com/earth2me/essentials/anticheat/NoCheatLogEvent.java
diff options
context:
space:
mode:
authormd_5 <md_5@bigpond.com>2012-03-12 10:39:36 +1100
committermd_5 <md_5@bigpond.com>2012-03-12 10:39:36 +1100
commit78f4820876f42f7b50bf88f64afd45bee939e4e4 (patch)
tree317cd3bcc63fc9e86a6efbcb5e13a50ed9efbaaf /EssentialsAntiCheat/src/com/earth2me/essentials/anticheat/NoCheatLogEvent.java
parent26409058467e9f34aa65a08df3c68a58129d22ba (diff)
downloadEssentials-78f4820876f42f7b50bf88f64afd45bee939e4e4.tar
Essentials-78f4820876f42f7b50bf88f64afd45bee939e4e4.tar.gz
Essentials-78f4820876f42f7b50bf88f64afd45bee939e4e4.tar.lz
Essentials-78f4820876f42f7b50bf88f64afd45bee939e4e4.tar.xz
Essentials-78f4820876f42f7b50bf88f64afd45bee939e4e4.zip
Initial formatted and slightly tweaked version of @evenprime 's NoCheat. Will be intergrated into the main Essentials as soon as possible
Diffstat (limited to 'EssentialsAntiCheat/src/com/earth2me/essentials/anticheat/NoCheatLogEvent.java')
-rw-r--r--EssentialsAntiCheat/src/com/earth2me/essentials/anticheat/NoCheatLogEvent.java78
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;
+ }
+}