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.
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.
Did you try making it so when a player logs off, it reverts, or you just haven't added the feature yet?
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.
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
Blades_ What do you mean? Does nothing happen when players leave? If so, that should not be happening. Please elaborate.
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
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.