From 8bdcec9072015206e953ab373dbdff917153defd Mon Sep 17 00:00:00 2001 From: ementalo Date: Mon, 18 Jun 2012 12:16:21 +0100 Subject: [PATCH] Big boolean cleanup --- .../src/com/earth2me/essentials/commands/Commandexp.java | 4 ++-- .../src/com/earth2me/essentials/commands/Commandptime.java | 4 ++-- .../com/earth2me/essentials/commands/Commandunlimited.java | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandexp.java b/Essentials/src/com/earth2me/essentials/commands/Commandexp.java index 687335f0d..f5b9c3053 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandexp.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandexp.java @@ -21,7 +21,7 @@ public class Commandexp extends EssentialsCommand { if (args.length == 3 && Permissions.EXP_SET_OTHERS.isAuthorized(user)) { - Boolean foundUser = false; + boolean foundUser = false; for (Player matchPlayer : server.matchPlayer(args[1])) { IUser target = ess.getUser(matchPlayer); @@ -40,7 +40,7 @@ public class Commandexp extends EssentialsCommand { if (args.length == 3 && Permissions.EXP_GIVE_OTHERS.isAuthorized(user)) { - Boolean foundUser = false; + boolean foundUser = false; for (Player matchPlayer : server.matchPlayer(args[1])) { IUser target = ess.getUser(matchPlayer); diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandptime.java b/Essentials/src/com/earth2me/essentials/commands/Commandptime.java index c4c6e21a3..e7e887189 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandptime.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandptime.java @@ -50,7 +50,7 @@ public class Commandptime extends EssentialsCommand Long ticks; // Parse the target time int ticks from args[0] String timeParam = args[0]; - Boolean relative = true; + boolean relative = true; if (timeParam.startsWith("@")) { relative = false; @@ -115,7 +115,7 @@ public class Commandptime extends EssentialsCommand /** * Used to set the time and inform of the change */ - private void setUsersTime(final CommandSender sender, final Collection users, final Long ticks, Boolean relative) + private void setUsersTime(final CommandSender sender, final Collection users, final Long ticks, boolean relative) { // Update the time if (ticks == null) diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandunlimited.java b/Essentials/src/com/earth2me/essentials/commands/Commandunlimited.java index a6f6ae477..632a8567a 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandunlimited.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandunlimited.java @@ -76,7 +76,7 @@ public class Commandunlimited extends EssentialsCommand return output.toString(); } - private Boolean toggleUnlimited(final IUser user, final IUser target, final String item) throws Exception + private boolean toggleUnlimited(final IUser user, final IUser target, final String item) throws Exception { final ItemStack stack = ess.getItemDb().get(item, 1); stack.setAmount(Math.min(stack.getType().getMaxStackSize(), 2)); @@ -88,7 +88,7 @@ public class Commandunlimited extends EssentialsCommand } String message = "disableUnlimited"; - Boolean enableUnlimited = false; + boolean enableUnlimited = false; if (!target.getData().hasUnlimited(stack.getType())) { message = "enableUnlimited";