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

Query Floating Text

Comments in 'Plugin Development' started by GamesLoad, Dec 21, 2015.

  1. GamesLoad
    Offline

    GamesLoad Active Member

    Joined:
    Jun 28, 2014
    Posts:
    106
    Minecraft User:
    GamesLoad
    Hello I made a plugin that displays the number of players to another server in a floating text wanted to know two things:
    - How do I set the number of players such as they like the network server
    - How come the floatingtext not working.
    Here is my project on github
    https://github.com/iSoteristi/queryPocketMine
  2. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    I just want to know, why does everyone call the main class `main` instead of `Main`?

    Now:
    1. Learn PHP. Local variables cannot be shared between different functions. Use class properties instead.
    2. The server name would be stuck at the state during startup.
    3. You didn't register events.
    4. You are highly encouraged to use Utils::getURL() instead for HTTP requests.
    5. Do not execute HTTP requests in the main thread. Any executions that may take more than half a tick under normal conditions are considered as "hanging the thread" and should not be done in the main thread.
    Last edited: Dec 21, 2015
  3. Vaivez66
    Offline

    Vaivez66 Notable Member Plugin Developer

    Joined:
    Jun 10, 2015
    Posts:
    402
    Plugins:
    2
    *variables
  4. GamesLoad
    Offline

    GamesLoad Active Member

    Joined:
    Jun 28, 2014
    Posts:
    106
    Minecraft User:
    GamesLoad
    But how do you then set the number of the player with the sommma more variables?

Share This Page

Advertisement