1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-10-01 16:46:51 +02:00
Files
Essentials/EssentialsChat/src/com/earth2me/essentials/chat/ChatStore.java
KHobbits df061749dd 2nd sweep over Essentials Chat, to implement 2.8 changes.
Formatting cache still needs reimplemented.
2012-01-24 23:20:00 +00:00

41 lines
721 B
Java

package com.earth2me.essentials.chat;
import com.earth2me.essentials.Trade;
import com.earth2me.essentials.api.IEssentials;
import com.earth2me.essentials.api.IUser;
public class ChatStore
{
private final transient IUser user;
private final transient String type;
private final transient 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;
}
}