mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-02-26 09:11:34 +01:00
Fix sending our player object to other plugins.
This commit is contained in:
parent
abd86347c7
commit
31e80ba698
@ -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