From 99150d673a304afcdb7b1724b92a0216092246a6 Mon Sep 17 00:00:00 2001 From: ementalo Date: Sun, 24 Apr 2011 20:49:02 +0000 Subject: [PATCH] delete git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1270 e251c2fe-e539-e718-e476-b85c1f46cddb --- .../essentials/commands/CommandWeather.java | 70 ------------------- 1 file changed, 70 deletions(-) delete mode 100644 Essentials/src/com/earth2me/essentials/commands/CommandWeather.java 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 + " [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 + " [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 + " [duration]"); - } - user.sendMessage("§cYou are not allowed to change the weather"); - break; - } - } -}