public void resetSuperPermission(String gatePerm) {
		PluginManager pm = plugin.getServer().getPluginManager();
		gatePerm = "XcraftGate.use." + gatePerm;
		
		if (pm.getPermission(gatePerm) == null) {
			pm.addPermission(new Permission(gatePerm, PermissionDefault.TRUE));
		}
		
		Permission superPerm = pm.getPermission("XcraftGate.use.*");
		if (superPerm != null) {
			if (superPerm.getChildren().containsKey(gatePerm)) return;
			pm.removePermission("xcraftgate.use.*");	
		}

		String descr = "Permission to use all gates";
		
		Map<String, Boolean> children = new HashMap<String, Boolean>();
		
		for (String name : gates.keySet()) {
			children.put("XcraftGate.use." + name, true);
		}
		
		superPerm = new Permission("XcraftGate.use.*", descr, (superPerm != null ? superPerm.getDefault() : PermissionDefault.TRUE), children);
		pm.addPermission(superPerm);
	}