Fixed spacing in code around ! operator.

This commit is contained in:
ProSavage
2018-11-07 10:14:42 -06:00
parent 7f1785e152
commit 84f1d354eb
119 changed files with 619 additions and 619 deletions

View File

@@ -35,7 +35,7 @@ public class Worldguard {
public static void init(Plugin plugin) {
Plugin wgplug = plugin.getServer().getPluginManager().getPlugin("WorldGuard");
if (wgplug == null || ! (wgplug instanceof WorldGuardPlugin)) {
if (wgplug == null || !(wgplug instanceof WorldGuardPlugin)) {
enabled = false;
wg = null;
SavageFactions.plugin.log("Could not hook to WorldGuard. WorldGuard checks are disabled.");
@@ -55,7 +55,7 @@ public class Worldguard {
// True: PVP is allowed
// False: PVP is disallowed
public static boolean isPVP(Player player) {
if (! enabled) {
if (!enabled) {
// No WG hooks so we'll always bypass this check.
return true;
}
@@ -74,7 +74,7 @@ public class Worldguard {
// True: Player can build in the region.
// False: Player can not build in the region.
public static boolean playerCanBuild(Player player, Location loc) {
if (! enabled) {
if (!enabled) {
// No WG hooks so we'll always bypass this check.
return false;
}
@@ -103,7 +103,7 @@ public class Worldguard {
}
public static boolean checkForRegionsInChunk(Chunk chunk) {
if (! enabled) {
if (!enabled) {
// No WG hooks so we'll always bypass this check.
return false;
}
@@ -128,7 +128,7 @@ public class Worldguard {
try {
overlaps = region.getIntersectingRegions(allregionslist);
foundregions = overlaps != null && ! overlaps.isEmpty();
foundregions = overlaps != null && !overlaps.isEmpty();
} catch (Exception e) {
e.printStackTrace();
}