mirror of
https://github.com/HibiscusMC/HMCCosmetics.git
synced 2025-12-30 20:39:13 +00:00
Wardrobe command now supports another player properly
This commit is contained in:
@@ -143,7 +143,7 @@ public class CosmeticCommand implements CommandExecutor {
|
||||
Player player = null;
|
||||
|
||||
if (sender instanceof Player) player = ((Player) sender).getPlayer();
|
||||
if (args.length >= 3) player = Bukkit.getPlayer(args[2]);
|
||||
if (args.length >= 2) player = Bukkit.getPlayer(args[1]);
|
||||
|
||||
if (!player.hasPermission("HMCCosmetic.wardrobe")) {
|
||||
MessagesUtil.sendMessage(sender, "no-permission");
|
||||
|
||||
Reference in New Issue
Block a user