PlotSquared/Core/src/main/java/com/intellectualcrafters/plot/util/PlotGameMode.java
2016-03-28 13:28:21 -04:00

34 lines
663 B
Java

package com.intellectualcrafters.plot.util;
public enum PlotGameMode {
NOT_SET(-1, ""),
SURVIVAL(0, "survival"),
CREATIVE(1, "creative"),
ADVENTURE(2, "adventure"),
SPECTATOR(3, "spectator");
private final int id;
private final String name;
PlotGameMode(int id, String name) {
this.id = id;
this.name = name;
}
/**
* The magic-value id of the GameMode.
* @return the GameMode id
*/
public int getId() {
return this.id;
}
/**
* Get the name of this GameMode
* @return the GameMode name
*/
public String getName() {
return this.name;
}
}