27 Zeilen
780 B
Java
27 Zeilen
780 B
Java
package de.steamwar.fightsystem.commands;
|
|
|
|
import de.steamwar.fightsystem.ArenaMode;
|
|
import de.steamwar.fightsystem.states.FightState;
|
|
import de.steamwar.fightsystem.states.StateDependentCommand;
|
|
import org.bukkit.command.Command;
|
|
import org.bukkit.command.CommandExecutor;
|
|
import org.bukkit.command.CommandSender;
|
|
import org.bukkit.entity.Player;
|
|
|
|
public class StateCommand implements CommandExecutor {
|
|
|
|
public StateCommand() {
|
|
new StateDependentCommand(ArenaMode.Test, FightState.All, "state", this);
|
|
}
|
|
|
|
@Override
|
|
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
|
if(!(sender instanceof Player)) {
|
|
return false;
|
|
}
|
|
|
|
GUI.state((Player) sender);
|
|
return false;
|
|
}
|
|
}
|