9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2026-01-06 15:51:50 +00:00

clean: remove players list, just use permissions if you wish to limit it to a certain group.

This commit is contained in:
LoJoSho
2023-05-23 10:53:37 -05:00
parent 54e8e5102a
commit 7c95d9614d
3 changed files with 2 additions and 19 deletions

View File

@@ -245,10 +245,6 @@ public class CosmeticUser {
}
public void enterWardrobe(boolean ignoreDistance, Wardrobe wardrobe) {
if (wardrobe.hasPlayers() && !wardrobe.getPlayers().contains(getPlayer().getName())) {
MessagesUtil.sendMessage(getPlayer(), "wardrobe-not-included");
return;
}
if (wardrobe.hasPermission() && !getPlayer().hasPermission(wardrobe.getPermission())) {
MessagesUtil.sendMessage(getPlayer(), "no-permission");
return;