diff options
author | ementalo <ementalodev@gmx.co.uk> | 2012-10-10 14:00:38 +0100 |
---|---|---|
committer | ementalo <ementalodev@gmx.co.uk> | 2012-10-10 14:01:22 +0100 |
commit | 3d2870cc4e6f771a37304ce9e6267663e10d01e6 (patch) | |
tree | 008085f4380398b7c21de638696b176d5876a021 /EssentialsChat/src/net/ess3 | |
parent | 62d5f63ab19fd5b35f712598080b8aab7e5e7185 (diff) | |
download | Essentials-3d2870cc4e6f771a37304ce9e6267663e10d01e6.tar Essentials-3d2870cc4e6f771a37304ce9e6267663e10d01e6.tar.gz Essentials-3d2870cc4e6f771a37304ce9e6267663e10d01e6.tar.lz Essentials-3d2870cc4e6f771a37304ce9e6267663e10d01e6.tar.xz Essentials-3d2870cc4e6f771a37304ce9e6267663e10d01e6.zip |
Esschat clean up
Re-implement sign throttle Test #2331
Diffstat (limited to 'EssentialsChat/src/net/ess3')
-rw-r--r-- | EssentialsChat/src/net/ess3/chat/EssentialsChatPlayer.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/EssentialsChat/src/net/ess3/chat/EssentialsChatPlayer.java b/EssentialsChat/src/net/ess3/chat/EssentialsChatPlayer.java index 3d1be4521..8959c8a70 100644 --- a/EssentialsChat/src/net/ess3/chat/EssentialsChatPlayer.java +++ b/EssentialsChat/src/net/ess3/chat/EssentialsChatPlayer.java @@ -1,5 +1,6 @@ package net.ess3.chat; +import java.text.MessageFormat; import java.util.Locale; import java.util.Map; import java.util.logging.Logger; @@ -18,7 +19,6 @@ import org.bukkit.entity.Player; import org.bukkit.event.Listener; import org.bukkit.event.player.AsyncPlayerChatEvent; -//TODO: Translate the local/spy tags public abstract class EssentialsChatPlayer implements Listener { protected transient IEssentials ess; @@ -86,11 +86,14 @@ public abstract class EssentialsChatPlayer implements Listener String world = user.getPlayer().getWorld().getName(); IRanks groupSettings = ess.getRanks(); + MessageFormat format = groupSettings.getChatFormat(user); + synchronized(format) + { event.setFormat(groupSettings.getChatFormat(user).format(new Object[] { group, world, world.substring(0, 1).toUpperCase(Locale.ENGLISH) })); - + } } //TODO: Flesh this out - '?' trigger is too easily accidentally triggered |