13
0

Remove duplication
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2022-03-22 10:59:53 +01:00
Ursprung 759506f874
Commit 5371ad1cd5
2 geänderte Dateien mit 6 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -12,6 +12,10 @@ public class TutorialCommand extends SWCommand {
@Register("rate") @Register("rate")
public void rateCommand(Player player) { public void rateCommand(Player player) {
rate(player);
}
public static void rate(Player player) {
new ExecuteCommandPacket(player, "tutorial rate " + System.getProperty("tutorial")).send(player); new ExecuteCommandPacket(player, "tutorial rate " + System.getProperty("tutorial")).send(player);
} }
} }

Datei anzeigen

@ -19,7 +19,7 @@
package de.steamwar.tutorial.listener; 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.BlockState;
import org.bukkit.block.Sign; import org.bukkit.block.Sign;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
@ -43,6 +43,6 @@ public class RateSign extends BasicListener {
return; return;
Player player = event.getPlayer(); Player player = event.getPlayer();
new ExecuteCommandPacket(player, "tutorial rate " + System.getProperty("tutorial")).send(player); TutorialCommand.rate(player);
} }
} }