Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (playerCommand.startsWith("afk") && c.sit == false) {
- if(c.inWild()) {
- c.sendMessage("You can not go AFK in the Wilderness.");
- return;
- }
- c.sit = true;
- c.startAnimation(4117);
- c.forcedText = "Going AFK!";
- c.forcedChatUpdateRequired = true;
- c.updateRequired = true;
- c.sendMessage("When you return type ::back, you cannot move while AFK is on.");
- }
- if (playerCommand.startsWith("back") && c.sit == true) {
- c.sit = false;
- c.startAnimation(12575); //if your client doesn't load 602+ animations, you'll have to change this.
- c.forcedText = "I'm back!";
- c.forcedChatUpdateRequired = true;
- c.updateRequired = true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement