private void doAction(final Pair<String> action) {
		switch(action.one) {
		case "add_user":
			final String[] temp = action.two.split(" ");
			
			if( temp.length == 2 ) {
				if( addUser(temp[0], temp[1]) ) {
					writeToScreen("ADDUSER: Added user '" + temp[0] + "' with password '" + temp[1] + "'.");
				}
				else {
					writeToScreen("ADDUSER: Error, that user already exists!");
				}
			}
			else writeToScreen("ADDUSER: Error, missing parameter.");
			
			break;
		case "delete_user":
			if( deleteUser(action.two, users.get(action.two).getPassword()) ) {
				writeToScreen("DELUSER: Deleted user '" + action.two + "'.");
			}
			else {
				writeToScreen("DELUSER: Error, no such user!");
			}
			
			break;
		case "modify_user_perms":
			final String[] temp1 = action.two.split(" ");
			
			if( temp1.length == 2 ) {
				final User user = users.get(temp1[0]);
				
				if( user != null ) {
					final Integer oldPerm = user.getPerm();
					final Integer newPerm = Utils.toInt(temp1[0], oldPerm);
					
					if( newPerm != oldPerm ) {
						user.setPerm( newPerm );
						writeToScreen("MODPERM: Permissions changed to " + user.getPerm() + " for user '" + user.getName() + "'.");
					}
					else {
						writeToScreen("MODPERM: Error, new permissions same as old permissions, no changes made.");
					}
				}
				else {
					writeToScreen("MODPERM: Error, no such user!");
				}
			}
			else writeToScreen("MODPERM: Error, missing parameter.");
			
			break;
		}
	}