mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-10 16:48:05 +02:00
Fix sending our player object to other plugins.
This commit is contained in:
@@ -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())
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user