Signed-off-by: Chaoscaot <chaoscaot444@gmail.com>
Dieser Commit ist enthalten in:
Ursprung
82421d9544
Commit
becee281f6
@ -27,6 +27,11 @@ SCHEM_SELECTOR_SEL_DIR=
|
|||||||
SCHEM_SELECTOR_NEW_DIR=§7Neuer Ordner
|
SCHEM_SELECTOR_NEW_DIR=§7Neuer Ordner
|
||||||
SCHEM_SELECTOR_FILTER=§7Filter
|
SCHEM_SELECTOR_FILTER=§7Filter
|
||||||
|
|
||||||
|
SCHEM_SELECTOR_ITEM_NAME=§e{0}
|
||||||
|
SCHEM_SELECTOR_ITEM_NAME_FILTER=§7{0}
|
||||||
|
SCHEM_SELECTOR_ITEM_REPLACE=§e{0}§7
|
||||||
|
SCHEM_SELECTOR_ITEM_LORE_TYPE=§7{0}
|
||||||
|
|
||||||
SCHEM_SELECTOR_CREATE_DIR_TITLE=Ordner erstellen
|
SCHEM_SELECTOR_CREATE_DIR_TITLE=Ordner erstellen
|
||||||
|
|
||||||
SCHEM_SELECTOR_FILTER_TITLE=Filter
|
SCHEM_SELECTOR_FILTER_TITLE=Filter
|
||||||
|
@ -152,16 +152,16 @@ public class SchematicSelector {
|
|||||||
else
|
else
|
||||||
m = SWItem.getMaterial(node.getItem());
|
m = SWItem.getMaterial(node.getItem());
|
||||||
|
|
||||||
String name = "§" + (filter.getName() == null?"e":"7") + node.getName();
|
String name = Core.MESSAGE.parse(filter.name == null?"SCHEM_SELECTOR_ITEM_NAME":"SCHEM_SELECTOR_ITEM_NAME_FILTER", player, node.getName());
|
||||||
|
|
||||||
if(filter.getName() != null) {
|
if(filter.getName() != null) {
|
||||||
name = name.replace(filter.getName(), "§e" + filter.getName() + "§7");
|
name = name.replace(filter.getName(), Core.MESSAGE.parse("SCHEM_SELECTOR_ITEM_REPLACE", player, filter.getName()));
|
||||||
}
|
}
|
||||||
|
|
||||||
SWItem item = new SWItem(m, name, Collections.singletonList(node.isDir() ? (Core.MESSAGE.parse("SCHEM_SELECTOR_DIR", player)) : "§7" + node.getSchemtype().name()), !node.isDir() && !node.getSchemtype().writeable(), click -> {
|
SWItem item = new SWItem(m, name, Collections.singletonList(node.isDir() ? (Core.MESSAGE.parse("SCHEM_SELECTOR_DIR", player)) : Core.MESSAGE.parse("SCHEM_SELECTOR_ITEM_LORE_TYPE", player, node.getSchemtype().name())), !node.isDir() && !node.getSchemtype().writeable(), click -> {
|
||||||
});
|
});
|
||||||
if(!node.isDir() && node.getRank() > 0) {
|
if(!node.isDir() && node.getRank() > 0) {
|
||||||
item.setLore(Arrays.asList("§7" + node.getSchemtype().name(), Core.MESSAGE.parse("SCHEM_SELECTOR_RANK", player)));
|
item.setLore(Arrays.asList(Core.MESSAGE.parse("SCHEM_SELECTOR_ITEM_LORE_TYPE", player, node.getSchemtype().name()), Core.MESSAGE.parse("SCHEM_SELECTOR_RANK", player)));
|
||||||
}
|
}
|
||||||
return new SWListInv.SWListEntry<>(item, node);
|
return new SWListInv.SWListEntry<>(item, node);
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren