diff --git a/src/com/massivecraft/massivecore/command/type/enumeration/TypeGameMode.java b/src/com/massivecraft/massivecore/command/type/enumeration/TypeGameMode.java index 117c6e88..cfd64905 100644 --- a/src/com/massivecraft/massivecore/command/type/enumeration/TypeGameMode.java +++ b/src/com/massivecraft/massivecore/command/type/enumeration/TypeGameMode.java @@ -1,7 +1,11 @@ package com.massivecraft.massivecore.command.type.enumeration; +import java.util.Set; + import org.bukkit.GameMode; +import com.massivecraft.massivecore.collections.MassiveSet; + public class TypeGameMode extends TypeEnum { // -------------------------------------------- // @@ -14,5 +18,20 @@ public class TypeGameMode extends TypeEnum { super(GameMode.class); } + + // -------------------------------------------- // + // OVERRIDE + // -------------------------------------------- // + + @Override + public Set getIdsInner(GameMode value) + { + Set ret = new MassiveSet(super.getIdsInner(value)); + + String id = String.valueOf(value.ordinal()); + ret.add(id); + + return ret; + } }