TypeGameMode now supports ordinals.
This commit is contained in:
parent
9a78535f80
commit
d76c2125b9
@ -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<GameMode>
|
||||
{
|
||||
// -------------------------------------------- //
|
||||
@ -14,5 +18,20 @@ public class TypeGameMode extends TypeEnum<GameMode>
|
||||
{
|
||||
super(GameMode.class);
|
||||
}
|
||||
|
||||
// -------------------------------------------- //
|
||||
// OVERRIDE
|
||||
// -------------------------------------------- //
|
||||
|
||||
@Override
|
||||
public Set<String> getIdsInner(GameMode value)
|
||||
{
|
||||
Set<String> ret = new MassiveSet<String>(super.getIdsInner(value));
|
||||
|
||||
String id = String.valueOf(value.ordinal());
|
||||
ret.add(id);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user