.gm Command
Anyone know how i would make a .gm command?
I have this set up in my runCommand void of the commands class,
I have this set up in my runCommand void of the commands class,
Code:
if(mc.thePlayer.getGameType() == EnumGameType.SURVIVAL){
mc.thePlayer.setGameType(EnumGameType.CREATIVE);
lithium.addMessage("Gamemode updated to §bCreative§f.");
}
if(mc.thePlayer.getGameType() == EnumGameType.CREATIVE){
mc.thePlayer.setGameType(EnumGameType.SURVIVAL);
lithium.addMessage("Gamemode updated to §bSurvival§f.");
}