mirror of
https://e.coding.net/circlecloud/EquipManager.git
synced 2024-12-04 12:38:48 +00:00
change permission prefix ...
Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
parent
ebe73712cc
commit
9b10524794
@ -17,8 +17,8 @@ public class ArmorHandlerTask implements Runnable {
|
|||||||
return;
|
return;
|
||||||
ItemStack[] armors = p.getInventory().getArmorContents();
|
ItemStack[] armors = p.getInventory().getArmorContents();
|
||||||
for (ItemStack armor : armors) {
|
for (ItemStack armor : armors) {
|
||||||
String armorperm = "equipmanager." + armor.getType().toString().toLowerCase();
|
String armorperm = "em." + armor.getType().toString().toLowerCase();
|
||||||
if (!p.hasPermission(armorperm)) {
|
if (!p.hasPermission(armorperm) && !p.isOp() && !p.hasPermission("em.*")) {
|
||||||
p.getInventory().addItem(armor);
|
p.getInventory().addItem(armor);
|
||||||
p.sendMessage("§6[§b装备管理§6] §c你没有 " + armorperm + " 的权限来穿戴此装备 §a已放入背包!");
|
p.sendMessage("§6[§b装备管理§6] §c你没有 " + armorperm + " 的权限来穿戴此装备 §a已放入背包!");
|
||||||
armor.setType(Material.AIR);
|
armor.setType(Material.AIR);
|
||||||
|
Loading…
Reference in New Issue
Block a user