diff options
author | snowleo <schneeleo@gmail.com> | 2012-10-06 16:49:40 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2012-10-06 16:49:40 +0200 |
commit | fabd88dc2585bf6798658f34a7ee122225316fe8 (patch) | |
tree | cdda3fad01567f042d5afbaa189ac12ef94f2b7e /EssentialsChat/src/net/ess3 | |
parent | 463c4ff62db553fc980545665a332ef7bbecdcc6 (diff) | |
download | Essentials-fabd88dc2585bf6798658f34a7ee122225316fe8.tar Essentials-fabd88dc2585bf6798658f34a7ee122225316fe8.tar.gz Essentials-fabd88dc2585bf6798658f34a7ee122225316fe8.tar.lz Essentials-fabd88dc2585bf6798658f34a7ee122225316fe8.tar.xz Essentials-fabd88dc2585bf6798658f34a7ee122225316fe8.zip |
Less locks please
Diffstat (limited to 'EssentialsChat/src/net/ess3')
-rw-r--r-- | EssentialsChat/src/net/ess3/chat/EssentialsChatPlayer.java | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/EssentialsChat/src/net/ess3/chat/EssentialsChatPlayer.java b/EssentialsChat/src/net/ess3/chat/EssentialsChatPlayer.java index 9bf791372..20019b179 100644 --- a/EssentialsChat/src/net/ess3/chat/EssentialsChatPlayer.java +++ b/EssentialsChat/src/net/ess3/chat/EssentialsChatPlayer.java @@ -1,5 +1,8 @@ package net.ess3.chat; +import java.util.Locale; +import java.util.Map; +import java.util.logging.Logger; import static net.ess3.I18n._; import net.ess3.api.ChargeException; import net.ess3.api.IEssentials; @@ -8,10 +11,6 @@ import net.ess3.api.ISettings; import net.ess3.api.IUser; import net.ess3.economy.Trade; import net.ess3.permissions.Permissions; -import net.ess3.utils.Util; -import java.util.Locale; -import java.util.Map; -import java.util.logging.Logger; import net.ess3.utils.FormatUtil; import org.bukkit.Server; import org.bukkit.command.CommandSender; @@ -112,18 +111,8 @@ public abstract class EssentialsChatPlayer implements Listener protected void handleLocalChat(final PlayerChatEvent event, final ChatStore chatStore) { - - long radius = 0; ISettings settings = ess.getSettings(); - settings.acquireReadLock(); - try - { - radius = settings.getData().getChat().getLocalRadius(); - } - finally - { - settings.unlock(); - } + long radius = settings.getData().getChat().getLocalRadius(); if (radius < 1) { |