Inactive [INFO] Seen v1.2 - Find out when they were last here! [1.2.4-R1.0]

Discussion in 'Inactive/Unsupported Plugins' started by Gravity, Oct 30, 2011.

  1. Offline

    Gravity

    [​IMG]


    Ever wanted to know when someone was last playing? With seen, you can find out when the person was last on the server, specifically their last logout time, down to the minute. Anyone can use it to find out if their friend had just gotten off, or when the server admin was last online. If you want to find out when a player's first connection to the server was, that info is also available via /seen.

    Server admins can also use this plugin to find any players that might have quit playing on the server, and delete any info, files, locks, or anything that is taking up space that is associated with the player.

    If your a complete nerd, you can see how long you have spent on the specific server by using /playtime.

    This was a player request from some of the users on my server, so I decided to make it!

    Features:
    • Instant updating of player's last seen times​
    • Down to the minute reports
    • Get the first login time of any player on the server, including yourself.
    Downloads


    Examples:

    Command input: /seen thepenguinstrike
    Output:
    [​IMG]

    Command input: /seen greener13
    Output:
    [​IMG]

    Command input: /seen notch
    Output:
    [​IMG]
    :(

    Command input: /playtime
    Output:
    [​IMG]

    Contributors:

    Plugin Testing:
    Vector​
    Wrkz​
    Changelog:

    Version 1.1
    • Now displays a FIRST LOGIN time for the player on /seen.
    • Added the command /playtime, which tells you how long ago you first connected to the server.
    Version 1.0
    • Did an entire revamp of the way time works in Seen. NOTE: YOU WILL NEED TO DELETE YOUR CONFIG FILE IN Plugins/Seen/Config.yml FOR THIS TO WORK. IF YOU DON'T, PLAYERS WILL GET SERVER ERRORS WHEN ATTEMPTING A /SEEN ON A PERSON THAT IS IN AN OLD CONFIG FILE.
    • Server now tells you how long ago they were on, which can be anything from Minutes to Days.
    • Optimized a lot of the code and debugged.
    • Pushed to a 1.0 release. (Don't really know why I didn't do that before)
    Version 0.2
    • Fixed various issues with the clock and the way it gets the time. I'm still not 100% if the method I'm using will work on every server which could lead to a complete revision of that soon.
    • Added an online statement, so that if a player is online it wont tell the person the last time they logged out, but rather say "[USERNAME] is online now! Say hey!
    • Fixed the plugin to work with chat-formatting plugins. It now only gets the true user name, not the display name.
    Version 0.1
    • First Release!
     
    kahlilnc likes this.
  2. Offline

    HawkIHeo

    Awesome! I'm definitely going to use this in my server. Good work! I'll be sure to update you on any issues I may have, which I don't think I will. :) Again, cool!
     
  3. Offline

    timmie124

    awesome plugin extremely useful didn't find any problems with it, helps us keep track on players that left our server
     
  4. Offline

    Gravity

    Awesome, thanks!
    I'm forseeing some issues between the way windows processes the java clock and the way linux does. Seeing as my server is run off linux, I have fixed it to work there. I might have to make both a windows and a linux build in the future, however you should only see glitches in the hour/minute and the AM/PM. If you do see any, make sure you let me know how your server is run and whats wrong :p

    Thanks! Glad you enjoy it.
     
  5. Offline

    Archelaus

    Moved to releases
     
  6. Offline

    Gravity

    Major changes with the new release, v1.0
    View the changelog for more info, but if you update make sure to delete the config file located at Plugins/Seen/Config.yml

    If you dont, you will get an internal server error when you try to /seen any player that has not logged in since the update. This is a result of a bug fix where the clock would display horribly wrong minutes and sometimes the wrong AM/PM.

    If your downloading the plugin for the first time, dont concern yourself, the plugin will work flawlessly for you.

    Thanks!
     
  7. Offline

    Thequickthinkin

    Could you possibly add a feature that says how many hours they have played?
    EG.
    /seen vvmattozzvv
    vvmattozzvv was last seen 21 minutes ago. total hours played: 4 hours.
     
  8. Offline

    Gravity

    Sure thing.
    I'll get working on that in a bit.
     
  9. Offline

    Thequickthinkin

    Thank you, can't wait my server functions on a longer you play the more features you get kinda basis, good to get an accurate reading!
     
  10. Offline

    Gravity

    Added in the new version, v1.1!
    See the changelog and the updated photos for more info.
    Thanks for the suggestion :)
     
  11. Offline

    Smidds

    This is kind of like another plugin made by @NuclearW ...
    Still a cool concept :D
     
  12. Offline

    Gravity

    I saw that the other day before I posted this, actually - I wanted to make sure there was nothing out there too close to it.

    As I clicked on that again I noticed it was scarily similar, even the same /seen command.
    I guess that kind of sucks, and his source is obviously from someone who is very good with modularizing plugins and stuff, but oh well. :3
    Someone asked me to make this, and I thought it would be cool to have something like in an IRC channel where you could do .seen <user> and get the info about them, just quick simple and easy.

    Anyway, it was fun making it and learning a lot more about plugins in the process, so I'm alright with that :)
    I've got some new plugins, both for fun and mechanics, coming soon anyway, since I enjoyed making this one so much.
     
  13. Offline

    Smidds

    @h31ix Glad I brought that to attention ;)
    [diamond]'s to you for the fantastic work you've done! Keep it up!
     
  14. Offline

    NuclearW

    It's actually like a combination of two of them!

    That said it is interesting to see others tackle the same issues I have. Might I ask how your plugin stores its data?
     
  15. Offline

    Gravity

    Probably the most primitive way imaginable.
    It grabs the system time of the last login and stores it under the name of the player in a yml file.
    On first login, it also stores that persons time under their name with a + at the end.
     
  16. Offline

    Thequickthinkin

    Does this record how long the have been playing, or just when there first login was?
     
  17. Offline

    Gravity

    It records your first login time to a file, then when you do /seen it gets that time and the current time and tells you how long they have been playing.
    If you require, I can also store the time they have been playing to a file.
     
  18. Offline

    Thequickthinkin

    I'd like it to record how many hours they have been playing. (So you get promoted after 5 irl hours of playing)
    does it do this?
     
  19. Offline

    Gravity

    Not currently, you would have to physically go check with /seen to find how long ago they logged in, but again, I can write their playtime to a file each time they logout or something if you like.
     
  20. Offline

    Thequickthinkin

    If you could that would be good, then it would give a total playtime?
     
  21. Offline

    Gravity

    Yes, it will give you the time since they first logged into your server.
     
  22. Offline

    Thequickthinkin

    Just to be clear :p
    It will record from when they first login to log out, then when they login again it will carry the time over?
     
  23. Offline

    Gravity

    What it does right now is tell you the time its been since they first logged into the server, even if they have been offline it just tells you the difference in time since the first time they ever joined your server to the time you check. If your looking for something that tracks their online time, thats mostly out of the scope of this plugin and I'm not really interested in adding something like that, you would be better off searching for a plugin that does just that - I'm sure there is more than one out there.
     
  24. Offline

    THG3

    Is there a permission node for this?
     
  25. Offline

    Gravity

    No, my idea was that it would be like IRC, everyone can use it. But it probably would not hurt to add optional permission nodes for the commands if you want them.
     
    THG3 likes this.
  26. Offline

    THG3

    I guess it's not super important. Great addon, ty :)
     
    h31ix likes this.
  27. Offline

    2momo123

    Suggestion: It would be awesome if when we do /seen it also showed the player's average online time
     
  28. Offline

    Gravity

    This plugin IS 1.1-R5 COMPATIBLE!
    The build has been submitted to BukkitDev and will hopefully be available for download very soon.
     
  29. Hello! I downloaded 1.2 version and it did not create config. Is it normal? (no players online yet)

    EDIT:
    Logged in (im admin and hoster) i type /seen semirotta (my own name) it does nothing, then i try /playtime <- it does nothing either. :(
    EDIT2:
    why it says "Loading Seen v1.0"? i downloaded 1.2.. (Seen-1.2.jar it says)
    Code:
     
    2012-02-21 08:36:29 [INFO] [Seen] Loading Seen v1.0.
    2012-02-21 08:36:30 [SEVERE] Error occurred while enabling Seen v1.0 (Is it up to date?): The embedded resource 'config.yml' cannot be found in plugins\Seen-1.2.jar
    java.lang.IllegalArgumentException: The embedded resource 'config.yml' cannot be found in plugins\Seen-1.2.jar
    at org.bukkit.plugin.java.JavaPlugin.saveResource(JavaPlugin.java:162)
    at org.bukkit.plugin.java.JavaPlugin.saveDefaultConfig(JavaPlugin.java:151)
    at net.h31ix.assistant.Assistant.onEnable(Assistant.java:43)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:230)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:1057)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:380)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:199)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:182)
    at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:357)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:344)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:175)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
     
  30. Offline

    Gravity

    Just pushed a fix for this to BukkitDev. It will be online soon in Seen v1.3
     

Share This Page