Cheat Engine

Would you like to react to this message? Create an account in a few clicks or log in to continue.
Cheat Engine

The Underground Site of Cheat Engine


    Release]GM Command Thread

    avatar
    Admin
    Admin


    Posts : 43
    Join date : 2009-05-18

    Release]GM Command Thread Empty Release]GM Command Thread

    Post  Admin Mon May 18, 2009 11:56 am

    Post All GM Commands Here!


    Close Portal!

    [PHP] } else if(splitted[0].equals("!closePortal")) {
    if(splitted.length != 2) {
    mc.dropMessage("Syntax: !closePortal <name>, where name is the portal name");
    } else {
    player.getMap().getPortal(splitted[1]).setPortalState(false);
    }[/PHP]

    Open Portal

    [PHP] } else if(splitted[0].equals("!openPortal")) {
    if (splitted.length != 2) {
    mc.dropMessage("Syntax: !openPortal <name>, where name is the portal name");
    } else {
    player.getMap().getPortal(splitted[1]).setPortalState(true);
    }[/PHP]

    GMs Online World Wide

    [php]
    } else if(splitted[0].equals("!gmsonlinew")) {
    StringBuilder sb = new StringBuilder("GMs online: ");
    mc.dropMessage(sb.toString());
    for(ChannelServer cs : ChannelServer.getAllInstances()) {
    sb = new StringBuilder("[Channel " + cs.getChannel() + "]");
    mc.dropMessage(sb.toString());
    sb = new StringBuilder();
    for(MapleCharacter chr : cs.getPlayerStorage().getAllCharacters()) {
    if (chr.isGM() == true) {
    if(sb.length() > 150) {
    sb.setLength(sb.length() - 2);
    mc.dropMessage(sb.toString());
    sb = new StringBuilder();
    }
    sb.append(MapleCharacterUtil.makeMapleReadable(chr.getName()));
    sb.append(", ");
    }
    }
    if(sb.length() >= 2)
    sb.setLength(sb.length() - 2);
    mc.dropMessage(sb.toString());
    }
    [/php]


    Ben's Edit: Please do not post spam/random things here. ONLY post GM Commands. Thank you.

      Current date/time is Fri Apr 26, 2024 11:01 pm