From 1f83004d64465b5de706864a54f9ebd13030ac81 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Fri, 10 Mar 2023 11:50:47 +0100 Subject: [PATCH] Fix tutorial rate misusers Signed-off-by: Lixfel --- src/de/steamwar/bungeecore/commands/TutorialCommand.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/de/steamwar/bungeecore/commands/TutorialCommand.java b/src/de/steamwar/bungeecore/commands/TutorialCommand.java index 9fdc967..aa27b76 100644 --- a/src/de/steamwar/bungeecore/commands/TutorialCommand.java +++ b/src/de/steamwar/bungeecore/commands/TutorialCommand.java @@ -24,11 +24,11 @@ import de.steamwar.bungeecore.inventory.SWInventory; import de.steamwar.bungeecore.inventory.SWItem; import de.steamwar.bungeecore.inventory.SWListInv; import de.steamwar.bungeecore.inventory.SWStreamInv; -import de.steamwar.sql.SteamwarUser; -import de.steamwar.sql.Tutorial; import de.steamwar.bungeecore.util.Chat19; import de.steamwar.command.SWCommand; import de.steamwar.command.TypeValidator; +import de.steamwar.sql.SteamwarUser; +import de.steamwar.sql.Tutorial; import net.md_5.bungee.api.ProxyServer; import net.md_5.bungee.api.connection.ProxiedPlayer; @@ -37,7 +37,6 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.concurrent.TimeUnit; -import java.util.logging.Level; import java.util.stream.Collectors; public class TutorialCommand extends SWCommand { @@ -60,7 +59,7 @@ public class TutorialCommand extends SWCommand { public void rate(ProxiedPlayer player, int id) { Tutorial tutorial = Tutorial.get(id); if(tutorial == null) { - BungeeCore.get().getLogger().log(Level.SEVERE, "rate executed with nonexistent id: " + id); + Chat19.chat(player, "/tutorial rate"); // Catch players manually entering numbers return; }