mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-07 04:53:00 +00:00
Plot download command + slight refactor
This commit is contained in:
parent
a8a59f2509
commit
5b9fe1960b
49 changed files with 379 additions and 242 deletions
|
@ -353,7 +353,7 @@ public class MainUtil {
|
|||
else {
|
||||
location = getDefaultHome(plot);
|
||||
}
|
||||
if ((Settings.TELEPORT_DELAY == 0) || Perm.hasPermission(player, "plots.teleport.delay.bypass")) {
|
||||
if ((Settings.TELEPORT_DELAY == 0) || Permissions.hasPermission(player, "plots.teleport.delay.bypass")) {
|
||||
sendMessage(player, C.TELEPORTED_TO_PLOT);
|
||||
player.teleport(location);
|
||||
return true;
|
||||
|
@ -1093,7 +1093,7 @@ public class MainUtil {
|
|||
if (Settings.ENABLE_CLUSTERS) {
|
||||
PlotCluster cluster = ClusterManager.getCluster(plot);
|
||||
if (cluster != null) {
|
||||
if (!cluster.isAdded(player.getUUID()) && !Perm.hasPermission(player, "plots.admin.command.claim")) {
|
||||
if (!cluster.isAdded(player.getUUID()) && !Permissions.hasPermission(player, "plots.admin.command.claim")) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@ -1558,7 +1558,7 @@ public class MainUtil {
|
|||
* @return int
|
||||
*/
|
||||
public static int getAllowedPlots(final PlotPlayer p) {
|
||||
return Perm.hasPermissionRange(p, "plots.plot", Settings.MAX_PLOTS);
|
||||
return Permissions.hasPermissionRange(p, "plots.plot", Settings.MAX_PLOTS);
|
||||
}
|
||||
|
||||
public static Plot getPlot(final Location loc) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue