mirror of
https://github.com/essentials/Essentials.git
synced 2025-09-26 06:09:15 +02:00
Initial formatted and slightly tweaked version of @evenprime 's NoCheat. Will be intergrated into the main Essentials as soon as possible
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user