Post: .gm Command Help.
11-22-2013, 12:08 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Anyone know how i would make a .gm command?
I have this set up in my runCommand void of the commands class,
    
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.");
}
11-25-2013, 05:22 PM #2
Originally posted by Klintos View Post
Anyone know how i would make a .gm command?
I have this set up in my runCommand void of the commands class,
    
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.");
}


What exactly are you asking?
11-27-2013, 05:55 AM #3
Dont worry i got it working, thanks anyway

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo