diff options
author | ementalo <ementalo@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-04-24 20:49:02 +0000 |
---|---|---|
committer | ementalo <ementalo@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-04-24 20:49:02 +0000 |
commit | 99150d673a304afcdb7b1724b92a0216092246a6 (patch) | |
tree | 65551bc7678a6f7bb421064de1841323bcf13864 | |
parent | ea284b6b0fc0279172c087e0ab1c113d184f1780 (diff) | |
download | Essentials-99150d673a304afcdb7b1724b92a0216092246a6.tar Essentials-99150d673a304afcdb7b1724b92a0216092246a6.tar.gz Essentials-99150d673a304afcdb7b1724b92a0216092246a6.tar.lz Essentials-99150d673a304afcdb7b1724b92a0216092246a6.tar.xz Essentials-99150d673a304afcdb7b1724b92a0216092246a6.zip |
delete
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1270 e251c2fe-e539-e718-e476-b85c1f46cddb
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/CommandWeather.java | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/CommandWeather.java b/Essentials/src/com/earth2me/essentials/commands/CommandWeather.java deleted file mode 100644 index b62a4cb7a..000000000 --- a/Essentials/src/com/earth2me/essentials/commands/CommandWeather.java +++ /dev/null @@ -1,70 +0,0 @@ -package com.earth2me.essentials.commands; - -import com.earth2me.essentials.Essentials; -import com.earth2me.essentials.User; - -import org.bukkit.Server; - -public class CommandWeather extends EssentialsCommand -{ - public CommandWeather() - { - super("weather"); - } - - @Override - public void run(Server server, Essentials parent, User user, String commandLabel, String[] args) throws Exception - { - switch (args.length) - { - case 0: - if (user.isAuthorized("essentials.weather")) - { - user.sendMessage("§cUsage: /" + commandLabel + " <storm/sun> [duration]"); - break; - } - user.sendMessage("§cYou are not allowed to change the weather"); - break; - case 1: - if (user.isAuthorized("essentials.weather")) - { - if(args[0].equalsIgnoreCase("storm")) - { - user.getWorld().setStorm(true); - user.sendMessage("§7You set the weather in your world to storm"); - break; - } - if(args[0].equalsIgnoreCase("sun")) - { - user.getWorld().setStorm(false); - user.sendMessage("§7You set the weather in your world to sun"); - break; - } - user.sendMessage("§cUsage: /" + commandLabel + " <storm/sun> [duration]"); - } - user.sendMessage("§cYou are not allowed to change the weather"); - break; - case 2: - if (user.isAuthorized("essentials.weather")) - { - if(args[0].equalsIgnoreCase("storm")) - { - user.getWorld().setStorm(true); - user.getWorld().setWeatherDuration(Integer.parseInt(args[1]) * 20); - user.sendMessage("§7You set the weather in your world to storm for " + args[1] + " seconds"); - break; - } - if(args[0].equalsIgnoreCase("sun")) - { - user.getWorld().setStorm(false); - user.getWorld().setWeatherDuration(Integer.parseInt(args[1]) * 20); - user.sendMessage("§7You set the weather in your world to sun for " + args[1] + " seconds"); - break; - } - user.sendMessage("§cUsage: /" + commandLabel + " <storm/sun> [duration]"); - } - user.sendMessage("§cYou are not allowed to change the weather"); - break; - } - } -} |