mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-03 20:41:37 +00:00
Code cleanup
This commit is contained in:
parent
c0a58a5316
commit
3839b6f1f5
1 changed files with 4 additions and 4 deletions
|
@ -43,7 +43,7 @@ public class Commandweather extends EssentialsCommand
|
||||||
if (args.length > 1)
|
if (args.length > 1)
|
||||||
{
|
{
|
||||||
|
|
||||||
world.setStorm(isStorm ? true : false);
|
world.setStorm(isStorm);
|
||||||
world.setWeatherDuration(Integer.parseInt(args[1]) * 20);
|
world.setWeatherDuration(Integer.parseInt(args[1]) * 20);
|
||||||
user.sendMessage(isStorm
|
user.sendMessage(isStorm
|
||||||
? _("weatherStormFor", world.getName(), args[1])
|
? _("weatherStormFor", world.getName(), args[1])
|
||||||
|
@ -51,7 +51,7 @@ public class Commandweather extends EssentialsCommand
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
world.setStorm(isStorm ? true : false);
|
world.setStorm(isStorm);
|
||||||
user.sendMessage(isStorm
|
user.sendMessage(isStorm
|
||||||
? _("weatherStorm", world.getName())
|
? _("weatherStorm", world.getName())
|
||||||
: _("weatherSun", world.getName()));
|
: _("weatherSun", world.getName()));
|
||||||
|
@ -76,7 +76,7 @@ public class Commandweather extends EssentialsCommand
|
||||||
if (args.length > 2)
|
if (args.length > 2)
|
||||||
{
|
{
|
||||||
|
|
||||||
world.setStorm(isStorm ? true : false);
|
world.setStorm(isStorm);
|
||||||
world.setWeatherDuration(Integer.parseInt(args[2]) * 20);
|
world.setWeatherDuration(Integer.parseInt(args[2]) * 20);
|
||||||
sender.sendMessage(isStorm
|
sender.sendMessage(isStorm
|
||||||
? _("weatherStormFor", world.getName(), args[2])
|
? _("weatherStormFor", world.getName(), args[2])
|
||||||
|
@ -84,7 +84,7 @@ public class Commandweather extends EssentialsCommand
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
world.setStorm(isStorm ? true : false);
|
world.setStorm(isStorm);
|
||||||
sender.sendMessage(isStorm
|
sender.sendMessage(isStorm
|
||||||
? _("weatherStorm", world.getName())
|
? _("weatherStorm", world.getName())
|
||||||
: _("weatherSun", world.getName()));
|
: _("weatherSun", world.getName()));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue