Mirror von
https://github.com/St3venAU/ArmorStandTools.git
synchronisiert 2024-12-28 12:30:07 +01:00
Remove debug messages
Dieser Commit ist enthalten in:
Ursprung
8860434d19
Commit
f83e53d564
@ -222,14 +222,12 @@ public class Main extends JavaPlugin {
|
|||||||
// If in the wilderness and AST disabled
|
// If in the wilderness and AST disabled
|
||||||
if (TownyAPI.getInstance().isWilderness(b.getLocation())
|
if (TownyAPI.getInstance().isWilderness(b.getLocation())
|
||||||
&& !getWorldGuardAstFlag(b.getLocation())) {
|
&& !getWorldGuardAstFlag(b.getLocation())) {
|
||||||
System.out.println("AST Disabled");
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If in the wilderness and cannot break with WorldGuard
|
// If in the wilderness and cannot break with WorldGuard
|
||||||
if (TownyAPI.getInstance().isWilderness(b.getLocation())
|
if (TownyAPI.getInstance().isWilderness(b.getLocation())
|
||||||
&& !Config.worldGuardPlugin.createProtectionQuery().testBlockBreak(p, b)) {
|
&& !Config.worldGuardPlugin.createProtectionQuery().testBlockBreak(p, b)) {
|
||||||
System.out.println("Cannot break");
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -237,14 +235,12 @@ public class Main extends JavaPlugin {
|
|||||||
// If in the wilderness and cannot break with Towny
|
// If in the wilderness and cannot break with Towny
|
||||||
if (TownyAPI.getInstance().isWilderness(b.getLocation())
|
if (TownyAPI.getInstance().isWilderness(b.getLocation())
|
||||||
&& !TownyActionEventExecutor.canDestroy(p, b.getLocation(), Material.ARMOR_STAND)) {
|
&& !TownyActionEventExecutor.canDestroy(p, b.getLocation(), Material.ARMOR_STAND)) {
|
||||||
System.out.println("Cannot break");
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If not inside their own town
|
// If not inside their own town
|
||||||
if (!TownyAPI.getInstance().isWilderness(b.getLocation())
|
if (!TownyAPI.getInstance().isWilderness(b.getLocation())
|
||||||
&& !TownyActionEventExecutor.canDestroy(p, b.getLocation(), Material.ARMOR_STAND)) {
|
&& !TownyActionEventExecutor.canDestroy(p, b.getLocation(), Material.ARMOR_STAND)) {
|
||||||
System.out.println("Not in own town");
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren