Clean up return statement in ShopHandler::canPlayerBreakShop
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user