diff options
Diffstat (limited to 'EssentialsChat/src/com/earth2me/essentials/chat/ChatStore.java')
-rw-r--r-- | EssentialsChat/src/com/earth2me/essentials/chat/ChatStore.java | 29 |
1 files changed, 9 insertions, 20 deletions
diff --git a/EssentialsChat/src/com/earth2me/essentials/chat/ChatStore.java b/EssentialsChat/src/com/earth2me/essentials/chat/ChatStore.java index d353d5d6c..887ac8337 100644 --- a/EssentialsChat/src/com/earth2me/essentials/chat/ChatStore.java +++ b/EssentialsChat/src/com/earth2me/essentials/chat/ChatStore.java @@ -1,25 +1,24 @@ package com.earth2me.essentials.chat; -import com.earth2me.essentials.IEssentials; -import com.earth2me.essentials.Trade; -import com.earth2me.essentials.User; +import com.earth2me.essentials.economy.Trade; +import com.earth2me.essentials.api.IEssentials; +import com.earth2me.essentials.api.IUser; public class ChatStore { - private final User user; - private final String type; - private final Trade charge; - private long radius; + private final transient IUser user; + private final transient String type; + private final transient Trade charge; - ChatStore(final IEssentials ess, final User user, final String type) + public ChatStore(final IEssentials ess, final IUser user, final String type) { this.user = user; this.type = type; this.charge = new Trade(getLongType(), ess); } - public User getUser() + public IUser getUser() { return user; } @@ -34,18 +33,8 @@ public class ChatStore return type; } - public String getLongType() + public final String getLongType() { return type.length() == 0 ? "chat" : "chat-" + type; } - - public long getRadius() - { - return radius; - } - - public void setRadius(long radius) - { - this.radius = radius; - } } |