public boolean isPermitted(String command, String subcommand) {
		if (player == null) {
			return true;
		}
		
		if (plugin.getPluginManager().getPermissions() != null) {
			if (subcommand != null) {
				return plugin.getPluginManager().getPermissions().has(player, "XcraftGate." + command
						+ "." + subcommand);
			} else {
				return plugin.getPluginManager().getPermissions().has(player, "XcraftGate." + command);
			}
		} else {
			if (subcommand != null) {
				return player.hasPermission("XcraftGate." + command + "." + subcommand);
			} else {
				return player.hasPermission("XcraftGate." + command);
			}
		}
	}