summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTheReverend403 <rev@foxdev.co>2013-12-05 01:30:40 +0000
committerKHobbits <rob@khobbits.co.uk>2013-12-05 23:06:04 +0000
commit3839b6f1f58632fee10c80e7363b9e3ebee538d8 (patch)
tree2a3c973a9a493e0ab250f43833bcef3cbafecb41
parentc0a58a53167d4553f564772710daca4b3d7e47ae (diff)
downloadEssentials-3839b6f1f58632fee10c80e7363b9e3ebee538d8.tar
Essentials-3839b6f1f58632fee10c80e7363b9e3ebee538d8.tar.gz
Essentials-3839b6f1f58632fee10c80e7363b9e3ebee538d8.tar.lz
Essentials-3839b6f1f58632fee10c80e7363b9e3ebee538d8.tar.xz
Essentials-3839b6f1f58632fee10c80e7363b9e3ebee538d8.zip
Code cleanup
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandweather.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandweather.java b/Essentials/src/com/earth2me/essentials/commands/Commandweather.java
index e193a4913..c59c88930 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandweather.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandweather.java
@@ -43,7 +43,7 @@ public class Commandweather extends EssentialsCommand
if (args.length > 1)
{
- world.setStorm(isStorm ? true : false);
+ world.setStorm(isStorm);
world.setWeatherDuration(Integer.parseInt(args[1]) * 20);
user.sendMessage(isStorm
? _("weatherStormFor", world.getName(), args[1])
@@ -51,7 +51,7 @@ public class Commandweather extends EssentialsCommand
}
else
{
- world.setStorm(isStorm ? true : false);
+ world.setStorm(isStorm);
user.sendMessage(isStorm
? _("weatherStorm", world.getName())
: _("weatherSun", world.getName()));
@@ -76,7 +76,7 @@ public class Commandweather extends EssentialsCommand
if (args.length > 2)
{
- world.setStorm(isStorm ? true : false);
+ world.setStorm(isStorm);
world.setWeatherDuration(Integer.parseInt(args[2]) * 20);
sender.sendMessage(isStorm
? _("weatherStormFor", world.getName(), args[2])
@@ -84,7 +84,7 @@ public class Commandweather extends EssentialsCommand
}
else
{
- world.setStorm(isStorm ? true : false);
+ world.setStorm(isStorm);
sender.sendMessage(isStorm
? _("weatherStorm", world.getName())
: _("weatherSun", world.getName()));