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

improved goafk command

Go down

improved goafk command Empty improved goafk command

Post by batoom 25th April 2011, 6:02 pm

so yeah, this should work fine, and brings a little ease into going afk with added originality/personality:

Code:
else if (splitted[0].equalsIgnoreCase("goafk")) {
            if (splitted.length < 2) {
                player.setChalkboard("I'm AFK~! Leave me a message/whisper! :)");
            } else { 
            player.setChalkboard("AFK: " + StringUtil.joinStringFrom(splitted, 1).getBytes());
            }
    }

so basically: @goafk <your message here>

batoom

Posts : 40
Join date : 2011-04-10

Back to top Go down

improved goafk command Empty Re: improved goafk command

Post by batoom 29th April 2011, 2:31 pm

oops, found an error; the ".getBytes())" should not be there.

batoom

Posts : 40
Join date : 2011-04-10

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum