summaryrefslogtreecommitdiffstats
path: root/EssentialsChat/src/net/ess3/chat/ChatStore.java
blob: d099a3e04bfd5d0d9a7a65887ef6021ff46d5472 (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
package net.ess3.chat;

import net.ess3.api.IEssentials;
import net.ess3.api.IUser;
import net.ess3.economy.Trade;


public class ChatStore
{
	private final IUser user;
	private final String type;
	private final Trade charge;

	public ChatStore(final IEssentials ess, final IUser user, final String type)
	{
		this.user = user;
		this.type = type;
		this.charge = new Trade(getLongType(), ess);
	}

	public IUser getUser()
	{
		return user;
	}

	public Trade getCharge()
	{
		return charge;
	}

	public String getType()
	{
		return type;
	}

	public final String getLongType()
	{
		return type.length() == 0 ? "chat" : "chat-" + type;
	}
}