From 0236d2b7afd0d29cde0c2abfbb716125a2b8200f Mon Sep 17 00:00:00 2001 From: Konicai <71294714+Konicai@users.noreply.github.com> Date: Wed, 15 Jun 2022 18:27:49 -0400 Subject: [PATCH] Last touches for removing form/menu/items --- README.md | 7 ++----- src/main/java/dev/projectg/geyserhub/GeyserHub.java | 4 ++++ src/main/java/dev/projectg/geyserhub/GeyserHubCommand.java | 7 ++----- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 714ac8e..237dffa 100644 --- a/README.md +++ b/README.md @@ -5,17 +5,14 @@ [![License](https://img.shields.io/badge/License-GPL-orange)](https://github.com/kejonaMC/GeyserUpdater/blob/master/LICENSE) # GeyserHub -**Note: This plugin has been superseded by [CrossplatForms](https://github.com/kejonaMC/CrossplatForms). GeyserHub no longer has form, menu, and access item capabilities.** +#### Note: This plugin has been superseded by [CrossplatForms](https://github.com/kejonaMC/CrossplatForms). GeyserHub no longer has form, menu, and access item capabilities. Place your selector.yml in the config folder of CrossplatForms for it to be automatically converted. -GeyserHub now only provides server/hub capabilities. - -### Other Features: +### Features: Anything can be toggled off. - Simple scoreboard - Welcome messages - Automatic broadcasts - World restrictions -- Full Placeholder API support ###### 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. diff --git a/src/main/java/dev/projectg/geyserhub/GeyserHub.java b/src/main/java/dev/projectg/geyserhub/GeyserHub.java index 59dddd8..d85ec9d 100644 --- a/src/main/java/dev/projectg/geyserhub/GeyserHub.java +++ b/src/main/java/dev/projectg/geyserhub/GeyserHub.java @@ -24,6 +24,10 @@ public void onEnable() { // getting the logger forces the config to load before our loadConfiguration() is called... Logger logger = Logger.getLogger(); + logger.warn("THIS PLUGIN HAS BEEN SUPERSEDED BY CROSSPLATFORMS: https://github.com/kejonaMC/CrossplatForms"); + logger.warn("FORM, MENU, AND ITEM FEATURES ARE NO LONGER PRESENT IN GEYSERHUB"); + logger.warn("Place your selector.yml in the config folder of CrossplatForms for it to be automatically converted."); + try { Properties gitProperties = new Properties(); gitProperties.load(FileUtils.getResource("git.properties")); diff --git a/src/main/java/dev/projectg/geyserhub/GeyserHubCommand.java b/src/main/java/dev/projectg/geyserhub/GeyserHubCommand.java index 98d21c6..cf0111b 100644 --- a/src/main/java/dev/projectg/geyserhub/GeyserHubCommand.java +++ b/src/main/java/dev/projectg/geyserhub/GeyserHubCommand.java @@ -22,10 +22,7 @@ public class GeyserHubCommand implements CommandExecutor { Logger.Level.SEVERE, ChatColor.RED); private static final String[] HELP = { - "/ghub - Opens the default form if one exists. If not, shows the help page", - "/ghub - Opens the help page", - "/ghub form
- Open a form with the defined name", - "/ghub form - Sends a form to a given player", + "/ghub help - Opens the help page", "/ghub reload - reloads the selector" }; @@ -37,7 +34,7 @@ public boolean onCommand(@NotNull CommandSender commandSender, @NotNull Command if (!(commandSender instanceof Player || commandSender instanceof ConsoleCommandSender)) { return false; } - // todo: cleanup + if (args.length == 0) { sendHelp(commandSender); return true;