PlotSquared/Core/src/main/java/com/intellectualcrafters/plot/util/PlotGameMode.java

34 lines
663 B
Java
Raw Normal View History

2015-07-30 16:25:16 +02:00
package com.intellectualcrafters.plot.util;
2016-03-23 02:41:37 +01:00
public enum PlotGameMode {
2016-03-28 19:28:21 +02:00
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;
}
2015-07-30 16:25:16 +02:00
}