+ Added permission for "Block Chooser". #8.
This commit is contained in:
parent
4987986e25
commit
41d160780e
@ -178,6 +178,34 @@ public class ArenaHandler {
|
||||
player.getInventory().addItem(
|
||||
shopBlockChooser);
|
||||
}
|
||||
if (!PermissionsM.hasPerm(player,
|
||||
Permissions.vip, true)) {
|
||||
ItemStack shopBlockChooser = new ItemStack(
|
||||
Material.getMaterial((String) W.config
|
||||
.get(ConfigC.shop_blockChooserIDname)),
|
||||
1);
|
||||
ItemMeta shopBlockChooser_IM = shopBlockChooser
|
||||
.getItemMeta();
|
||||
shopBlockChooser_IM
|
||||
.setDisplayName(MessageM
|
||||
.replaceAll((String) W.config
|
||||
.get(ConfigC.shop_blockChooserName)));
|
||||
List<String> lores = W.config
|
||||
.getFile()
|
||||
.getStringList(
|
||||
ConfigC.shop_blockChooserDescription.location);
|
||||
List<String> lores2 = new ArrayList<String>();
|
||||
for (String lore : lores) {
|
||||
lores2.add(MessageM
|
||||
.replaceAll(lore));
|
||||
}
|
||||
shopBlockChooser_IM.setLore(lores2);
|
||||
shopBlockChooser
|
||||
.setItemMeta(shopBlockChooser_IM);
|
||||
|
||||
player.getInventory().addItem(
|
||||
shopBlockChooser);
|
||||
}
|
||||
}
|
||||
player.updateInventory();
|
||||
|
||||
|
@ -36,7 +36,8 @@ public class PermissionsC {
|
||||
signcreate (main + "signcreate", PType.MODERATOR),
|
||||
remove (main + "remove", PType.ADMIN),
|
||||
tokens (main + "tokens", PType.ADMIN),
|
||||
allcommands (main + "allcommands", PType.OP);
|
||||
allcommands (main + "allcommands", PType.OP),
|
||||
vip (main + "vip", PType.ADMIN);
|
||||
|
||||
public String perm;
|
||||
public PType type;
|
||||
|
Loading…
x
Reference in New Issue
Block a user