mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-14 18:44:48 +02:00
[trunk] fix /weather and /thunder args
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1281 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
@@ -27,7 +27,7 @@ public class Commandthunder extends EssentialsCommand
|
|||||||
user.charge(this);
|
user.charge(this);
|
||||||
World world = user.getWorld();
|
World world = user.getWorld();
|
||||||
boolean setThunder = args[0].equalsIgnoreCase("true");
|
boolean setThunder = args[0].equalsIgnoreCase("true");
|
||||||
if (!args[1].isEmpty() || args[1] != null)
|
if (args.length > 1)
|
||||||
{
|
{
|
||||||
|
|
||||||
world.setThundering(setThunder ? true : false);
|
world.setThundering(setThunder ? true : false);
|
||||||
|
@@ -26,7 +26,7 @@ public class Commandweather extends EssentialsCommand
|
|||||||
boolean isStorm = args[0].equalsIgnoreCase("storm");
|
boolean isStorm = args[0].equalsIgnoreCase("storm");
|
||||||
World world = user.getWorld();
|
World world = user.getWorld();
|
||||||
user.charge(this);
|
user.charge(this);
|
||||||
if (!args[1].isEmpty() || args[1] != null)
|
if (args.length > 1)
|
||||||
{
|
{
|
||||||
|
|
||||||
world.setStorm(isStorm ? true : false);
|
world.setStorm(isStorm ? true : false);
|
||||||
@@ -42,6 +42,3 @@ public class Commandweather extends EssentialsCommand
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user