mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 11:45:51 +00:00
Changed the code one more time
This commit is contained in:
parent
b694c9edac
commit
6811147292
@ -67,7 +67,7 @@ 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("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.");
|
||||||
|
@ -717,11 +717,9 @@ public final class SlimefunGuide {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
List<String> list = Messages.local.getTranslation("tooltips.item-permission");
|
List<String> list = Messages.local.getTranslation("tooltips.item-permission");
|
||||||
StringBuilder sb = new StringBuilder(65536);
|
String[] strings = list.toArray(new String[list.size()]);
|
||||||
for (String strings : list) {
|
CustomItem display = new CustomItem(Material.BARRIER, StringUtils.formatItemName(sfitem.getItem(), false), strings);
|
||||||
sb.append("\n" + strings);
|
menu.addItem(index, display);
|
||||||
menu.addItem(index, new CustomItem(Material.BARRIER, StringUtils.formatItemName(sfitem.getItem(), false), "", sb.toString()));
|
|
||||||
}
|
|
||||||
menu.addMenuClickHandler(index, (pl, slot, item, action) -> false);
|
menu.addMenuClickHandler(index, (pl, slot, item, action) -> false);
|
||||||
index++;
|
index++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user