mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-05 07:57:59 +01: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
@ -393,7 +393,6 @@ public class EssentialsAntiBuildListener implements Listener {
|
|||||||
if (prot.getSettingBool(AntiBuildConfig.disable_use) && !user.canBuild()) {
|
if (prot.getSettingBool(AntiBuildConfig.disable_use) && !user.canBuild()) {
|
||||||
if (!metaPermCheck(user, "pickup", item.getType(), item.getDurability())) {
|
if (!metaPermCheck(user, "pickup", item.getType(), item.getDurability())) {
|
||||||
event.setCancelled(true);
|
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 (prot.getSettingBool(AntiBuildConfig.disable_use) && !user.canBuild()) {
|
||||||
if (!metaPermCheck(user, "pickup", item.getType(), item.getDurability())) {
|
if (!metaPermCheck(user, "pickup", item.getType(), item.getDurability())) {
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
event.getItem().setPickupDelay(50);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user