Clean up return statement in ShopHandler::canPlayerBreakShop
This commit is contained in:
parent
723f448a76
commit
57be263412
|
|
@ -171,10 +171,7 @@ public class ShopHandler {
|
||||||
if (player.getUniqueId().equals(shop.getOwnerUUID()) && player.hasPermission("playershops.shop.break"))
|
if (player.getUniqueId().equals(shop.getOwnerUUID()) && player.hasPermission("playershops.shop.break"))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if (player.hasPermission("playershops.shop.break.other"))
|
return player.hasPermission("playershops.shop.break.other");
|
||||||
return true;
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public PlayerSettings getPlayerSettings(UUID uuid) { // TODO a manager for this, extracted and edited from unished PlayerSettingsPlugin
|
public PlayerSettings getPlayerSettings(UUID uuid) { // TODO a manager for this, extracted and edited from unished PlayerSettingsPlugin
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user