ChangeSkinX

ChangeSkinX

446k Downloads

Whitelist and Blacklist

andramil opened this issue ยท 5 comments

commented

Hi,
I wanted to set blacklist on my BungeeCord server but BungeeCord doesn't support wildcard permissions.
How can I blacklist some skins?

commented

That could work in BungeeCord, because I wrote some workaround it.

} else if (invoker.hasPermission(getName().toLowerCase() + ".skin.whitelist.*")) {
if (invoker.hasPermission('-' + getName().toLowerCase() + ".skin.whitelist." + uuid.toString())) {
//blacklisted explicit
sendMessage(invoker, "no-permission");
return false;
}
return true;
}

This checks for the wildcard permission and performs another check for the negative permission.

commented

With:
bukkit-permissions: true
They have to have both
changeskin.command.setskin
on bungeecord permissions and bukkit permissions.
If i set blacklist and give them

  - changeskin.skin.whitelist.*
  - -changeskin.skin.whitelist.8c4c8312-e8d1-4c0d-a132-f206409c8f24
  - -changeskin.skin.whitelist.7573a14e-fd2e-43bf-89b6-6391fc0e9f70
  - -changeskin.skin.whitelist.456bbc85-2dc8-44df-a741-850ea9ecc004
  - -changeskin.skin.whitelist.f1232e8a-991d-4bd7-bda5-033b34ab994b

on bungeecord, do I have to give this same on bukkit?
If not - its not working. If yes, I will check at night.

commented

With bukkit-permissions enabled, you should give the players the full permission on BungeeCord and the actual check will performed on Bukkit.

commented

Forgot about this topic.
WL and BL working great ;)

commented

Thanks for the response.