Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Outdated SafeAFK 1.1

Oh gosh, annoyed that u just died while u are afking? This will protect you :D

  1. Junyi00
    For PocketMine-MP:
    Alpha_1.3.9
    ~SafeAFK~

    NOOOO, raging cause u just died while afking? This will disallow u from getting hurt after u use /afk!

    Commands:
    Code:
    /afk
    /afkoff

    TIP: To get out of afk mode fast, just walk. You will be out of afk mode automatically

    GENERAL NOTICE:

    <>This plugin is not tested, my pocketmine server isn't working ._.:mad:

    Update Log:
    0.1) First release

    Do rate this plugin and comment how u feel and what i need to improve in! :D



    Click the like button if u find this plugin awesome :p
    Alternate Categories:
    • Fun
    • Miscellaneous

Recent Updates

  1. Fix

Recent Reviews

  1. hoyinm14mc
    hoyinm14mc
    5/5,
    Version: 1.1
    Yeah!!! Just what i need!!
    The thing i like is AUTO AFKOFF.
    But can u make player auto afk after the player has no movement and players can use /afk to afkoff ?
  2. DopeteK
    DopeteK
    3/5,
    Version: 1.1
    It goes AFK but players are not frozen and they can still be killed. Can you fix this please?
  3. PEMapModder
    PEMapModder
    4/5,
    Version: 1.1
    [php]
    private $moveTime=array();
    private $tick=0;
    public function init(){
    $this->server->addHandler ("player.move",array ($this,"onMove"));
    $this->server->schedule (20,array ($this,"tick"));
    $this->server->schedule (50,array ($this,"checkAfk"));
    }
    public function tick (){ $this->tick++; }
    public function onMove ($p) {
    $moveTime[$p->username]=$this->tick;
    }
    public function checkAfk () {
    foreach ($this->moveTime as $ign=>$lastTick){
    if ($this->tick - $lastTick > 100){
    $this->server->api->console->run("sudo $ign afk");
    }
    }
    }
    [/php]
    This will be the fifth star.
Advertisement