From cdc347374a0750700432a628d9a5bdc7de9ae796 Mon Sep 17 00:00:00 2001 From: DaniFoldi Date: Thu, 20 Jan 2022 16:14:00 +0000 Subject: [PATCH] Prepare for release --- README.md | 2 +- .../protogui/command/PluginCommand.java | 2 + .../protogui/main/ProtoGuiLoader.java | 9 +- .../danifoldi/protogui/util/ConfigUtil.java | 2 + .../com/danifoldi/protogui/util/FileUtil.java | 4 +- .../com/danifoldi/protogui/util/Message.java | 6 +- src/main/resources/authors.yml | 19 ++ src/main/resources/config.yml | 194 +----------------- src/main/resources/messages.yml | 4 +- src/main/resources/servermenu.yml | 38 ++++ src/main/resources/sounds.yml | 77 +++++++ src/main/resources/stats.yml | 64 ++++++ 12 files changed, 223 insertions(+), 198 deletions(-) create mode 100644 src/main/resources/authors.yml create mode 100644 src/main/resources/servermenu.yml create mode 100644 src/main/resources/sounds.yml create mode 100644 src/main/resources/stats.yml diff --git a/README.md b/README.md index 146b1fc..a60c274 100644 --- a/README.md +++ b/README.md @@ -115,7 +115,7 @@ ___Expressions are evaluated in order___ **configVersion** -This should say `5`. If there are any config changes, the value will be incremented. The conversion process should be automatic, unless the release notes say otherwise. +This should say `6`. If there are any config changes, the value will be incremented. The conversion process should be automatic, unless the release notes say otherwise. --- diff --git a/src/main/java/com/danifoldi/protogui/command/PluginCommand.java b/src/main/java/com/danifoldi/protogui/command/PluginCommand.java index 43e515a..edceb12 100644 --- a/src/main/java/com/danifoldi/protogui/command/PluginCommand.java +++ b/src/main/java/com/danifoldi/protogui/command/PluginCommand.java @@ -45,6 +45,8 @@ public void onHelpCommand(@Source PlatformInteraction.ProtoSender sender) { sender.send(Message.COMMAND_RELOAD); sender.send(Message.COMMAND_SEND); sender.send(Message.COMMAND_SOUND); + sender.send(Message.COMMAND_SUBTITLE); + sender.send(Message.COMMAND_SUDO); sender.send(Message.COMMAND_TITLE); } diff --git a/src/main/java/com/danifoldi/protogui/main/ProtoGuiLoader.java b/src/main/java/com/danifoldi/protogui/main/ProtoGuiLoader.java index 8b39491..f505949 100644 --- a/src/main/java/com/danifoldi/protogui/main/ProtoGuiLoader.java +++ b/src/main/java/com/danifoldi/protogui/main/ProtoGuiLoader.java @@ -64,7 +64,7 @@ public void load() { placeholderHandler.registerBuiltins(); try { - FileUtil.ensureFolder(datafolder); + boolean newInstall = FileUtil.ensureFolder(datafolder); FileUtil.ensureFolder(datafolder.resolve("actions")); FileUtil.ensureFolder(datafolder.resolve("templates")); FileUtil.ensureFolder(datafolder.resolve("guis")); @@ -90,6 +90,13 @@ public void load() { logger.setFilter(record -> newConfig.getEnumOrElse("logLevel", LogLevel.ALL, EnumGetMethod.NAME_IGNORECASE).level.intValue() <= record.getLevel().intValue()); + if (newInstall) { + FileUtil.ensureConfigFile(datafolder.resolve("guis").resolve("authors.yml"), "authors.yml"); + FileUtil.ensureConfigFile(datafolder.resolve("guis").resolve("servermenu.yml"), "servermenu.yml"); + FileUtil.ensureConfigFile(datafolder.resolve("guis").resolve("sounds.yml"), "sounds.yml"); + FileUtil.ensureConfigFile(datafolder.resolve("guis").resolve("stats.yml"), "stats.yml"); + } + guiHandler.load(datafolder); platform.setup(); } catch (IOException e) { diff --git a/src/main/java/com/danifoldi/protogui/util/ConfigUtil.java b/src/main/java/com/danifoldi/protogui/util/ConfigUtil.java index 9ebeca5..de0f5eb 100644 --- a/src/main/java/com/danifoldi/protogui/util/ConfigUtil.java +++ b/src/main/java/com/danifoldi/protogui/util/ConfigUtil.java @@ -136,6 +136,8 @@ private static void upgrade(Path datafolder, int oldVersion, int newVersion) { ensureValue(messages, "parameterMissingFlag", Message.PARAMETER_MISSING_FLAG.getDefaultValue()); ensureValue(messages, "parameterDuplicateFlag", Message.PARAMETER_DUPLICATE_FLAG.getDefaultValue()); ensureValue(messages, "parameterUnrecognizedCommandFlag", Message.PARAMETER_UNRECOGNIZED_COMMAND_FLAG.getDefaultValue()); + ensureValue(messages, "commandSudo", Message.COMMAND_SUDO.getDefaultValue()); + ensureValue(messages, "commandSubtitle", Message.COMMAND_SUBTITLE.getDefaultValue()); config.remove("messages"); Config actions = config.get("actions"); diff --git a/src/main/java/com/danifoldi/protogui/util/FileUtil.java b/src/main/java/com/danifoldi/protogui/util/FileUtil.java index 70bb7c8..ed1ceb4 100644 --- a/src/main/java/com/danifoldi/protogui/util/FileUtil.java +++ b/src/main/java/com/danifoldi/protogui/util/FileUtil.java @@ -30,10 +30,12 @@ public class FileUtil { return config; } - public static void ensureFolder(final @NotNull Path folder) throws IOException { + public static boolean ensureFolder(final @NotNull Path folder) throws IOException { if (Files.notExists(folder)) { Files.createDirectories(folder); + return true; } + return false; } private FileUtil() { diff --git a/src/main/java/com/danifoldi/protogui/util/Message.java b/src/main/java/com/danifoldi/protogui/util/Message.java index be5c6a1..10010de 100644 --- a/src/main/java/com/danifoldi/protogui/util/Message.java +++ b/src/main/java/com/danifoldi/protogui/util/Message.java @@ -31,7 +31,7 @@ public enum Message { COMMAND_SEND("commandSend", "&0- &6/bgui &lsend&r &7all&f|&7s:&6&f|&7p:&6 &6 &0- &7Send a player to a server"), COMMAND_CHAT("commandChat", "&0- &6/bgui &lchat&r &6 &6 &0- &7Send a message to chat as a player"), COMMAND_ACTIONBAR("commandActionbar", "&0- &6/bgui &lactionbar&r &7all&f|&7s:&6&f|&7p:&6 &6 &0- &7Show a player a message in their action bar"), - COMMAND_TITLE("commandTitle", "&0- &6/bgui <itle&r &7all&f|&7s:&6&f|&7p:&6 &7title&f|&7subtitle &6 &6 &6 &6 &0- &7Send title to players"), + COMMAND_TITLE("commandTitle", "&0- &6/bgui <itle&r &7all&f|&7s:&6&f|&7p:&6 &6 &6 &6 &6 &0- &7Send title to players"), COMMAND_SOUND("commandSound", "&0- &6/bgui &lsound&r &7all&f|&7s:&6&f|&7p:&6 &6 &6[category] &6[volume] &6[pitch] &0- &7Play a sound for players"), COMMAND_OPEN("commandOpen", "&0- &6/bgui &lopen&r &7all&f|&7s:&6&f|&7p:&6 &6 &6[target] &0- &7Open a GUI for players"), COMMAND_CLOSE("commandClose", "&0- &6/bgui &lclose&r &6 &0- &7Close the GUI for players"), @@ -61,7 +61,9 @@ public enum Message { PARAMETER_MISSING_FLAG_VALUE("parameterMissingFlagValue", "&cMissing flag value: {input}"), PARAMETER_MISSING_FLAG("parameterMissingFlag", "&cMissing flag: {syntax}"), PARAMETER_DUPLICATE_FLAG("parameterDuplicateFlag", "&cDuplicate flag: {flag}"), - PARAMETER_UNRECOGNIZED_COMMAND_FLAG("parameterUnrecognizedCommandFlag", "&cUnrecognized flag: {input}"); + PARAMETER_UNRECOGNIZED_COMMAND_FLAG("parameterUnrecognizedCommandFlag", "&cUnrecognized flag: {input}"), + COMMAND_SUBTITLE("commandSubtitle", "&0- &6/bgui &lsubtitle&r &7all&f|&7s:&6&f|&7p:&6 &6 &6 &6 &6 &0- &7Send subtitle to players"), + COMMAND_SUDO("commandSudo", "&0- &6/bgui &lsudo&r &7all&f|&7s:&6&f|&7p:&6 &6 &0- &7Force players to execute a command"); private static final @NotNull Map messages = new HashMap<>(); diff --git a/src/main/resources/authors.yml b/src/main/resources/authors.yml new file mode 100644 index 0000000..75bbc6e --- /dev/null +++ b/src/main/resources/authors.yml @@ -0,0 +1,19 @@ +aliases: + - authors +size: 45 +title: '&6BungeeGui Authors' +items: + '0,8,36,44': + type: nether_star + '21': + type: player_head + data: owner:DaniFoldi + name: '&9&lDaniFoldi' + lore: + - '&1Plugin developer' + '23': + type: player_head + data: owner:HgeX + name: '&c&lHgeX' + lore: + - '&4Plugin developer' \ No newline at end of file diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index 820160a..e3c779f 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -1,192 +1,2 @@ -guis: - servermenu: - aliases: - - lobby - - servers - size: 54 - title: '&d&lExampleCraft &dserver menu' - items: - 'row0,row5,column0,column8': - type: white_stained_glass_pane - '20': - type: player_head - name: '&aEconomy server' - data: 'texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOTQ1ZjQ3ZmViNGQ3NWNiMzMzOTE0YmZkYjk5OWE0ODljOWQwZTMyMGQ1NDhmMzEwNDE5YWQ3MzhkMWUyNGI5In19fQ=' - commands: - - server economy - '22': - type: player_head - name: '&bCreative server' - data: 'texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvODQ0OWI5MzE4ZTMzMTU4ZTY0YTQ2YWIwZGUxMjFjM2Q0MDAwMGUzMzMyYzE1NzQ5MzJiM2M4NDlkOGZhMGRjMiJ9fX0=' - commands: - - server creative - '24': - type: player_head - name: '&cKitPvp server' - data: 'texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYjVhOTNmMTczOTI4MDYwMjZmY2ZiMmRiNzcxOGRhMjQ2Yzg4MTg5NWIzMGVjYjEyODRkODNmOTg3ZWI4In19fQ==' - commands: - - server kitpvp - '30': - type: player_head - name: '&dPrison server' - data: 'texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYjA5M2U1ZGQwMWQ3NmQ1YzM1NTQ2MTIzMTUwMzE0ZjNlZjNkMWQ5OTMzOWQ0ZmFjNzhjZWYyODM1Y2NlZGVmYSJ9fX0=' - commands: - - server prison - '32': - type: player_head - name: '&eSkyblock server' - data: 'texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZjFiYjJjM2JkNjVjZGQ4NGE4MDRlY2E5OGI3YTQ2NzM1ZjAxZTZhMWM5MTk5ZDY2NjE2NjNkYmRiNGY1YjQifX19' - commands: - - server skyblock - authors: - aliases: [authors] - size: 45 - title: '&6BungeeGui Authors' - items: - '0,8,36,44': - type: nether_star - '21': - type: player_head - data: owner:DaniFoldi - name: '&9&lDaniFoldi' - lore: - - '&1Plugin developer' - '23': - type: player_head - data: owner:HgeX - name: '&c&lHgeX' - lore: - - '&4Plugin developer' - stats: - aliases: - - stats - size: 45 - title: '&4&lStatistics' - openSound: - sound: block_beacon_activate - volume: 0.4 - closeable: false - items: - row0,row4,column0,column8: - type: red_stained_glass_pane - enchanted: true - clickSound: - sound: entity_villager_no - '13': - type: player_head - data: texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMzI3NDA3NjFkYmQ0MmY3NmU0ZjEyYzQ4ZWMwOTlhY2RjMWM2OTI3MmFiNTc2MzU3OWJiZTkxYzVmNTg2NTZkNyJ9fX0= - name: '%bungeegui%' - lore: [ 'Guis loaded: %guicount%', 'Description: %plugin_description@BungeeGUI%', - 'Version: %plugin_version@BungeeGUI%', 'Author: %plugin_author@BungeeGUI%', - 'Main class: %plugin_main@BungeeGUI%', 'Depends: %plugin_depends@BungeeGUI%', - 'Softdepends: %plugin_softdepends@BungeeGUI%' ] - '21': - type: player_head - data: owner:{player} - name: '%name%' - lore: [ '&4Ping: %ping%', '&5Server: %servername%', '&7Vanished: %vanished%', - 'Version: %version%', 'Client locale: %locale%', 'Luckperms group: %luckperms_group%', - 'Luckperms name: %luckperms_prefix%%displayname%%luckperms_suffix%' ] - '23': - type: player_head - data: texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOGQxOWM2ODQ2MTY2NmFhY2Q3NjI4ZTM0YTFlMmFkMzlmZTRmMmJkZTMyZTIzMTk2M2VmM2IzNTUzMyJ9fX0= - name: '%proxyname%' - lore: [ 'Version: %proxyversion%', '&4Memory: %ram_used% / %ram_total% MB', - '&5Players: %online_visible% / %max%', '&6Plugins: %plugincount%', 'Servers: - %servercount%' ] - '31': - type: player_head - data: texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNjYwYjAwNGYzNjBlMjg4NTVjY2YxMjM1YzJiZGVhMGEyOTk3YjBiYzAzMjU4ZTJkYzI0YWI4YTI1NzBhZWE2In19fQ== - name: '%servername%' - lore: [ 'MOTD: %motd@%servername%%', 'Players: %online_visible@%servername%% - / %max@%servername%%', 'Version: %version@%servername%%', 'Restricted: - %restricted@%servername%% (Accessible: %canaccess@%servername%%)' ] - '16': - type: barrier - clickSound: - sound: block_beacon_deactivate - volume: 0.4 - name: '&cClose' - commands: [ '' ] - sounds: - aliases: - - mobs - - sounds - title: '&5&lTest &d&lSounds' - items: - 'row0even,row5odd,column0even,column8even': - type: pink_stained_glass_pane - 'row0odd,row5even,column0odd,column8odd': - type: purple_stained_glass_pane - '10': - type: zombie_head - clickSound: - sound: entity.zombie.ambient - '12': - type: creeper_head - clickSound: - sound: entity.creeper.primed - '14': - type: player_head - data: texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMTcxNTI4NzZiYzNhOTZkZDJhMjI5OTI0NWVkYjNiZWVmNjQ3YzhhNTZhYzg4NTNhNjg3YzNlN2I1ZDhiYiJ9fX0= - clickSound: - sound: entity.puffer_fish.blow_up - '16': - type: player_head - data: texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZmNhNDQ1NzQ5MjUxYmRkODk4ZmI4M2Y2Njc4NDRlMzhhMWRmZjc5YTE1MjlmNzlhNDI0NDdhMDU5OTMxMGVhNCJ9fX0= - clickSound: - sound: entity.skeleton.ambient - '20': - type: player_head - data: texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYzEzNWY1ODM4ZTUxNTg1ZTE1OTQyZThmMmYxY2MzNmRhOTYzMDcwZGRkNWJhMzVhZjk1ZWQzN2ViNmMzIn19fQ== - clickSound: - sound: entity.parrot.ambient - '22': - type: player_head - data: texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMzQwMDk3MjcxYmI2ODBmZTk4MWU4NTllOGJhOTNmZWEyOGI4MTNiMTA0MmJkMjc3ZWEzMzI5YmVjNDkzZWVmMyJ9fX0= - clickSound: - sound: entity.cat.ambient - '24': - type: player_head - data: texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNmU4OWQ3NDQ3NWIyZmMxYTJiMjE1Y2ZjY2ZkODY1NTkyYjg1ODQzYjkyNjBlZjY3MzA0YzJkYmNjNGJiMCJ9fX0= - clickSound: - sound: entity.wolf.howl - volume: 0.2 - '28': - type: player_head - data: texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZjA3MmQ4Y2I4Mzk1YzJiYzg0NTQ3ZTZhYzliOGVkZWVkNzhjODY1OGMwZWQxYjg4M2M2MjljM2E3ZTkwIn19fQ== - clickSound: - sound: entity.polar_bear.warning - '30': - type: player_head - data: texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvODk1YWVlYzZiODQyYWRhODY2OWY4NDZkNjViYzQ5NzYyNTk3ODI0YWI5NDRmMjJmNDViZjNiYmI5NDFhYmU2YyJ9fX0= - clickSound: - sound: entity.slime.jump - '32': - type: player_head - data: texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvN2YzN2Q1MjRjM2VlZDE3MWNlMTQ5ODg3ZWExZGVlNGVkMzk5OTA0NzI3ZDUyMTg2NTY4OGVjZTNiYWM3NWUifX19 - clickSound: - sound: entity.chicken.ambient - '34': - type: player_head - data: texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNGJkYTFkZjgwYmZhMzE0ODUzMzhkOTYzMzgzZDhkZTI2ZjA1ZjI5MzRmODc1Njk2ODYyNDU0ZTdjNzBmNDVmNiJ9fX0= - clickSound: - sound: entity.cow.ambient - '38': - type: dragon_head - clickSound: - sound: entity.ender_dragon.ambient - '40': - type: player_head - data: texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMjVjNGQyNGFmZmRkNDgxMDI2MjAzNjE1MjdkMjE1NmUxOGMyMjNiYWU1MTg5YWM0Mzk4MTU2NDNmM2NmZjlkIn19fQ== - clickSound: - sound: block.shulker_box.open - '42': - type: player_head - data: texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZGYwMDg1ODkyNmNkOGNkZjNmMWNmNzFlMjEwY2RlNWRhZjg3MDgzMjA1NDdiZDZkZjU3OTU4NTljNjhkOWIzZiJ9fX0= - clickSound: - sound: entity.panda.worried_ambient - -configVersion: 4 -debugLevel: all -actions: {} \ No newline at end of file +configVersion: 6 +logLevel: all diff --git a/src/main/resources/messages.yml b/src/main/resources/messages.yml index 551738e..027217c 100644 --- a/src/main/resources/messages.yml +++ b/src/main/resources/messages.yml @@ -40,4 +40,6 @@ parameterStringRegexError: '&cString {input} does not match pattern {regex}' parameterMissingFlagValue: '&cMissing flag value: {input}' parameterMissingFlag: '&cMissing flag: {syntax}' parameterDuplicateFlag: '&cDuplicate flag: {flag}' -parameterUnrecognizedCommandFlag: '&cUnrecognized flag: {input}' \ No newline at end of file +parameterUnrecognizedCommandFlag: '&cUnrecognized flag: {input}' +commandSubtitle: '&0- &6/bgui &lsubtitle&r &7all&f|&7s:&6&f|&7p:&6 &6 &6 &6 &6 &0- &7Send subtitle to players' +commandSudo: '&0- &6/bgui &lsudo&r &7all&f|&7s:&6&f|&7p:&6 &6 &0- &7Force players to execute a command' \ No newline at end of file diff --git a/src/main/resources/servermenu.yml b/src/main/resources/servermenu.yml new file mode 100644 index 0000000..1c4904b --- /dev/null +++ b/src/main/resources/servermenu.yml @@ -0,0 +1,38 @@ +aliases: + - lobby + - servers +size: 54 +title: '&d&lExampleCraft &dserver menu' +items: + 'row0,row5,column0,column8': + type: white_stained_glass_pane + '20': + type: player_head + name: '&aEconomy server' + data: 'texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOTQ1ZjQ3ZmViNGQ3NWNiMzMzOTE0YmZkYjk5OWE0ODljOWQwZTMyMGQ1NDhmMzEwNDE5YWQ3MzhkMWUyNGI5In19fQ=' + commands: + - server economy + '22': + type: player_head + name: '&bCreative server' + data: 'texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvODQ0OWI5MzE4ZTMzMTU4ZTY0YTQ2YWIwZGUxMjFjM2Q0MDAwMGUzMzMyYzE1NzQ5MzJiM2M4NDlkOGZhMGRjMiJ9fX0=' + commands: + - server creative + '24': + type: player_head + name: '&cKitPvp server' + data: 'texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYjVhOTNmMTczOTI4MDYwMjZmY2ZiMmRiNzcxOGRhMjQ2Yzg4MTg5NWIzMGVjYjEyODRkODNmOTg3ZWI4In19fQ==' + commands: + - server kitpvp + '30': + type: player_head + name: '&dPrison server' + data: 'texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYjA5M2U1ZGQwMWQ3NmQ1YzM1NTQ2MTIzMTUwMzE0ZjNlZjNkMWQ5OTMzOWQ0ZmFjNzhjZWYyODM1Y2NlZGVmYSJ9fX0=' + commands: + - server prison + '32': + type: player_head + name: '&eSkyblock server' + data: 'texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZjFiYjJjM2JkNjVjZGQ4NGE4MDRlY2E5OGI3YTQ2NzM1ZjAxZTZhMWM5MTk5ZDY2NjE2NjNkYmRiNGY1YjQifX19' + commands: + - server skyblock \ No newline at end of file diff --git a/src/main/resources/sounds.yml b/src/main/resources/sounds.yml new file mode 100644 index 0000000..e023b6a --- /dev/null +++ b/src/main/resources/sounds.yml @@ -0,0 +1,77 @@ +aliases: + - mobs + - sounds +title: '&5&lTest &d&lSounds' +items: + 'row0even,row5odd,column0even,column8even': + type: pink_stained_glass_pane + 'row0odd,row5even,column0odd,column8odd': + type: purple_stained_glass_pane + '10': + type: zombie_head + clickSound: + sound: entity.zombie.ambient + '12': + type: creeper_head + clickSound: + sound: entity.creeper.primed + '14': + type: player_head + data: texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMTcxNTI4NzZiYzNhOTZkZDJhMjI5OTI0NWVkYjNiZWVmNjQ3YzhhNTZhYzg4NTNhNjg3YzNlN2I1ZDhiYiJ9fX0= + clickSound: + sound: entity.puffer_fish.blow_up + '16': + type: player_head + data: texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZmNhNDQ1NzQ5MjUxYmRkODk4ZmI4M2Y2Njc4NDRlMzhhMWRmZjc5YTE1MjlmNzlhNDI0NDdhMDU5OTMxMGVhNCJ9fX0= + clickSound: + sound: entity.skeleton.ambient + '20': + type: player_head + data: texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYzEzNWY1ODM4ZTUxNTg1ZTE1OTQyZThmMmYxY2MzNmRhOTYzMDcwZGRkNWJhMzVhZjk1ZWQzN2ViNmMzIn19fQ== + clickSound: + sound: entity.parrot.ambient + '22': + type: player_head + data: texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMzQwMDk3MjcxYmI2ODBmZTk4MWU4NTllOGJhOTNmZWEyOGI4MTNiMTA0MmJkMjc3ZWEzMzI5YmVjNDkzZWVmMyJ9fX0= + clickSound: + sound: entity.cat.ambient + '24': + type: player_head + data: texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNmU4OWQ3NDQ3NWIyZmMxYTJiMjE1Y2ZjY2ZkODY1NTkyYjg1ODQzYjkyNjBlZjY3MzA0YzJkYmNjNGJiMCJ9fX0= + clickSound: + sound: entity.wolf.howl + volume: 0.2 + '28': + type: player_head + data: texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZjA3MmQ4Y2I4Mzk1YzJiYzg0NTQ3ZTZhYzliOGVkZWVkNzhjODY1OGMwZWQxYjg4M2M2MjljM2E3ZTkwIn19fQ== + clickSound: + sound: entity.polar_bear.warning + '30': + type: player_head + data: texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvODk1YWVlYzZiODQyYWRhODY2OWY4NDZkNjViYzQ5NzYyNTk3ODI0YWI5NDRmMjJmNDViZjNiYmI5NDFhYmU2YyJ9fX0= + clickSound: + sound: entity.slime.jump + '32': + type: player_head + data: texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvN2YzN2Q1MjRjM2VlZDE3MWNlMTQ5ODg3ZWExZGVlNGVkMzk5OTA0NzI3ZDUyMTg2NTY4OGVjZTNiYWM3NWUifX19 + clickSound: + sound: entity.chicken.ambient + '34': + type: player_head + data: texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNGJkYTFkZjgwYmZhMzE0ODUzMzhkOTYzMzgzZDhkZTI2ZjA1ZjI5MzRmODc1Njk2ODYyNDU0ZTdjNzBmNDVmNiJ9fX0= + clickSound: + sound: entity.cow.ambient + '38': + type: dragon_head + clickSound: + sound: entity.ender_dragon.ambient + '40': + type: player_head + data: texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMjVjNGQyNGFmZmRkNDgxMDI2MjAzNjE1MjdkMjE1NmUxOGMyMjNiYWU1MTg5YWM0Mzk4MTU2NDNmM2NmZjlkIn19fQ== + clickSound: + sound: block.shulker_box.open + '42': + type: player_head + data: texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZGYwMDg1ODkyNmNkOGNkZjNmMWNmNzFlMjEwY2RlNWRhZjg3MDgzMjA1NDdiZDZkZjU3OTU4NTljNjhkOWIzZiJ9fX0= + clickSound: + sound: entity.panda.worried_ambient \ No newline at end of file diff --git a/src/main/resources/stats.yml b/src/main/resources/stats.yml new file mode 100644 index 0000000..aeffcd6 --- /dev/null +++ b/src/main/resources/stats.yml @@ -0,0 +1,64 @@ +aliases: + - stats +size: 45 +title: '&4&lStatistics' +openSound: + sound: block_beacon_activate + volume: 0.4 +closeable: false +items: + row0,row4,column0,column8: + type: red_stained_glass_pane + enchanted: true + clickSound: + sound: entity_villager_no + '13': + type: player_head + data: texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMzI3NDA3NjFkYmQ0MmY3NmU0ZjEyYzQ4ZWMwOTlhY2RjMWM2OTI3MmFiNTc2MzU3OWJiZTkxYzVmNTg2NTZkNyJ9fX0= + name: '%bungeegui%' + lore: + - 'Guis loaded: %guicount%' + - 'Description: %plugin_description@BungeeGUI%' + - 'Version: %plugin_version@BungeeGUI%' + - 'Author: %plugin_author@BungeeGUI%' + - 'Main class: %plugin_main@BungeeGUI%' + - 'Depends: %plugin_depends@BungeeGUI%' + - 'Softdepends: %plugin_softdepends@BungeeGUI%' + '21': + type: player_head + data: owner:{player} + name: '%name%' + lore: + - '&4Ping: %ping%' + - '&5Server: %servername%' + - '&7Vanished: %vanished%' + - 'Version: %version%' + - 'Client locale: %locale%' + - 'Luckperms group: %luckperms_group%' + - 'Luckperms name: %luckperms_prefix%%displayname%%luckperms_suffix%' + '23': + type: player_head + data: texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOGQxOWM2ODQ2MTY2NmFhY2Q3NjI4ZTM0YTFlMmFkMzlmZTRmMmJkZTMyZTIzMTk2M2VmM2IzNTUzMyJ9fX0= + name: '%proxyname%' + lore: + - 'Version: %proxyversion%' + - '&4Memory: %ram_used% / %ram_total% MB' + - '&5Players: %online_visible% / %max%' + - '&6Plugins: %plugincount%' + - 'Servers: %servercount%' + '31': + type: player_head + data: texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNjYwYjAwNGYzNjBlMjg4NTVjY2YxMjM1YzJiZGVhMGEyOTk3YjBiYzAzMjU4ZTJkYzI0YWI4YTI1NzBhZWE2In19fQ== + name: '%servername%' + lore: + - 'MOTD: %motd@%servername%%' + - 'Players: %online_visible@%servername%% / %max@%servername%%' + - 'Version: %version@%servername%%' + '16': + type: barrier + clickSound: + sound: block_beacon_deactivate + volume: 0.4 + name: '&cClose' + commands: + - '' \ No newline at end of file