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

World's getPlayers() counting

Comments in 'Plugin Development' started by Inta, Jul 26, 2016.

  1. Inta
    Offline

    Inta Active Member

    Joined:
    Feb 11, 2016
    Posts:
    84
    Minecraft User:
    InstantlyTa
    Yea. So im sure my world is not over 16 players. There is sometime ops, admins teleport there but that's not the problem.
    The problem is this code:
    PHP:
    count($this->owner->getServer()->getLevelByName("world")->getPlayers())
    Return 45 players. Its always claim up and up and up and if i sum all of the players of the worlds in my server, its >100 while my server player limit is 70.
    This make no sense.
    What function affect this counting?
  2. PocketKiller
    Offline

    PocketKiller Notable Member

    Joined:
    Jul 20, 2015
    Posts:
    741
    is it on a task?
  3. Inta
    Offline

    Inta Active Member

    Joined:
    Feb 11, 2016
    Posts:
    84
    Minecraft User:
    InstantlyTa
    On a command. Of the ManyWorlds Plugin.
  4. Svile
    Offline

    Svile Active Member

    Joined:
    Mar 30, 2015
    Posts:
    239
    Minecraft User:
    svile
    i don't know if you are using NPCs and if you are, i don't know if yours NPCs are treated as players but maybe this can be the cause ?
  5. Inta
    Offline

    Inta Active Member

    Joined:
    Feb 11, 2016
    Posts:
    84
    Minecraft User:
    InstantlyTa
    No NPCs in my world. for example my hub world name is "hub" and i don't know if there's problem there but still, my "world" world is buggy. No NPC, just players, i don't know what's going on, teleport, remove Player, set skin, reload player, anything.
  6. Inta
    Offline

    Inta Active Member

    Joined:
    Feb 11, 2016
    Posts:
    84
    Minecraft User:
    InstantlyTa
    Also i notice that whenever the player quit, in the list player of the pause menu, the name doesn't appear.

Share This Page

Advertisement