mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-10-16 08:25:07 +02:00
Fix sending our player object to other plugins.
This commit is contained in:
parent
cc06117210
commit
839ce3d526
@ -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())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user