private void cmd_shutdown(final String arg, final Client client) {
		// shutdown [ now /-h <secs> ]
		// shutdown -h 5
		
		final String[] args = arg.split(" ");

		if (args.length == 1) {
			final String param = args[0];

			if ( param.equals("now") ) {
				debug("SHUTDOWN TYPE: IMMEDIATE");
				
				// tell people the server is going down
				write("Server going down immediately.");

				shutdown();
			}
			else if ( param.equals("-h")) {
				debug("SHUTDOWN TYPE: TIMED");

				int time = 0;

				if (args.length == 2) {
					time = Utils.toInt(args[1], 300);
				}
				
				String time_str = (time / 60) + "m" + " " + (time % 60) + "s";
				
				// tell people the server is going down
				write("Server going down for reboot in " + time_str);

				shutdown(time);
			}
		}
		else {
			debug("SHUTDOWN TYPE: NORMAL");
			
			// tell people the server is going down
			write("Server going down for reboot in 10 minutes.");

			shutdown(600); // 10 m * 60 s/m = 600 s
		}
	}