From 91f7f5edfc6d4a76a704efd9f068485e60e1d258 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Tue, 22 Mar 2022 10:37:10 +0100 Subject: [PATCH] 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; }