From 91f7f5edfc6d4a76a704efd9f068485e60e1d258 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Tue, 22 Mar 2022 10:37:10 +0100 Subject: [PATCH 1/2] Add tutorial rate command --- src/de/steamwar/bungeecore/commands/TutorialCommand.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/commands/TutorialCommand.java b/src/de/steamwar/bungeecore/commands/TutorialCommand.java index c4d6ee3..9b5bc0a 100644 --- a/src/de/steamwar/bungeecore/commands/TutorialCommand.java +++ b/src/de/steamwar/bungeecore/commands/TutorialCommand.java @@ -26,6 +26,7 @@ import de.steamwar.bungeecore.inventory.SWListInv; import de.steamwar.bungeecore.inventory.SWStreamInv; import de.steamwar.bungeecore.sql.SteamwarUser; import de.steamwar.bungeecore.sql.Tutorial; +import net.md_5.bungee.BungeeCord; import net.md_5.bungee.api.CommandSender; import net.md_5.bungee.api.connection.ProxiedPlayer; @@ -52,7 +53,7 @@ public class TutorialCommand extends BasicCommand { switch(args[0].toLowerCase()) { case "rate": if(args.length < 2) { - BungeeCore.get().getLogger().log(Level.SEVERE, "rate executed with missing argument"); + BungeeCord.getInstance().getPluginManager().dispatchCommand(sender, "tutorial rate"); return; } From 577503114d7460380c1a99f78f8a7ebb413d8181 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Tue, 22 Mar 2022 10:42:47 +0100 Subject: [PATCH 2/2] Maybe now? --- src/de/steamwar/bungeecore/commands/TutorialCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/commands/TutorialCommand.java b/src/de/steamwar/bungeecore/commands/TutorialCommand.java index 9b5bc0a..d855715 100644 --- a/src/de/steamwar/bungeecore/commands/TutorialCommand.java +++ b/src/de/steamwar/bungeecore/commands/TutorialCommand.java @@ -53,7 +53,7 @@ public class TutorialCommand extends BasicCommand { switch(args[0].toLowerCase()) { case "rate": if(args.length < 2) { - BungeeCord.getInstance().getPluginManager().dispatchCommand(sender, "tutorial rate"); + player.chat("/tutorial rate"); return; }