Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
276907cfd3
Commit
1fd78cf11d
@ -387,7 +387,7 @@ SCRIPT_COMMAND_ITEM_NAME = §7Command§8: §e{0}
|
|||||||
|
|
||||||
## Script Menu GUI
|
## Script Menu GUI
|
||||||
SCRIPT_MENU_GUI_ITEM_LORE_1 = §7Click to retrieve
|
SCRIPT_MENU_GUI_ITEM_LORE_1 = §7Click to retrieve
|
||||||
SCRIPT_MENU_GUI_ITEM_LORE_2 = §7Middle-Click to copy
|
SCRIPT_MENU_GUI_ITEM_LORE_2 = §7Shift-Click to copy
|
||||||
SCRIPT_MENU_GUI_NAME = §eScript Commands {0}{1}§7%
|
SCRIPT_MENU_GUI_NAME = §eScript Commands {0}{1}§7%
|
||||||
SCRIPT_MENU_GUI_ITEM_ADD_NAME = §eInsert
|
SCRIPT_MENU_GUI_ITEM_ADD_NAME = §eInsert
|
||||||
SCRIPT_MENU_GUI_ITEM_ADD_LORE = §7Click with a book to insert
|
SCRIPT_MENU_GUI_ITEM_ADD_LORE = §7Click with a book to insert
|
||||||
|
@ -388,7 +388,7 @@ SCRIPT_COMMAND_ITEM_NAME = §7Command§8: §e{0}
|
|||||||
|
|
||||||
## Script Menu GUI
|
## Script Menu GUI
|
||||||
SCRIPT_MENU_GUI_ITEM_LORE_1 = §7Klicke zum rausnehmen
|
SCRIPT_MENU_GUI_ITEM_LORE_1 = §7Klicke zum rausnehmen
|
||||||
SCRIPT_MENU_GUI_ITEM_LORE_2 = §7Middle Klicke zum kopieren
|
SCRIPT_MENU_GUI_ITEM_LORE_2 = §7Shift Klicke zum kopieren
|
||||||
SCRIPT_MENU_GUI_NAME = §eScript Commands {0}{1}§7%
|
SCRIPT_MENU_GUI_NAME = §eScript Commands {0}{1}§7%
|
||||||
SCRIPT_MENU_GUI_ITEM_ADD_NAME = §eHinzufügen
|
SCRIPT_MENU_GUI_ITEM_ADD_NAME = §eHinzufügen
|
||||||
SCRIPT_MENU_GUI_ITEM_ADD_LORE = §7Klicke mit einem Buch zum hinzufügen
|
SCRIPT_MENU_GUI_ITEM_ADD_LORE = §7Klicke mit einem Buch zum hinzufügen
|
||||||
|
@ -184,7 +184,7 @@ public class CustomScriptManager implements Listener {
|
|||||||
String menuName = BauSystem.MESSAGE.parse("SCRIPT_MENU_GUI_NAME", p, percentage > 99 ? "§c" : (percentage >= 75 ? "§6" : "§a"), percentage);
|
String menuName = BauSystem.MESSAGE.parse("SCRIPT_MENU_GUI_NAME", p, percentage > 99 ? "§c" : (percentage >= 75 ? "§6" : "§a"), percentage);
|
||||||
|
|
||||||
SWListInv<CustomScript.MenuScript> menuCommandSWListInv = new SWListInv<>(p, menuName, false, menuCommands, (clickType, menuCommand) -> {
|
SWListInv<CustomScript.MenuScript> menuCommandSWListInv = new SWListInv<>(p, menuName, false, menuCommands, (clickType, menuCommand) -> {
|
||||||
if (!clickType.isCreativeAction()) {
|
if (!clickType.isShiftClick()) {
|
||||||
playerMap.get(p).removeIf(customCommand -> customCommand == menuCommand);
|
playerMap.get(p).removeIf(customCommand -> customCommand == menuCommand);
|
||||||
}
|
}
|
||||||
SWUtils.giveItemToPlayer(p, menuCommand.toItem(p).getItemStack());
|
SWUtils.giveItemToPlayer(p, menuCommand.toItem(p).getItemStack());
|
||||||
|
@ -54,7 +54,7 @@ public class InventoryFiller implements Listener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* For MacOS user: https://www.curseforge.com/minecraft/mc-mods/shift-scroll-fix/download
|
* For MacOS user: https://www.curseforge.com/minecraft/mc-mods/shift-scroll-fix
|
||||||
*/
|
*/
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void onPlayerItemHeld(PlayerItemHeldEvent event) {
|
public void onPlayerItemHeld(PlayerItemHeldEvent event) {
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren