summaryrefslogtreecommitdiffstats
path: root/EssentialsAntiCheat/src/com/earth2me/essentials/anticheat/NoCheatLogEvent.java
blob: fe56f15726fdf0b3b652664cd45ad8ceced6155c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
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;
	}

	public static HandlerList getHandlerList()
	{
		return handlers;
	}
}