mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 03:38:28 +00:00
Fix pickup delay with essentials.build.pickup permission (#4273)
Co-authored-by: Josh Roy <10731363+JRoy@users.noreply.github.com>
This commit is contained in:
parent
3f36a52685
commit
c18830ce75
1 changed files with 0 additions and 2 deletions
|
@ -393,7 +393,6 @@ public class EssentialsAntiBuildListener implements Listener {
|
|||
if (prot.getSettingBool(AntiBuildConfig.disable_use) && !user.canBuild()) {
|
||||
if (!metaPermCheck(user, "pickup", item.getType(), item.getDurability())) {
|
||||
event.setCancelled(true);
|
||||
event.getItem().setPickupDelay(50);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -409,7 +408,6 @@ public class EssentialsAntiBuildListener implements Listener {
|
|||
if (prot.getSettingBool(AntiBuildConfig.disable_use) && !user.canBuild()) {
|
||||
if (!metaPermCheck(user, "pickup", item.getType(), item.getDurability())) {
|
||||
event.setCancelled(true);
|
||||
event.getItem().setPickupDelay(50);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue