mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-17 05:03:55 -07:00
Update Bukkit for 1.3.1 changes
By: feildmaster <admin@feildmaster.com>
This commit is contained in:
@@ -11,14 +11,19 @@ import com.google.common.collect.Maps;
|
||||
*/
|
||||
public enum GameMode {
|
||||
/**
|
||||
* Creative mode may fly, build instantly, become invulnerable and create free items
|
||||
* Creative mode may fly, build instantly, become invulnerable and create free items.
|
||||
*/
|
||||
CREATIVE(1),
|
||||
|
||||
/**
|
||||
* Survival mode is the "normal" gameplay type, with no special features.
|
||||
*/
|
||||
SURVIVAL(0);
|
||||
SURVIVAL(0),
|
||||
|
||||
/**
|
||||
* Adventure mode cannot break blocks, use chat, use buckets, etc.
|
||||
*/
|
||||
ADVENTURE(2);
|
||||
|
||||
private final int value;
|
||||
private final static Map<Integer, GameMode> BY_ID = Maps.newHashMap();
|
||||
|
Reference in New Issue
Block a user