1
0
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:
502647092 2015-09-21 20:25:50 +08:00
parent ebe73712cc
commit 9b10524794

View File

@ -17,8 +17,8 @@ public class ArmorHandlerTask implements Runnable {
return;
ItemStack[] armors = p.getInventory().getArmorContents();
for (ItemStack armor : armors) {
String armorperm = "equipmanager." + armor.getType().toString().toLowerCase();
if (!p.hasPermission(armorperm)) {
String armorperm = "em." + armor.getType().toString().toLowerCase();
if (!p.hasPermission(armorperm) && !p.isOp() && !p.hasPermission("em.*")) {
p.getInventory().addItem(armor);
p.sendMessage("§6[§b装备管理§6] §c你没有 " + armorperm + " 的权限来穿戴此装备 §a已放入背包!");
armor.setType(Material.AIR);