mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-08 07:36:42 +02:00
Converted emulated player class calls to use base class.
This commit is contained in:
@@ -57,7 +57,7 @@ public class EssentialsAntiBuildListener implements Listener
|
||||
final String blockPerm = "essentials.build." + action + "." + blockId;
|
||||
final String dataPerm = blockPerm + ":" + data;
|
||||
|
||||
if (user.isPermissionSet(dataPerm))
|
||||
if (user.getBase().isPermissionSet(dataPerm))
|
||||
{
|
||||
return user.isAuthorized(dataPerm);
|
||||
}
|
||||
@@ -304,7 +304,7 @@ public class EssentialsAntiBuildListener implements Listener
|
||||
if (!metaPermCheck(user, "drop", item.getTypeId(), item.getDurability()))
|
||||
{
|
||||
event.setCancelled(true);
|
||||
user.updateInventory();
|
||||
user.getBase().updateInventory();
|
||||
if (ess.getSettings().warnOnBuildDisallow())
|
||||
{
|
||||
user.sendMessage(tl("antiBuildDrop", item.getType().toString()));
|
||||
|
Reference in New Issue
Block a user