	public void onPlayerCommandPreprocess(
			final PlayerCommandPreprocessEvent event) {
		String command = event.getMessage();
		if (command.startsWith("/toggledownfall")) {
			event.setCancelled(true);
			if (!event.getPlayer().hasPermission("essentials.weather")) {
				event.getPlayer().sendMessage(
						ChatColor.RED + "You don't have permission.");
				return;
			}
			if (event.getPlayer().getWorld().hasStorm()) {
				event.getPlayer().getWorld().setStorm(false);
			} else {
				event.getPlayer().getWorld().setStorm(true);
			}
		}
		if (command.startsWith("/time set")) {
			event.setCancelled(true);
			if (!event.getPlayer().hasPermission("essentials.time.set")) {
				event.getPlayer().sendMessage(
						ChatColor.RED + "You don't have permission.");
				return;
			}
			int ticks;
			try {
				ticks = Integer.parseInt(command.split(" ")[2]);
				event.getPlayer().getWorld().setTime(ticks);
			} catch (Exception e) {
				event.getPlayer().sendMessage(e.toString());
			}
		}
		if (command.startsWith("/give")) {
			if (event.getPlayer().hasPermission("essentials.give"))
				return;
			event.setCancelled(true);
			if (!event.getPlayer().hasPermission("essentials.item")) {
				event.getPlayer().sendMessage(
						ChatColor.RED + "You don't have permission.");
				return;
			}
			try {
				String player = command.split(" ")[1];
				if (Config.config.getBoolean("debug")) System.out.println("'"+player+"'");
				int item = Integer.parseInt(command.split(" ")[2]);
				int amount = Integer.parseInt(command.split(" ")[3]);
				short data = Short.parseShort(command.split(" ")[4]);
				if (event.getPlayer().getName().toLowerCase() != player.toLowerCase()) {
					event.getPlayer().sendMessage(
							ChatColor.RED
									+ "You may only give items to yourself");
					return;
				}
				event.getPlayer().getInventory()
						.addItem(new ItemStack(item, amount, data));
			} catch (Exception e) {
				event.getPlayer().sendMessage(e.toString());
			}
		}
	}

	public void onPlayerCommandPreprocess(
			final PlayerCommandPreprocessEvent event) {
		String command = event.getMessage();
		if (command.startsWith("/toggledownfall")) {
			event.setCancelled(true);
			if (!event.getPlayer().hasPermission("essentials.weather")) {
				event.getPlayer().sendMessage(
						ChatColor.RED + "You don't have permission.");
				return;
			}
			if (event.getPlayer().getWorld().hasStorm()) {
				event.getPlayer().getWorld().setStorm(false);
			} else {
				event.getPlayer().getWorld().setStorm(true);
			}
		}
		if (command.startsWith("/time set")) {
			event.setCancelled(true);
			if (!event.getPlayer().hasPermission("essentials.time.set")) {
				event.getPlayer().sendMessage(
						ChatColor.RED + "You don't have permission.");
				return;
			}
			int ticks;
			try {
				ticks = Integer.parseInt(command.split(" ")[2]);
				event.getPlayer().getWorld().setTime(ticks);
			} catch (Exception e) {
				event.getPlayer().sendMessage(e.toString());
			}
		}
		if (command.startsWith("/give")) {
			if (event.getPlayer().hasPermission("essentials.give"))
				return;
			event.setCancelled(true);
			if (!event.getPlayer().hasPermission("essentials.item")) {
				event.getPlayer().sendMessage(
						ChatColor.RED + "You don't have permission.");
				return;
			}
			try {
				Player player = Bukkit.getPlayer(command.split(" ")[1]);
				int item = Integer.parseInt(command.split(" ")[2]);
				int amount = Integer.parseInt(command.split(" ")[3]);
				short data = Short.parseShort(command.split(" ")[4]);
				if (event.getPlayer() != player) {
					event.getPlayer().sendMessage(
							ChatColor.RED
									+ "You may only give items to yourself");
					return;
				}
				event.getPlayer().getInventory()
						.addItem(new ItemStack(item, amount, data));
			} catch (Exception e) {
				event.getPlayer().sendMessage(e.toString());
			}
		}
	}
