mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 20:29:20 +00:00
Fix sending our player object to other plugins.
This commit is contained in:
parent
cc06117210
commit
839ce3d526
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue