public void setPermissions(Player player, String playerGroup){
		if(haveAttachment(player)){
			reset(player);
		}
		
		PermissionAttachment attachment = player.addAttachment(xm);
		if(inherits(playerGroup)){
			setInheritedPermissions(player, attachment, playerGroup);
		}
		
		setGroupPermissions(player, playerGroup, attachment);
		
		if(playerHasPermissions(player.getName())){
			setPlayerPermissions(player, attachment);
		}
		
		storeAttachment(player, attachment, playerGroup);
		xc.setDisplayName(player, playerGroup);
	}