mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-31 09:52:57 +00:00
Converted emulated player class calls to use base class.
This commit is contained in:
parent
e007331581
commit
36e580474f
61 changed files with 214 additions and 214 deletions
|
@ -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()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue