mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-07-04 11:45:13 +02:00
34 lines
663 B
Java
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;
|
|
}
|
|
}
|