summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2011-12-20 11:57:22 +0100
committersnowleo <schneeleo@gmail.com>2011-12-20 11:57:22 +0100
commit31e80ba698e29d88be97aeaae87ecbd189cb1ea8 (patch)
tree0e036dc92d1995428ce9692045cc467e01a9fd9f
parentabd86347c70005c0a4d36400d16472019c3a9d7a (diff)
downloadEssentials-31e80ba698e29d88be97aeaae87ecbd189cb1ea8.tar
Essentials-31e80ba698e29d88be97aeaae87ecbd189cb1ea8.tar.gz
Essentials-31e80ba698e29d88be97aeaae87ecbd189cb1ea8.tar.lz
Essentials-31e80ba698e29d88be97aeaae87ecbd189cb1ea8.tar.xz
Essentials-31e80ba698e29d88be97aeaae87ecbd189cb1ea8.zip
Fix sending our player object to other plugins.
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandbreak.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandbreak.java b/Essentials/src/com/earth2me/essentials/commands/Commandbreak.java
index a1db8e0b2..2691ad4f2 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandbreak.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandbreak.java
@@ -31,7 +31,7 @@ public class Commandbreak extends EssentialsCommand
{
throw new Exception("You are not allowed to destroy bedrock."); //TODO: Translation
}
- final BlockBreakEvent event = new BlockBreakEvent(block, user);
+ final BlockBreakEvent event = new BlockBreakEvent(block, user.getBase());
server.getPluginManager().callEvent(event);
if (event.isCancelled())
{