mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-04 06:28:49 +00:00
More refactoring
This commit is contained in:
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()) {
|
||||
|
||||
Reference in new issue
Block a user