summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2011-09-05 22:59:37 +0200
committersnowleo <schneeleo@gmail.com>2011-09-05 22:59:37 +0200
commite8fbdef38b7ed8819146f7db33bafd1e4af34960 (patch)
treedce40a5ebb3f908a8894c3a7d751fdcea843acc8
parent998d097d7d3ee1cd03d4a3c040d4cf1384e115d9 (diff)
downloadEssentials-e8fbdef38b7ed8819146f7db33bafd1e4af34960.tar
Essentials-e8fbdef38b7ed8819146f7db33bafd1e4af34960.tar.gz
Essentials-e8fbdef38b7ed8819146f7db33bafd1e4af34960.tar.lz
Essentials-e8fbdef38b7ed8819146f7db33bafd1e4af34960.tar.xz
Essentials-e8fbdef38b7ed8819146f7db33bafd1e4af34960.zip
Using the correct player object for dispatching the command on powertool use.
-rw-r--r--Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java b/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java
index 881d5a636..c70afa20d 100644
--- a/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java
+++ b/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java
@@ -465,7 +465,7 @@ public class EssentialsPlayerListener extends PlayerListener
}
else
{
- user.getServer().dispatchCommand(user, command);
+ user.getServer().dispatchCommand(event.getPlayer(), command);
}
}
}