Player Counter

Discussion in 'Archived: Plugin Requests' started by Blades_, Jul 19, 2014.

  1. Offline

    Blades_

    Name: PlayerCounter
    What I want: I want it so when a player joins these blocks http://prntscr.com/449g3u Will change, the max amount of slots on my server are 40 so when a player joins the numbers before the 40 will go up for example in that picture there are ten players, I also want it so you can configure what the numbers look like via world edit, you build the number then select it and do something like /PC create 1 this creates the first number which is of course 1.
     
  2. Offline

    Asien

    Blades_ Here is a simple plugin I made for your request. https://www.dropbox.com/sh/awxxpa0sq26vby2/AADQEo-TwhCwjr1iS965RQkPa/Player_Counter-v1.0.jar

    It changes the region according to current players only. So it will only change the region before the "/40".
    Use "/pc create 1" to create the region that corresponds with 1 person online, "/pc create 2" for 2 people online, etc.

    Caveat: It will only change the region when somebody logs on. It will not back revert by itself when somebody logs off. Try it out for yourself and you may see what I mean.

    Permissions: playercounter.create, playercounter.delete, playercounter.list

    Any bugs or issues, please tahg me.
     
  3. Offline

    omon23


    Did you try making it so when a player logs off, it reverts, or you just haven't added the feature yet?
     
  4. Offline

    Asien

    omon23 I did not add it because it did not appear as if it was needed if used according to Blades_'s example. Just using the same selection for each region will overwrite whatever was there previously.
     
  5. Offline

    Blades_

    If it's possible could you add when the player leaves the number goes down? Please Asien
     
  6. Offline

    omon23

    Asien
    So on a PlayerQuit or PlayerJoin(think that's what it is) event, get the number of online players (Bukkit.getOnlinePlayers().length) and then set the blocks accordingly. I don't reckon it's that hard, unless you've coded it differently
     
  7. Offline

    Asien

    Blades_ What do you mean? Does nothing happen when players leave? If so, that should not be happening. Please elaborate.
     
  8. Offline

    Blades_

    Thanks,the mechanics work fine it's just when I use say quartz slabs for 2 people and select the number and create the thing, that works but when 2 people join the slabs aren't quartz anymore they are stone slabs and come out wierd, anyway to fix that? Asien
     
  9. Offline

    Asien

    Blades_ hmmm, take a screenshot of what you want it to look like, and how it actually turns out so I can get a better understanding. Will work on it right away.
     
  10. Offline

    Blades_

  11. Offline

    Asien

Share This Page