Fix sending our player object to other plugins.

This commit is contained in:
snowleo 2011-12-20 11:57:22 +01:00
parent cc06117210
commit 839ce3d526

View file

@ -31,7 +31,7 @@ public class Commandbreak extends EssentialsCommand
{ {
throw new Exception("You are not allowed to destroy bedrock."); //TODO: Translation 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); server.getPluginManager().callEvent(event);
if (event.isCancelled()) if (event.isCancelled())
{ {