From 97c0855f8f2c0dc118d9ce0de7f73f83009b025d Mon Sep 17 00:00:00 2001 From: Konicai <71294714+Konicai@users.noreply.github.com> Date: Sat, 4 Jun 2022 00:01:28 -0400 Subject: [PATCH] Strip menu/form/accessitem components --- README.md | 22 +- pom.xml | 43 +-- .../{GeyserHubMain.java => GeyserHub.java} | 38 +- .../projectg/geyserhub/GeyserHubCommand.java | 83 +++++ .../teleporter => }/JoinTeleporter.java | 12 +- .../{SelectorLogger.java => Logger.java} | 10 +- .../scoreboard => }/ScoreboardManager.java | 7 +- .../{module/world => }/WorldSettings.java | 26 +- .../geyserhub/command/GeyserHubCommand.java | 135 ------- .../projectg/geyserhub/config/ConfigId.java | 3 +- .../geyserhub/config/ConfigManager.java | 12 +- .../geyserhub/config/ConfigUpdater.java | 1 + .../geyserhub/config/updaters/SELECTOR_1.java | 50 --- .../{module => }/message/Broadcast.java | 15 +- .../{module => }/message/MessageJoin.java | 6 +- .../geyserhub/module/menu/AccessItem.java | 132 ------- .../module/menu/AccessItemRegistry.java | 183 ---------- .../module/menu/InventoryManager.java | 196 ---------- .../geyserhub/module/menu/MenuUtils.java | 186 ---------- .../module/menu/bedrock/BedrockButton.java | 51 --- .../module/menu/bedrock/BedrockForm.java | 200 ----------- .../menu/bedrock/BedrockFormRegistry.java | 114 ------ .../module/menu/button/OutcomeButton.java | 61 ---- .../module/menu/button/TextButton.java | 38 -- .../module/menu/java/ItemButton.java | 83 ----- .../geyserhub/module/menu/java/JavaMenu.java | 340 ------------------ .../module/menu/java/JavaMenuListeners.java | 45 --- .../module/menu/java/JavaMenuRegistry.java | 144 -------- .../reloadable/ReloadableRegistry.java | 8 +- .../projectg/geyserhub/utils/FileUtils.java | 6 +- .../geyserhub/utils/PlaceholderUtils.java | 12 +- src/main/resources/plugin.yml | 13 +- src/main/resources/selector.yml | 156 -------- 33 files changed, 166 insertions(+), 2265 deletions(-) rename src/main/java/dev/projectg/geyserhub/{GeyserHubMain.java => GeyserHub.java} (63%) create mode 100644 src/main/java/dev/projectg/geyserhub/GeyserHubCommand.java rename src/main/java/dev/projectg/geyserhub/{module/teleporter => }/JoinTeleporter.java (89%) rename src/main/java/dev/projectg/geyserhub/{SelectorLogger.java => Logger.java} (83%) rename src/main/java/dev/projectg/geyserhub/{module/scoreboard => }/ScoreboardManager.java (78%) rename src/main/java/dev/projectg/geyserhub/{module/world => }/WorldSettings.java (77%) delete mode 100644 src/main/java/dev/projectg/geyserhub/command/GeyserHubCommand.java delete mode 100644 src/main/java/dev/projectg/geyserhub/config/updaters/SELECTOR_1.java rename src/main/java/dev/projectg/geyserhub/{module => }/message/Broadcast.java (70%) rename src/main/java/dev/projectg/geyserhub/{module => }/message/MessageJoin.java (77%) delete mode 100644 src/main/java/dev/projectg/geyserhub/module/menu/AccessItem.java delete mode 100644 src/main/java/dev/projectg/geyserhub/module/menu/AccessItemRegistry.java delete mode 100644 src/main/java/dev/projectg/geyserhub/module/menu/InventoryManager.java delete mode 100644 src/main/java/dev/projectg/geyserhub/module/menu/MenuUtils.java delete mode 100644 src/main/java/dev/projectg/geyserhub/module/menu/bedrock/BedrockButton.java delete mode 100644 src/main/java/dev/projectg/geyserhub/module/menu/bedrock/BedrockForm.java delete mode 100644 src/main/java/dev/projectg/geyserhub/module/menu/bedrock/BedrockFormRegistry.java delete mode 100644 src/main/java/dev/projectg/geyserhub/module/menu/button/OutcomeButton.java delete mode 100644 src/main/java/dev/projectg/geyserhub/module/menu/button/TextButton.java delete mode 100644 src/main/java/dev/projectg/geyserhub/module/menu/java/ItemButton.java delete mode 100644 src/main/java/dev/projectg/geyserhub/module/menu/java/JavaMenu.java delete mode 100644 src/main/java/dev/projectg/geyserhub/module/menu/java/JavaMenuListeners.java delete mode 100644 src/main/java/dev/projectg/geyserhub/module/menu/java/JavaMenuRegistry.java delete mode 100644 src/main/resources/selector.yml diff --git a/README.md b/README.md index 7ba0879..7fe6cc0 100644 --- a/README.md +++ b/README.md @@ -4,39 +4,27 @@ [![Discord](https://img.shields.io/discord/853331530004299807?color=7289da&label=discord&logo=discord&logoColor=white)](https://discord.gg/M2SvqCu4e9) [![License](https://img.shields.io/badge/License-GPL-orange)](https://github.com/ProjectG-Plugins/GeyserUpdater/blob/master/LICENSE) - # GeyserHub -**Note: This plugin has been superseded by [CrossplatForms](https://github.com/ProjectG-Plugins/CrossplatForms). GeyserHub will eventually be stripped of its form, menu, and access item capabilities.** +**Note: This plugin has been superseded by [CrossplatForms](https://github.com/ProjectG-Plugins/CrossplatForms). GeyserHub no longer has form, menu, and access item capabilities.** -A crossplay lobby plugin for Spigot servers that provides server selector and command menus through Bedrock forms for Bedrock players, and inventory menus for Java players, with high customizability. Supports BungeeCord, and Velocity if BungeeCord plugin messaging is enabled in `velocity.toml`. +GeyserHub now only provides server/hub capabilities. ### Other Features: Anything can be toggled off. -- Fully customizable Bedrock forms and Java inventory menus that can run commands and move players to other servers -- Hotbar items for quick access to different forms/menus -- Full Placeholder API support - Simple scoreboard - Welcome messages - Automatic broadcasts - World restrictions +- Full Placeholder API support - The legacy simple ServerSelector only for Geyser players can be found [here](https://ci.projectg.dev/job/GeyserHub/job/legacy-selector/). -###### Note: This is NOT an official GeyserMC plugin. It is made to work with Geyser, but it is not maintained or produced by GeyserMC. If you need support with this plugin, please do not ask the Geyser developers — instead, please go to our Discord server which is linked above. - -## Installation - -GeyserHub is a lobby plugin that must be installed on any backend servers you want the selector on. -[Floodgate](https://github.com/GeyserMC/Floodgate) must be installed on the backend servers, AND properly configured. -See this [guide](https://github.com/GeyserMC/Floodgate/wiki/Setup-and-Usage#installing-floodgate-also-on-spigot-servers-behind-bungeecord-or-velocity) for more information. +###### Note: This is NOT an official GeyserMC plugin, it is not maintained or produced by GeyserMC. If you need support with this plugin, please do not ask the Geyser developers — instead, please go to our Discord server which is linked above. ## Commands: | Command | Permission | Info | | ------- | -----------| ---- | -| `ghub` | `geyserhub.main` | Open the default server selector (The help page if console)| -| `ghub form` | `geyserhub.form` | Open a form/menu (The help page if console)| -| `ghub