1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 11:45:51 +00:00
This commit is contained in:
TheBusyBiscuit 2019-09-04 19:42:26 +02:00
commit 38b2112aaf
2 changed files with 6 additions and 1 deletions

View File

@ -67,6 +67,8 @@ public final class Messages {
local.setDefault("messages.cannot-place" ,"&cYou cannot place that block there!"); local.setDefault("messages.cannot-place" ,"&cYou cannot place that block there!");
local.setDefault("messages.no-pvp" ,"&cYou cannot pvp in here!"); local.setDefault("messages.no-pvp" ,"&cYou cannot pvp in here!");
local.setDefault("tooltips.item-permission", "", "&rYou do not have Permission", "&rto access this Item");
local.setDefault("machines.pattern-not-found", "&eSorry, I could not recognize this Pattern. Please place the Items in the correct Pattern into the Dispenser."); local.setDefault("machines.pattern-not-found", "&eSorry, I could not recognize this Pattern. Please place the Items in the correct Pattern into the Dispenser.");
local.setDefault("machines.unknown-material", "&eSorry, I could not recognize the Item in my Dispenser. Please put something in that I know."); local.setDefault("machines.unknown-material", "&eSorry, I could not recognize the Item in my Dispenser. Please put something in that I know.");
local.setDefault("machines.wrong-item", "&eSorry, I could not recognize the Item you right clicked me with. Check the Recipes and see which Items you can use."); local.setDefault("machines.wrong-item", "&eSorry, I could not recognize the Item you right clicked me with. Check the Recipes and see which Items you can use.");

View File

@ -716,7 +716,10 @@ public final class SlimefunGuide {
index++; index++;
} }
else { else {
menu.addItem(index, new CustomItem(Material.BARRIER, StringUtils.formatItemName(sfitem.getItem(), false), "", "&rYou do not have Permission", "&rto access this Item")); List<String> list = Messages.local.getTranslation("tooltips.item-permission");
String[] strings = list.toArray(new String[list.size()]);
CustomItem display = new CustomItem(Material.BARRIER, StringUtils.formatItemName(sfitem.getItem(), false), strings);
menu.addItem(index, display);
menu.addMenuClickHandler(index, (pl, slot, item, action) -> false); menu.addMenuClickHandler(index, (pl, slot, item, action) -> false);
index++; index++;
} }