summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2011-12-15 20:47:06 +0000
committerKHobbits <rob@khobbits.co.uk>2011-12-15 20:47:06 +0000
commit01530192cfd10e3286105988b8fc5c7b82edceca (patch)
treef8cbd48c794b1a54d2b35ed688d826f1d998a2dc
parent58bebd851c9d0e73633648a11a85eafda57bc451 (diff)
downloadEssentials-01530192cfd10e3286105988b8fc5c7b82edceca.tar
Essentials-01530192cfd10e3286105988b8fc5c7b82edceca.tar.gz
Essentials-01530192cfd10e3286105988b8fc5c7b82edceca.tar.lz
Essentials-01530192cfd10e3286105988b8fc5c7b82edceca.tar.xz
Essentials-01530192cfd10e3286105988b8fc5c7b82edceca.zip
Make powertool use a chat event, instead of just messaging each user.
-rw-r--r--Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java b/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java
index a90e98013..bb6741d30 100644
--- a/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java
+++ b/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java
@@ -313,10 +313,7 @@ public class EssentialsPlayerListener extends PlayerListener
}
else if (command.startsWith("c:"))
{
- for (Player p : server.getOnlinePlayers())
- {
- p.sendMessage(user.getDisplayName() + ":" + command.substring(2));
- }
+ user.chat(command.substring(2));
}
else
{