Inactive [GEN/INFO] PlayerStatusSigns v0.6 - Have a sign tell you who is on and off [1.1-R7]

Discussion in 'Inactive/Unsupported Plugins' started by NuclearW, Jul 15, 2011.

  1. Offline


    PlayerStatusSigns - Have a sign tell you who is on and off
    Version: v0.6

    PlayerStatusSigns (PSS) lets users create signs that will change when players log in, our, or go /afk.

    PSS supports language translation: Simply edit the "lang" file to change anything PSS says..

    PSS has been translated into French, Brazilian Portuguese, Dutch, Spanish, and Polish.
    PSS supports and is tested with PermissionsEx. PSS also supports default Bukkit Permissions! And will support any permissions plugin that does the same. PSS also tentatively supports Permissions 2.7.4 and 3.1.x, but is not tested against these.

    Usernames 15 or 16 characters in length will not be colored in order to fit them on the sign.

    To create a PSS sign: You must first have the appropriate permission (if a permissions plugin is being used), or have ops (if a permissions plugin is not being used).

    Simply create a sign with "[PSS]" (without quotes) in the first line, and a player name in the second. If that player is currently online, you may use partial name matching, if they are not you must spell their exact name out completely and caps-correct.

    A visual explanation:[​IMG]

    If you translate this plugin I would be very grateful if you would send me your lang file so that I may share it with others in this post.

    • Create signs to show when a player is on or off.
    • Signs also track users who use /afk and have permission to do so.
    • Supports translation.
    • Supports PermissionsEx, Permission 2/3, Bukkit Permissions, and defaults to OP

    • /afk (on|off) - Sets the signs of the player who uses this command to show AFK, or Online.
    • /pss <option> - Debugging/admin command use following for <option>
      • save - Saves the current signs in memory to the signs file.
      • load - Loads from the signs file and over-writes the current signs in memory.
      • check - Runs through all signs in memory and removes any signs that are now missing.
      • dump - Prints a lovely chat spam representation of the current signs in memory.

    Nodes (open)

    • pss.* - Allows access to all pss commands
    • pss.create.* - Implies pss.create and pss.create.other
    • pss.create - Needed to create a PSS sign for one's self
    • pss.create.other - Needed to create a PSS sign for any player
    • pss.afk - Needed to use /afk
    • pss.admin - Needed to use the /pss command

    Download PlayerStatusSigns

    • Version 0.6
      • Many internal changes to fix me being dumb when I first wrote it
      • Actually loads properly now!
    • Version 0.5
      • Update to new event system, still needs a re-write
    • Version 0.4
      • Chunks with signs in them now loaded if they are not in order to properly update them
      • PSS now supports Bukkit Permissions!
      • Version 0.4.1
        • Chunks with signs in them are now really loaded if they are not.
        • PSS now tracks other forms of disconnect other than just quit and kick (endOfStream, etc)
    • Version 0.3
      • PSS now watches for block breaks, to better track it's signs
      • New /pss command, mostly debugging commands, should never really need to be used in general use.
    • Version 0.2
      • Added permission pss.create.other for permission to create signs for users other than self.
      • Version 0.2.1
        • Names longer than 15 characters are not colored to try to make them fit.
    • Version 0.1
      • Initial release.
    Known Bugs:
    • None to my knowledge!
    PSS was suggested by @Parrothead
    Vorago, Xaostica and Parrothead like this.
  2. Offline


    very nice.
    How about "pss.own" to grant ability to make only personal sign?
  3. Offline


    This would be problematic with any server with * assigned for permissions.

    I will add it with the permission "pss.create.other", such that if one has pss.create, but not pss.create.other, they may only make signs for themselves.


    Perhaps I replied saying I would too soon; it is done now in v0.2

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 17, 2016
  4. Offline


    exactly what I meant
    simply not yet fully awake=)

    And how does it store data about players?
    Can it use already premeade base from LastLogin?
  5. Offline


    It stores player online/offline status in memory, and hooks into the appropriate events to keep that listing up to date. (eg Player_join, Player_kick, Player_quit) and is sure to check on load (in case of reload) to see who is online at that time. If a player is offline, and their sign says otherwise, it changes it, if they are offline and their sign says they are offline, it remains the same; etc.

    So, it can work as an effective last seen plugin, but then again I wrote a different plugin for that purpose.

    I'm not sure what data there would be to use from LastLogin, though? Unless you mean getting the player's last seen time when the sign is first made? If that is the case, I do admit I would probably be greedy and support my own plugin... at least then I know when the data storage structure changes.
  6. Offline


    Exactly. But this is not so important. Just to add time for "not seen in recent past" players

    Maybe add listening for ban event too? Like "DaveDee Banned since May 31, 2011" It would be nice to have something like the wall of shame, or graveyard=)
    And nice "different plugin". I think, we will use it instead of LastLogin

    PS sorry for my language proficiency...
  7. Offline


    This is so awesome, thanks for making it!
  8. Offline


  9. Offline


    Thanks, although banning is a different matter, as I would have to be watching ban and unban commands, and know which permissions go with which ban plugins, or know how to properly use the API to ensure I know who is actually banned, etc. It would be a mess, basically, please excuse my unwillingness for that particular feature.

    I don't know why you are apologizing, your English is very good.

    It was a pleasure.

    Thank you very much! It is in the first post now.
  10. Offline


    ok so i have an idea,groups on the signs too.

    so right now the format is:


    Maybe make it like:

    <Status> since

    that would be great if you could do that then you can have Owner, CoOwner,admin,mod,etc.
  11. Offline


    Not sure if that would fit on the sign all to well, and I'm not too fond of digging into other plugins to get data, such as the group title, in this case. I'll see how it looks in testing, though.

    Version 0.2.1 out:
    Usernames 15 or 16 characters in length will not be colored in order to fit them on the sign.
  12. Offline


    <Edit by Moderator: Redacted mediafire url>

    Brazilian Portuguese Translation
    Last edited by a moderator: Nov 27, 2016
  13. Offline


    Thank you! It is now in the main post.
    Last edited by a moderator: Nov 27, 2016
  14. Offline


    This is Dutch i haven't got it in a lang file srry

    #Fri Jul 15 05:36:30 EDT 2011
    now-afk=Je bent afk.
    not-afk=Je bent niet afk.
  15. Offline


    That's alright, thank you very much! It is in the main post now.
  16. Offline


    well then then can you put a blank line on the sign to add a rank yourself or something?
  17. Offline


    Still working on a way for it to work well.

    That said, Version 0.3 is out, which now has better tracking of signs, and some admin commands which you really should not need to use, but are there if you need them.
  18. Offline


    hmm it doesn't work well for me, so if i set a sign when a player is online it says hes online, if the player leaves, hes online... and the same shit with offline :S What's wrong?

    Maybe its a conflict? If i write /pss ingame, a internal error occured while.....

    Maybe the problem is caused by a magic spell. I tested it, if i removed the magic spell (Lock by LWC) it works.

    can we get this work with magic Spell?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 17, 2016
  19. Offline


    Just so you know /pss ingame is not a valid command, and you really should not need to be using the /pss command at all, it's mainly for saving or loading signs files or debugging.

    I'll look into how LWC locks signs, though, I suspect this is the only error you are having.

    PSS v0.4 out, now loads chunks when needed and supports Bukkit Permissions.

    I did some testing with the newest release and LWC's newest release; I cannot seem to replicate this problem.

    However, if it persists, please let me know, as well as what version of CB, PSS, and LWC you are running.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 17, 2016
  20. Offline


    okey, i turned of auto reg. @ LWC and now it works fine. Thanks :)
  21. Offline


    Glad to hear.
  22. Offline


    Not doing any thing for build 1000 craftbukkit
    wont extract ??? any help???
  23. Offline


    Please send me the original language file. I'd like to translate the plugin!
  24. Offline


    Did you place the jar file in your plugins folder?

    Do you use a permissions plugin, and if so, did you give yourself proper permissions to use this plugin?
    If you do not use a permissions plugin, do you have op?

    What are you trying to extract?

    The lang file makes itself on first run and is in the PlayerStatusSigns directory, but for reference, this is the contents of the english lang file:
    lang (open)
    #Fri Jul 15 02:33:34 EDT 2011
    not-afk=You are not AFK.
    now-afk=You are AFK.

    Version 0.4.1:
    • Bugfix, chunks now loaded when needed (for real this time)
    • PSS now also identifies other types of leave other than quit and kick (such as endOfStream)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 17, 2016
  25. Offline


    Awesome been waiting for something like this.Thanks.
  26. Offline


    Using this and its great!

    Any chance you add in addition to AFK displaying on the signs, displaying in the /who command as a prefix before names (ie: [AFK]NuclearW ?

    As unless players are at the signs its still hard to tell if others are afk.
  27. Offline


    Well - German language file: <Edit by Moderator: Redacted mediafire url>
    Last edited by a moderator: Nov 27, 2016
  28. Offline


    Last edited by a moderator: Nov 27, 2016
  29. Offline


    i typed in the permissions (3x) and tried to make a sign with pss dident work :(
    did it again this time with - '*' as my permissions node still no result :(

    ill give the updated version a go!!!
  30. Offline


    What permissions plugin are you using?

    Also, are you using LWC?

    Also, something to try: Make a sign for yourself and use /afk, sometimes lag can get in the way of the sign updating when you first make it.

    Also, as a final resort, try to make the sign, then use "/pss d", please tell me what you see there, afterwards, go into the PlayerStatusSigns folder and see what is in the signs file.

Share This Page