Closed CaszGamerMD closed 4 years ago
never used gradle, and its not letting me build,
please add: if (!itemDefinition.getAlreadyUsed().equals("") && event.getPlayer().hasPermission(itemDefinition.getAlreadyUsed())){ event.getPlayer().sendMessage(ChatColor.RED + "You have used this item!"); return; } after line 118 "if (!event.getPlayer().hasPermission("cmdi.item." + command))" of CommandItemManager.java
also add: @JsonProperty private String alreadyUsed;
public String getAlreadyUsed() { return alreadyUsed; }
to ItemDefinition please <3
Modern permissions plugins allow you to give players and groups "negated permissions", i.e. take away permissions that they would usually inherit.
items that grant permissions, should have an easy function to prevent repeat use.