forked from SteamWar/SteamWar
Format code
This commit is contained in:
@@ -27,21 +27,21 @@ import org.bukkit.entity.Player;
|
||||
@Linked
|
||||
public class GamemodeCommand extends SWCommand {
|
||||
|
||||
public GamemodeCommand() {
|
||||
super("gamemode", "gm", "g");
|
||||
}
|
||||
public GamemodeCommand() {
|
||||
super("gamemode", "gm", "g");
|
||||
}
|
||||
|
||||
@Register
|
||||
public void genericCommand(final Player p) {
|
||||
if (p.getGameMode() == GameMode.CREATIVE) {
|
||||
p.setGameMode(GameMode.SPECTATOR);
|
||||
} else {
|
||||
p.setGameMode(GameMode.CREATIVE);
|
||||
}
|
||||
}
|
||||
@Register
|
||||
public void genericCommand(final Player p) {
|
||||
if (p.getGameMode() == GameMode.CREATIVE) {
|
||||
p.setGameMode(GameMode.SPECTATOR);
|
||||
} else {
|
||||
p.setGameMode(GameMode.CREATIVE);
|
||||
}
|
||||
}
|
||||
|
||||
@Register
|
||||
public void gamemodeCommand(final Player p, final GameMode gameMode) {
|
||||
p.setGameMode(gameMode);
|
||||
}
|
||||
@Register
|
||||
public void gamemodeCommand(final Player p, final GameMode gameMode) {
|
||||
p.setGameMode(gameMode);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user