1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-18 04:21:31 +02:00

Big boolean cleanup

This commit is contained in:
ementalo
2012-06-18 12:16:21 +01:00
parent 933d648ef6
commit 8bdcec9072
3 changed files with 6 additions and 6 deletions

View File

@@ -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);

View File

@@ -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<IUser> users, final Long ticks, Boolean relative)
private void setUsersTime(final CommandSender sender, final Collection<IUser> users, final Long ticks, boolean relative)
{
// Update the time
if (ticks == null)

View File

@@ -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";