From 94905530626c915f280e7fd6a104b84536aaab69 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Thu, 23 Jun 2022 06:49:24 +0200 Subject: [PATCH] Fix tutorial rate --- src/de/steamwar/tutorial/commands/TutorialCommand.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/de/steamwar/tutorial/commands/TutorialCommand.java b/src/de/steamwar/tutorial/commands/TutorialCommand.java index 4ef7edd..f3824d9 100644 --- a/src/de/steamwar/tutorial/commands/TutorialCommand.java +++ b/src/de/steamwar/tutorial/commands/TutorialCommand.java @@ -1,7 +1,9 @@ package de.steamwar.tutorial.commands; import de.steamwar.command.SWCommand; -import de.steamwar.comms.packets.ExecuteCommandPacket; +import de.steamwar.network.NetworkSender; +import de.steamwar.network.packets.client.ExecuteCommandPacket; +import de.steamwar.sql.SteamwarUser; import org.bukkit.entity.Player; public class TutorialCommand extends SWCommand { @@ -16,6 +18,6 @@ public class TutorialCommand extends SWCommand { } public static void rate(Player player) { - new ExecuteCommandPacket(player, "tutorial rate " + System.getProperty("tutorial")).send(player); + NetworkSender.send(new ExecuteCommandPacket(SteamwarUser.get(player.getUniqueId()).getId(), "tutorial rate " + System.getProperty("tutorial"))); } }