Dieser Commit ist enthalten in:
Ursprung
4f7ca74a43
Commit
759506f874
@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
package de.steamwar.tutorial;
|
package de.steamwar.tutorial;
|
||||||
|
|
||||||
|
import de.steamwar.tutorial.commands.TutorialCommand;
|
||||||
import de.steamwar.tutorial.listener.Joining;
|
import de.steamwar.tutorial.listener.Joining;
|
||||||
import de.steamwar.tutorial.listener.RateSign;
|
import de.steamwar.tutorial.listener.RateSign;
|
||||||
import org.bukkit.plugin.java.JavaPlugin;
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
@ -36,6 +37,8 @@ public class TutorialSystem extends JavaPlugin {
|
|||||||
public void onEnable() {
|
public void onEnable() {
|
||||||
new RateSign();
|
new RateSign();
|
||||||
new Joining();
|
new Joining();
|
||||||
|
|
||||||
|
new TutorialCommand();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static TutorialSystem getPlugin() {
|
public static TutorialSystem getPlugin() {
|
||||||
|
17
src/de/steamwar/tutorial/commands/TutorialCommand.java
Normale Datei
17
src/de/steamwar/tutorial/commands/TutorialCommand.java
Normale Datei
@ -0,0 +1,17 @@
|
|||||||
|
package de.steamwar.tutorial.commands;
|
||||||
|
|
||||||
|
import de.steamwar.command.SWCommand;
|
||||||
|
import de.steamwar.comms.packets.ExecuteCommandPacket;
|
||||||
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
|
public class TutorialCommand extends SWCommand {
|
||||||
|
|
||||||
|
public TutorialCommand() {
|
||||||
|
super("tutorial");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Register("rate")
|
||||||
|
public void rateCommand(Player player) {
|
||||||
|
new ExecuteCommandPacket(player, "tutorial rate " + System.getProperty("tutorial")).send(player);
|
||||||
|
}
|
||||||
|
}
|
In neuem Issue referenzieren
Einen Benutzer sperren