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

[REMOVED] PlayerCounter

Comments in 'Plugin Releases' started by Lambo, Oct 25, 2013.

Thread Status:
Not open for further replies.
  1. Lambo
    Offline

    Lambo Notable Member Plugin Developer

    Joined:
    Sep 14, 2013
    Posts:
    435
    Plugins:
    4
    Minecraft User:
    Lambo
    Lambo submitted a new plugin:

    PlayerCounter - Counts how many players have joined the server

    Read more about this plugin...
  2. Puzzleo
    Offline

    Puzzleo Banned

    Joined:
    Sep 7, 2013
    Posts:
    88
    Minecraft User:
    puzzleo
    Could u broadcast how many players have joined to sever like 1111 have join this sever
  3. Lambo
    Offline

    Lambo Notable Member Plugin Developer

    Joined:
    Sep 14, 2013
    Posts:
    435
    Plugins:
    4
    Minecraft User:
    Lambo
  4. ZacHack
    Offline

    ZacHack Staff Member Sectional Moderator

    Joined:
    Aug 23, 2013
    Posts:
    326
    Plugins:
    6
    Minecraft User:
    _ZacHack_
    Another nice feature would be whenever a new player joins it broadcasts $name is the $totalplayers player on this server
  5. Lambo
    Offline

    Lambo Notable Member Plugin Developer

    Joined:
    Sep 14, 2013
    Posts:
    435
    Plugins:
    4
    Minecraft User:
    Lambo
    I'll add that to my Join MOTD plugin.
  6. ZacHack
    Offline

    ZacHack Staff Member Sectional Moderator

    Joined:
    Aug 23, 2013
    Posts:
    326
    Plugins:
    6
    Minecraft User:
    _ZacHack_
    Oh yah that's better
  7. Lambo
    Offline

    Lambo Notable Member Plugin Developer

    Joined:
    Sep 14, 2013
    Posts:
    435
    Plugins:
    4
    Minecraft User:
    Lambo
    =) do you have a server?
  8. ZacHack
    Offline

    ZacHack Staff Member Sectional Moderator

    Joined:
    Aug 23, 2013
    Posts:
    326
    Plugins:
    6
    Minecraft User:
    _ZacHack_
    No but I'm admin on here and this reminds me of halo server scripts that's what my plugins are based off of almost
  9. onebone
    Offline

    onebone Notable Member Plugin Developer

    Joined:
    Aug 31, 2013
    Posts:
    330
    Plugins:
    7
    Minecraft User:
    onebone
    Isn't it seems better?
    PHP:
    $count count($this->api->player->online());
  10. Lambo
    Offline

    Lambo Notable Member Plugin Developer

    Joined:
    Sep 14, 2013
    Posts:
    435
    Plugins:
    4
    Minecraft User:
    Lambo
    The plugin counts all different new players that have ever joined the server :p
  11. Blubbll
    Offline

    Blubbll Active Member

    Joined:
    Oct 3, 2013
    Posts:
    325
    Minecraft User:
    Blubbll
    Please put users in a SQL db and make playeramount(number) in config.yml ok?
  12. Lambo
    Offline

    Lambo Notable Member Plugin Developer

    Joined:
    Sep 14, 2013
    Posts:
    435
    Plugins:
    4
    Minecraft User:
    Lambo
    There is already a playeramount number in the config. And I'm not that advanced yet to put stuff in a SQL database :p
  13. Blubbll
    Offline

    Blubbll Active Member

    Joined:
    Oct 3, 2013
    Posts:
    325
    Minecraft User:
    Blubbll
    That's sad :(
    My Server keeps crashing because it always needs to load hundreds of kilobytes in the config.yml
  14. Lambo
    Offline

    Lambo Notable Member Plugin Developer

    Joined:
    Sep 14, 2013
    Posts:
    435
    Plugins:
    4
    Minecraft User:
    Lambo
    Just delete all the players in the config and keep the number of players. Although then it will count the players that have joined before again.... I'm trying to find a alternative (example: see for the player file in the players folder)
    My PHP experience is really bad :/ So yeah.
  15. Blubbll
    Offline

    Blubbll Active Member

    Joined:
    Oct 3, 2013
    Posts:
    325
    Minecraft User:
    Blubbll
    Do it like AuthPro and SimpleAuth maybe, use a file per user, this will
    speed up & be more stable :)
  16. wies
    Offline

    wies Notable Member

    Joined:
    Aug 23, 2013
    Posts:
    392
    When a new player joins a pocketmine server it will create a new player file for him, called "$username.yml" in the players folder. So you can just check if that player file exists.
    Blubbll likes this.
  17. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    I am thinking if
    Code:
    $d=dir(FILE_PATH."players\\");
    $count=0;
    while($d->read()!==false){
        $count++;
    }
    would be faster
  18. Lambo
    Offline

    Lambo Notable Member Plugin Developer

    Joined:
    Sep 14, 2013
    Posts:
    435
    Plugins:
    4
    Minecraft User:
    Lambo
    This plugin has been removed and is no longer available for download.
Thread Status:
Not open for further replies.

Share This Page

Advertisement