mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-16 03:24:31 +02:00
I spied some more big Booleans.
This commit is contained in:
@@ -26,7 +26,7 @@ public class Commandexp extends EssentialsCommand
|
|||||||
{
|
{
|
||||||
if (args.length == 3 && user.isAuthorized("essentials.exp.set.others"))
|
if (args.length == 3 && user.isAuthorized("essentials.exp.set.others"))
|
||||||
{
|
{
|
||||||
Boolean foundUser = false;
|
boolean foundUser = false;
|
||||||
for (Player matchPlayer : server.matchPlayer(args[1]))
|
for (Player matchPlayer : server.matchPlayer(args[1]))
|
||||||
{
|
{
|
||||||
User target = ess.getUser(matchPlayer);
|
User target = ess.getUser(matchPlayer);
|
||||||
@@ -45,7 +45,7 @@ public class Commandexp extends EssentialsCommand
|
|||||||
{
|
{
|
||||||
if (args.length == 3 && user.isAuthorized("essentials.exp.give.others"))
|
if (args.length == 3 && user.isAuthorized("essentials.exp.give.others"))
|
||||||
{
|
{
|
||||||
Boolean foundUser = false;
|
boolean foundUser = false;
|
||||||
for (Player matchPlayer : server.matchPlayer(args[1]))
|
for (Player matchPlayer : server.matchPlayer(args[1]))
|
||||||
{
|
{
|
||||||
User target = ess.getUser(matchPlayer);
|
User target = ess.getUser(matchPlayer);
|
||||||
|
@@ -55,7 +55,7 @@ public class Commandptime extends EssentialsCommand
|
|||||||
Long ticks;
|
Long ticks;
|
||||||
// Parse the target time int ticks from args[0]
|
// Parse the target time int ticks from args[0]
|
||||||
String timeParam = args[0];
|
String timeParam = args[0];
|
||||||
Boolean relative = true;
|
boolean relative = true;
|
||||||
if (timeParam.startsWith("@"))
|
if (timeParam.startsWith("@"))
|
||||||
{
|
{
|
||||||
relative = false;
|
relative = false;
|
||||||
|
@@ -98,7 +98,7 @@ public class Commandunlimited extends EssentialsCommand
|
|||||||
}
|
}
|
||||||
|
|
||||||
String message = "disableUnlimited";
|
String message = "disableUnlimited";
|
||||||
Boolean enableUnlimited = false;
|
boolean enableUnlimited = false;
|
||||||
if (!target.hasUnlimited(stack))
|
if (!target.hasUnlimited(stack))
|
||||||
{
|
{
|
||||||
message = "enableUnlimited";
|
message = "enableUnlimited";
|
||||||
|
Reference in New Issue
Block a user