Online Players Sign
This plugin has been rewritten as AMS. Loads of features are added and there are yet more to come. Click the image above or this line to get to the AMS page.
I've developed a game for Android devices which goes by the name Ghosts Can't Fly! It's a simple game in which you try to survive as long as possible while charging and timing your jumps perfectly. Feel free to try it out here ;)
All information below is irrelevant. Use only if you plan to stick with OPS.
I will completely rewrite this, and hopefully without breaking your configs, but they are really messy so I should update them. If I update them I will *try* to create a script or a runnable jar file that will edit the config to the new version.
Easy per-world player counters on signs
Detailed guide on creating a sign:
- Place a sign
- On line 1 write "[OPS]" or "[ONLINE]" on the first line or one of the following: [IPO], [ISPLAYERONLINE], [ISONLINE], [PO], [PLAYERONLINE], [OP] for creating a sign monitoring a single player. (not case sensitive none of them)
- On line 2 either specify a world by its name or write nothing on the second line (if the world written does not exist you will be warned and the sign will default to the current world) or write a players name if creating a player monitoring sign (not case sensitive none of them)
- Your sign should update and start displaying the amount of players in the world you specified or whether the player you specified are online or offline.
Screenshots:
The above image shows how you can make a sign monitoring the current world.
The above image shows what a sign would look like by defaults. The first line displaying text, second line world name and third line currently online players in the world. (in this case there is zero because I use a multiworld system and was not in the world being monitored when the screenshot was taken)
The above image shows a sign customized by this config:
Line1: '&aThere are' Line2: '%totalonline% &aout of &r%maxplayers%' Line3: '&aonline on the' Line4: '&aserver' #Variables available: %online%, %maxplayers%, %world%, %totalonline%
The above image shows a player monitoring sign with this config:
PlayerSignLine1: '&aThe player' PlayerSignLine2: '%player%' PlayerSignLine3: '&ais %OnlineMessage=Logged in%%OfflineMessage=Logged out%' PlayerSignLine4: ''
Configuration:
Pretty self explanatory as it includes a comment as well, but, for those people wanting it on the page, here you go:
Line1: '&aOnline in' Line2: '%world%' Line3: '%online%' Line4: '' #Variables available: %online%, %maxplayers%, %world%, %totalonline% PlayerSignLine1: '&aThe player' PlayerSignLine2: '%player%' PlayerSignLine3: '&ais %OnlineMessage=Logged in%%OfflineMessage=Logged out%' PlayerSignLine4: '' #Variables available: %player%, %OnlineMessage=Online% (the part behind the equal sign (=) is changeable, same with offline), %OfflineMessage=Offline% UseBypassNode: false #Turn on or off the bypassnode's function - Defaults to false
This is what the default config looks like. As you can see, there are four available variables for the first type of sign and you can use more than one of them on every line (though sometimes it might exceed length limit on the sign). Color codes are also fully supported. The variable %online% will turn into displaying the "ERROR" message if the sign is failing. For the PlayerSignLines there are three variables which does the following: %player% - shows the player name currently monitored by the sign. %OnlineMessage=TEXTYOUMAYREPLACE
% is the part of the sign showing if the player is online and hidden when not (hidden when invisible too, also, color supported in there). %OfflineMessage=&cis offline% - (Displays red text "is offline" when the player monitored is offline or invisible).
Sign Protection:
Currently signs are protected from:
- Fire (signs cannot burn in default Bukkit)
- Explosions (Creepers&TNT)
- Players without permissions (break events and create events are blocked without permission)
- All physics events (meaning the sign won't break if the block beneath it is removed.
Permissions:
- ops - Gives you all permissions (including bypass, which makes you invisible to counters and are this player online signs)
- ops.allow - defaults to OP
- ops.allow.create
- ops.allow.create.normalsign - Create normal signs.
- ops.allow.create.playersign - Create player specific signs.
- ops.allow.break
- ops.allow.break.normalsign - Break normal signs.
- ops.allow.break.playersign - Break player specific signs.
- ops.bypass - Makes you invisible to the counters - does not default to anyone
- ops.bypass.normalsign
- ops.bypass.playersign
- ops.verify - Defaults to OP - Gives access to the command /opsverify. Aliases - /verifyops
Notes:
- If you are using any '*' permission nodes you will be getting the 'ops.bypass' permission as well. Most players does not want this and therefore you should exclude it by giving yourself the permission '-ops.bypass' (does not work in every permission plugin, sadly)
- If you happen to either move or remove the signs using WorldEdit it will result in a corrupt signs.yml file. This can be fixed by running /opsverify to remove them from the signs.yml or replacing the signs in the exact positions.
Todo:
- Add command to create signs - (Sort of) suggested by pomtom44
- Add region monitoring signs - Suggested by nikgro - I will begin makin this reallo soon now (within a few days)
Done:
- Add support for checking whether a player is online or not with signs. - Added in V1.5
Thx for this nice plugin
is it possible to show player name that is looking at Like if i look my name show up if my friend look my friends name will show up if notch look notch's name wil show up so only i see my name oonly notch see his name and only my friend se his name ?
@Darthmineboy
Added this suggestion to the todo list. I plan to add it with region signs, so that you can type the name of the region on the third line. If the region name is too long to put on the sign, you will have to use the commands I'm also working on.
Add support for worldguard, making it possible to list the amount of players in a region. This would allow us to perhaps define the amount of players in an arena.
@ThisUsernameIsMine
Every time anything of it should change. Basically every event where a player moves across worlds or joins them somehow.
@MagicalMine
I guess I could, but why not just create a command line edition of this, or an addon? You see, the point of this was it's simplicity, but it has gotten quite complicated anyway. Also, every line of a sign has a limit of characters, so, by making you able to type in multiple worlds is in theory possible, but quite unusable without command line control of it (at least if your world names have any length)
@KelvinKam
I could, but I would break all the current config files if I were to make a better system. Guess I could dig into it, but glad you found a way.
@BioBerserker85
I don't think it has anything to do with my plugin, but once someone else shows up and verifies this, I will definitely look into it. It is a gamebreaking issue, just don't think it's this plugin ;)
How often is the information on signs updated/refreshed?
Thanks :)
Hello, could you add the ability for the sign to show how many players are in two worlds? Thanks
Nice plugin :D But how can I use more than one format, for example I want:
and
Thank you
Update
I found another way, use TeleportSigns + Online Players Sign
@whitehooder
Thanks for answering so quickly! I think we found a bug/glitch within the plugin yesterday, for some reason after we installed the plugin everyone had permission to the /give command which could basically ruin our economy if we didn't discover it as quick as we did.
The first plugin we tried to remove was this and it immediately got fixed, so you might want to take a look at it not just for us but for every other server that might be using this plugin and players abusing the bug.
Thanks again!
@BioBerserker85
Been a while since I've updated this, so there may actually be a little change in v 1.6 that I don't yet know about. I'll have a check.
We recently installed your plugin on our server in hope of getting some signs set up showing individual players like Admins, Mods, and other important ranks if they are online on the server. After we installed it, spent some time trying to make it work but for some reason when we try to do [IPO] or any other ones to show if the player is online or not it just shows them as offline automatically, it never changes. We tried logging out and back in, no new results the only thing that seems to be working is the players online in the world sign.
Could you inform us if there's something wrong with the plugin right now or if it's just us failing completely because we really need this plugin badly.
@whitehooder
Im sure im using 1.9 if i delete all the Citizens bots with the specific name the sign works if i create 1 bot with exact the same name the player is online by sign but thay are not
@Hunty2003
Do you mean when creating the sign or when displaying? The displaying part is possible to fix on your side, but for the creation the only suggestion that comes to mind would have to add 1st line and 2nd line for a whole name.
@Jerimu
Are you sure you are using V1.9? If you are, please let me know any other details about player name and such so that I can test for any bugs. I'll go test a bit myself as well, but more info always helps me solve errors faster ;)
I have still the bug whit citizens when a place a npc and a sign for online or offline the person always online and maybe an idea to add online or offline for every world
When I want to make a sign for someone their name wont fit on the sign. Can i fix this?
@GermanZobov & @adavidso
I don't know what the issue is yet, help me investigate it if you can ;) I will do what I can to fix this for you ASAP.
@adavidso
I have the same problem - even with
UseBypassNode: false or true!
i have a problem with the [op] oart whenever i login the sign wont say
The player
adavidso
is logged on
it says im logged off do u know y?
Added configurable bypass node (look in the config)
You did it for me? Thanks a lot!!!! :-)
@pomtom44
You mean for the IPO signs (IsPlayerOnline)?
Well, I would say it is "possible", but it would require a great amount of work from someone to create a third-party plugin to do this as it has to create new signs like a player would. The easiest would probably be me making it possible to create OPS signs with commands.
Look forward to V2 ;) Creating signs by command will be added. In the mean time, you could try to figure out a way to automate the creation. If you don't find any I guess I could create a third-party plugin that does this (sort of an addon).
Thanks for your suggestion.
Also, for all you people struggling with the bypass node; V1.9 is for you!