More refactoring

This commit is contained in:
BuildTools authored and WiIIiam278 committed 2021-05-30 23:13:02 +01:00
1 parent b3fd814c0c
commit f3504a20a4
37 files changed
+1379 -1297

No files matched your search

@@ -72,6 +72,15 @@ public class Warp extends TeleportationPoint {
this.description = description;
}
/**
* Whether or not the player can use the warp
* @param player The player
* @return boolean; whether or not they can use the warp
*/
public boolean canUse(Player player) {
return getWarpCanUse(player, name);
}
// Returns if the player has permission to access the warp
public static boolean getWarpCanUse(Player p, String warpName) {
if (!HuskHomes.getSettings().doPermissionRestrictedWarps()) {