mirror of
https://github.com/GeorgH93/Minepacks.git
synced 2025-02-19 02:11:36 +01:00
Fixed a faulty conditional
This commit is contained in:
parent
be7f92c436
commit
25f4293c8b
@ -72,8 +72,8 @@ public void run()
|
|||||||
{
|
{
|
||||||
if(plugin.isDisabled(player) != WorldBlacklistMode.None) return;
|
if(plugin.isDisabled(player) != WorldBlacklistMode.None) return;
|
||||||
|
|
||||||
// Check toggle
|
// If toggle is enabled AND player has been disabled, return.
|
||||||
if (!isToggleable || !isPickupEnabled(player.getUniqueId())) return;
|
if (isToggleable && !isPickupEnabled(player.getUniqueId())) return;
|
||||||
|
|
||||||
// No permission ot use the backpack.
|
// No permission ot use the backpack.
|
||||||
if (!player.hasPermission(Permissions.USE)) return;
|
if (!player.hasPermission(Permissions.USE)) return;
|
||||||
|
Loading…
Reference in New Issue
Block a user