Inactive [INFO] Playtime v0.7 - See how long you and others have been on [1.1-R4]

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

  1. Offline

    NuclearW

    Playtime - See how long you and others have been on.
    Version: v0.7

    Playtime simply shows how long you or another player have been online.
    Playtime also logs total time played, and can show this as well.

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

    Playtime has been translated into German, Danish, Swedish, Dutch, Polish, Spanish, and French:
    Playtime supports and is tested with PermissionsEx. Playtime also supports default Bukkit Permissions! (also the first plugin to do so! Not that that matters much.) And will support any permissions plugin that does the same. Playtime also tentatively supports Permissions 2.7.4 and 3.1.x, but is not tested against these.

    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.

    Features:
    • See how long a player has been online
    • See how long you have been online
    • See how long a player has been online total
    • Supports PermissionsEx, Permission 2/3, Bukkit Permissions, and defaults to OP
    Commands:

    • /playtime (player) - Provide no player to check yourself, provide one to check that player.
    • /totalplaytime (playtime) - Provide no player to check yourself, provide one to check that player.
    Permissions:
    Nodes (open)

    • playtime.* - Implies all others
    • playtime.self - Needed to check one's own playtime
    • playtime.other - Needed to check another player's playtime
    • playtime.total.* - Implies .total.self and .total.other
    • playtime.total.self - Needed to check one's own total playtime
    • playtime.total.other - Needed to check another player's total playtime


    Download Playtime

    Changelog:
    • Version 0.7
      • Updated for new event system
    • Version 0.6
      • Never released
    • Version 0.5
      • Fixed totalplayertime not working all the time.
    • Version 0.4
      • Update for CB1060 and NPE fix.
    • Version 0.3
      • Added /totalplaytime [ Thanks for the bugtesting help @dbizzzle ]
    • Version 0.2
      • Added support for Bukkit Permissions! (First of many to do so!)
      • Version 0.2.1
        • A /reload no longer resets play time
    • Version 0.1
      • Initial release.
    Playtime was suggested by @19jojo93
     
  2. Offline

    NuclearW

  3. Offline

    Kohle

    @NuclearW This is just an... A-MAZE-ING plugin. Something so simple, yet... brilliant! LOVE it! LOVE LOVE LOVE!
     
  4. Offline

    NuclearW

    @Johni0702
    @microskies

    Just as soon as I figure out how to SQL from Java, I shall.

    Many thanks to @TGF for translating Playtime into Polish!

    And thank you @Kohle , comments like yours remind me of why I keep working on these things. But don't forget, it was @19jojo93 's idea that brought this to be.
     
  5. Offline

    microskies

    @NuclearW Awesome, :D hopefully it will be about the same time I can use SQL and PHP myself and not have to get someone else to do it -.- :D
     
  6. Offline

    RiiCo94

    I don't use permissions on my Surivial server, can you make it possible to let people who is not OP able to use the commands?
     
  7. Offline

    NuclearW

    Would you like non-ops to also be able to check other players?
     
  8. Offline

    NuclearW

    @RiiCo94
    Do you have a preference?

    Also, Playtime has been translated into Spanish, many thanks to kevdama.
     
  9. Offline

    RiiCo94

    Yeah, i would like to make it able for anyone on my server to use the commands.
     
  10. Offline

    Tyto26

    French here:

    Show Spoiler
    second=seconde
    not-online=<player> n'est pas en ligne
    minute=minute
    minutes=minutes
    hour=heure
    online=Vous avez été en ligne pendant
    day=jour
    online-other=<player> a été en ligne pendant
    hours=heures
    seconds=secondes
    days=jours



    Looks nice for now =)
     
  11. Offline

    NuclearW

    Many thanks, it is in the first post now.
     
  12. Offline

    Tyto26

    Sorry I made mistake. Remove all "é" and "à". It's not supported :/
     
  13. Offline

    Tobytheminer

    Do not works either here.

    The playtime commands won't work
    When i say '/playtime User' its sayes Unknown console command- Type 'help' for help
     
  14. Offline

    NuclearW

    Are there any errors in console?

    Could you check the startup to make sure that it is loading?
     
  15. Offline

    Tobytheminer

    It is Loading,
    Console do not say anything about errors from it
     
  16. Offline

    shadydeath999

    @NuclearW my players totalplaytime keeps resetting for some reason no errors in concole or anything like that
     
  17. Offline

    NuclearW

    Hmm, I'll look around the code when I have the chance, I'm not really sure what would cause this problem other than a fileio error in read/write.

    Does the wipe happen after a crash, by any chance?
     
  18. Offline

    shadydeath999

    no not after crash it happens random
     
  19. Offline

    NuclearW

    Well those are always the worst bugs to work with.

    I'll look into it, please let me know if you get any errors, in the meantime.
     
  20. Offline

    shadydeath999

    found it /totalplaytime sometimes gets the /playtime amount
     
  21. Offline

    Kohle

    @NuclearW How about a command that would display your total play time, and your current session play time?

    So something like:
    /timestats would diaplay:
    You have played (how long person has played) in this session.
    You have played for (how long person has played (total)), in total!

    What do you think? :D
     
  22. Offline

    Flitterkill

    Great mod. Saw some errors when I had people close out before I stopped the server. Errors only for half of them though.

    Code:
    2011-08-14 20:01:28 [INFO] Connection reset
    2011-08-14 20:01:28 [INFO] ShillSan lost connection: disconnect.quitting
    2011-08-14 20:01:28 [SEVERE] Could not pass event PLAYER_QUIT to Playtime
    java.lang.NullPointerException
        at sl.nuclearw.playtime.playtime.onLeave(playtime.java:221)
        at sl.nuclearw.playtime.playtimePlayerListener.onPlayerQuit(playtimePlayerListener.java:19)
        at org.bukkit.plugin.java.JavaPluginLoader$2.execute(JavaPluginLoader.java:251)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
        at net.minecraft.server.ServerConfigurationManager.disconnect(ServerConfigurationManager.java:146)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:608)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:231)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-08-14 20:01:32 [INFO] Connection reset
    2011-08-14 20:01:32 [INFO] Quillarts lost connection: disconnect.quitting
    2011-08-14 20:01:35 [INFO] Connection reset
    2011-08-14 20:01:35 [INFO] brrrishcold lost connection: disconnect.quitting
    2011-08-14 20:01:35 [SEVERE] Could not pass event PLAYER_QUIT to Playtime
    java.lang.NullPointerException
        at sl.nuclearw.playtime.playtime.onLeave(playtime.java:221)
        at sl.nuclearw.playtime.playtimePlayerListener.onPlayerQuit(playtimePlayerListener.java:19)
        at org.bukkit.plugin.java.JavaPluginLoader$2.execute(JavaPluginLoader.java:251)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
        at net.minecraft.server.ServerConfigurationManager.disconnect(ServerConfigurationManager.java:146)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:608)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:231)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-08-14 20:01:36 [INFO] S4ndb0x lost connection: disconnect.quitting
    2011-08-14 20:01:36 [SEVERE] Could not pass event PLAYER_QUIT to Playtime
    java.lang.NullPointerException
        at sl.nuclearw.playtime.playtime.onLeave(playtime.java:221)
        at sl.nuclearw.playtime.playtimePlayerListener.onPlayerQuit(playtimePlayerListener.java:19)
        at org.bukkit.plugin.java.JavaPluginLoader$2.execute(JavaPluginLoader.java:251)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
        at net.minecraft.server.ServerConfigurationManager.disconnect(ServerConfigurationManager.java:146)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:608)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:231)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
     
  23. Offline

    NuclearW

    Many thanks, I'll get right to these once I get my new computer all set up.
     
  24. Offline

    NuclearW

    Version 0.3 is CB1060 compatible.

    Version 0.4 confirmed working on CB1060, also provides fix for NPE pointed out by @Flitterkill
     
  25. Offline

    19jojo93

    Any news on the playtime being reset?

    Will that be fixed?

    Maybe by using flatfile or mysql to store playtime data?

    Havn't used this plugin for a while because playtime and totalplaytime just resets all the time :(
     
  26. Offline

    NuclearW

    I'm really stumped as to why it resets, but once I get home I'll have a version for you to try that should fix the problem.
     
  27. Offline

    yohanstra

    add a total for of playtime for everyone, to see how much cumulative time your server has been played on
     
  28. Offline

    1born2kill

    Code:
    2011-08-22 15:15:54 [SEVERE] ===================================================
    2011-08-22 15:15:54 [SEVERE] =              ERROR REPORT ENDED                 =
    2011-08-22 15:15:54 [SEVERE] ===================================================
    2011-08-22 15:15:59 [INFO] rachelpp tried to use command /playtime
    2011-08-22 15:15:59 [SEVERE] ===================================================
    2011-08-22 15:15:59 [SEVERE] =              ERROR REPORT START                 =
    2011-08-22 15:15:59 [SEVERE] ===================================================
    2011-08-22 15:15:59 [SEVERE] =               TIME RANK ERROR                   =
    2011-08-22 15:15:59 [SEVERE] =         INCLUDE WHEN ASKING FOR HELP            =
    2011-08-22 15:15:59 [SEVERE] ===================================================
    2011-08-22 15:15:59 [SEVERE] Version: 0.1.0b
    2011-08-22 15:15:59 [SEVERE] Permissions: Permissions3
    2011-08-22 15:15:59 [SEVERE] Ranks Loaded: 4
    2011-08-22 15:15:59 [SEVERE] ===================ERROR INFO===================
    2011-08-22 15:15:59 [SEVERE] Msg: Error running command.
    2011-08-22 15:15:59 [SEVERE] CMD: playtime
    2011-08-22 15:15:59 [SEVERE] Label: playtime
    2011-08-22 15:15:59 [SEVERE] Arguments: 0
    2011-08-22 15:15:59 [SEVERE] Args:
    2011-08-22 15:15:59 [SEVERE] Trace: java.lang.NullPointerException
        at com.oberonserver.timerank.timerank.onCommand(timerank.java:452)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:320)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:713)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:677)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:436)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    2011-08-22 15:15:59 [SEVERE] ===================================================
    2011-08-22 15:15:59 [SEVERE] =              ERROR REPORT ENDED                 =
    2011-08-22 15:15:59 [SEVERE] ===================================================
    I think i need help :D
     
  29. Offline

    NuclearW

    That is an error from another plugin. By the looks of it, named timerank.
     
  30. Offline

    1born2kill

    Oh shit wow -.- I thought this was TIME RANK lawl
     
  31. Offline

    DestriX

    I think this is a really great idea :). It's simple and lightweight. Great Job!
     

Share This Page