diff --git a/src/de/steamwar/tutorial/commands/TutorialCommand.java b/src/de/steamwar/tutorial/commands/TutorialCommand.java index 09aa30e..4ef7edd 100644 --- a/src/de/steamwar/tutorial/commands/TutorialCommand.java +++ b/src/de/steamwar/tutorial/commands/TutorialCommand.java @@ -12,6 +12,10 @@ public class TutorialCommand extends SWCommand { @Register("rate") public void rateCommand(Player player) { + rate(player); + } + + public static void rate(Player player) { new ExecuteCommandPacket(player, "tutorial rate " + System.getProperty("tutorial")).send(player); } } diff --git a/src/de/steamwar/tutorial/listener/RateSign.java b/src/de/steamwar/tutorial/listener/RateSign.java index faa526a..01d8750 100644 --- a/src/de/steamwar/tutorial/listener/RateSign.java +++ b/src/de/steamwar/tutorial/listener/RateSign.java @@ -19,7 +19,7 @@ package de.steamwar.tutorial.listener; -import de.steamwar.comms.packets.ExecuteCommandPacket; +import de.steamwar.tutorial.commands.TutorialCommand; import org.bukkit.block.BlockState; import org.bukkit.block.Sign; import org.bukkit.entity.Player; @@ -43,6 +43,6 @@ public class RateSign extends BasicListener { return; Player player = event.getPlayer(); - new ExecuteCommandPacket(player, "tutorial rate " + System.getProperty("tutorial")).send(player); + TutorialCommand.rate(player); } }