Merge pull request #187 from magnusulf/patch-2
Support for gamemode numbers
This commit is contained in:
commit
9bcdcc3120
@ -33,15 +33,15 @@ public class ARGameMode extends ARAbstractSelect<GameMode>
|
|||||||
|
|
||||||
arg = arg.toLowerCase();
|
arg = arg.toLowerCase();
|
||||||
|
|
||||||
if (arg.startsWith("s"))
|
if (arg.startsWith("s") || arg.equals("0"))
|
||||||
{
|
{
|
||||||
ret = GameMode.SURVIVAL;
|
ret = GameMode.SURVIVAL;
|
||||||
}
|
}
|
||||||
else if (arg.startsWith("c"))
|
else if (arg.startsWith("c") || arg.equals("1"))
|
||||||
{
|
{
|
||||||
ret = GameMode.CREATIVE;
|
ret = GameMode.CREATIVE;
|
||||||
}
|
}
|
||||||
else if (arg.startsWith("a"))
|
else if (arg.startsWith("a") || arg.equals("2"))
|
||||||
{
|
{
|
||||||
ret = GameMode.ADVENTURE;
|
ret = GameMode.ADVENTURE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user