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

need more APIs

Comments in 'Plugin Development' started by amaax, Aug 23, 2013.

  1. amaax
    Offline

    amaax Plugin Developer

    Joined:
    Aug 23, 2013
    Posts:
    6
    Minecraft User:
    amaax
    I have a problem.
    I cannot as example change description of server automatically without changes in sources of pm. I cannot change message issued from player without "bandages" as
    PHP:
    case "player.chat":
    $this->api->chat->broadcast("[".$data["player"]."] ".$data["message"]);
    return 
    false;
    I cannot get IP of not-joined player, because API is not fully completed. :(
    Shoghicp, can you make api more functionally?
  2. shoghicp
    Offline

    shoghicp Staff Member PocketMine Team

    Joined:
    Aug 22, 2013
    Posts:
    433
    Plugins:
    14
    Minecraft User:
    shoghicp
    Moving this to plugin development.
    You can modify the server description directly. Just get the Server object and edit it:
    PHP:
    $server ServerAPI::request();
    $server->description "blah";
    //or $server->name = "foo";

Share This Page

Advertisement