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

    Jimsys

    well getting around an AFK is as easy as laying something on a button and as complicated as a macro to run ever x amount of time. another idea would be a way to reset time completely and it can be useful for more then the purpose I have in mind but I don't have high hopes
    thanks for t he quick response any way.
     
  3. Offline

    radarwolf

    Where can i download this nice plugin? When i try the link it says something with whitelist.....
     
  4. Offline

    NuclearW

    Some major changes were made on shatteredlands, my files should be available again for you to get at them now, if not in no less than an hour. Sorry for the inconvenience.
     
  5. Offline

    radarwolf

    Hey, thank you!
     
  6. Offline

    Yagman5000

    Is there any way that you can make it so you can see the total playtime of players that are offline? Either in-game or in a config file within the plugins folder? Thanks!
     
  7. Offline

    Austin

    Using Bukkit R4
    Herochat
    bPermissions
    Spacebukkit ~Alpha

    following error:
    Code:
    20:52:02 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'playtime' in plugin Playtime v0.5
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:402)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:784)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:744)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:732)
            at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:33)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100)
            at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
            at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:537)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    Caused by: java.lang.NullPointerException
            at sl.nuclearw.playtime.playtime.getElapsedTimeString(playtime.java:293)
            at sl.nuclearw.playtime.playtime.onCommand(playtime.java:183)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
            ... 12 more
    
     
  8. Offline

    NuclearW

    What did you type in for the command and where (console or in-game)?
     
  9. Offline

    Austin

    In game, /playtime
    Also tried /playtime
    and /playtime warhawker
    Also, /playtime uxbal (another player)

    I recently ran a reload, but the problem persists.​
     
  10. Offline

    NuclearW

    I'll take a look then, although a partial re-write and upgrade for all my plugins is coming with the R5 update so it might take a short while.

    On another note, I remember uxbal, played on my server for quite a time.
     
  11. Offline

    Austin

    Really? She has been with us for a few months. An exceptional mod, we promoted her to Admin. What was your server called?
     
  12. Offline

    NuclearW

    Shatteredlands. Feel free to send me the IP in a pm or something, I'd love to drop by and say hi sometime.
     
  13. Offline

    Austin

    I... Can't find out how to pm you, well, its always in my Signature for my first post of the page. She was online only a few minutes ago haha.
     
  14. Offline

    honkeyponk

    I have a suggestion of maybe adding at one point a /playtimetop or some command that will tell defaults or members who the top player who has played the most?
     
  15. Offline

    JOPHESTUS

    Any possibility of webstats?
     
  16. Offline

    NuclearW

    Updated for new event system
     
  17. Offline

    Claryn

    Does not work in 1.2.3.. Update coming?
     
  18. Offline

    NuclearW

    Works for me?
     
  19. Offline

    Claryn

    Code:
    2012-03-04 12:10:09 [SEVERE] Could not load 'plugins\playtime.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: org/bukkit/event/server/ServerListener
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:148)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:287)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:211)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:207)
    at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:183)
    at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:53)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:156)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
    Caused by: java.lang.NoClassDefFoundError: org/bukkit/event/server/ServerListener
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(Unknown Source)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$000(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sl.nuclearw.playtime.playtime.<init>(playtime.java:35)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:144)
    ... 8 more
    Caused by: java.lang.ClassNotFoundException: org.bukkit.event.server.ServerListener
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 27 more
    Not for me...
     
  20. Offline

    NuclearW

    Did you update?
     
  21. Offline

    Claryn

    How stupid do you think I am? Of course I did.
     
  22. Offline

    NuclearW

    I don't think you're stupid but your stacktrace indicates to me you are not in fact on the latest version.

    Please update from the link in the post.
     
  23. Offline

    Claryn

    Code:
    2012-03-04 14:40:14 [INFO] [Playtime] Enabling Playtime v0.7
    2012-03-04 14:40:14 [SEVERE] java.io.UTFDataFormatException
    2012-03-04 14:40:14 [SEVERE]at java.io.ObjectInputStream$BlockDataInputStream.readUTFSpan(Unknown Source)
    2012-03-04 14:40:14 [SEVERE]at java.io.ObjectInputStream$BlockDataInputStream.readUTFBody(Unknown Source)
    2012-03-04 14:40:14 [SEVERE]at java.io.ObjectInputStream$BlockDataInputStream.readUTF(Unknown Source)
    2012-03-04 14:40:14 [SEVERE]at java.io.ObjectInputStream.readUTF(Unknown Source)
    2012-03-04 14:40:14 [SEVERE]at java.io.ObjectStreamClass.readNonProxy(Unknown Source)
    2012-03-04 14:40:14 [SEVERE]at java.io.ObjectInputStream.readClassDescriptor(Unknown Source)
    2012-03-04 14:40:14 [SEVERE]at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
    2012-03-04 14:40:14 [SEVERE]at java.io.ObjectInputStream.readClassDesc(Unknown Source)
    2012-03-04 14:40:14 [SEVERE]at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
    2012-03-04 14:40:14 [SEVERE]at java.io.ObjectInputStream.readObject0(Unknown Source)
    2012-03-04 14:40:14 [SEVERE]at java.io.ObjectInputStream.readObject(Unknown Source)
    2012-03-04 14:40:14 [SEVERE]at com.nuclearw.playtime.Playtime.onEnable(Playtime.java:121)
    2012-03-04 14:40:14 [SEVERE]at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215)
    2012-03-04 14:40:14 [SEVERE]at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:336)
    2012-03-04 14:40:14 [SEVERE]at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:363)
    2012-03-04 14:40:14 [SEVERE]at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:250)
    2012-03-04 14:40:14 [SEVERE]at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:232)
    2012-03-04 14:40:14 [SEVERE]at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:374)
    2012-03-04 14:40:14 [SEVERE]at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:361)
    2012-03-04 14:40:14 [SEVERE]at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:187)
    2012-03-04 14:40:14 [SEVERE]at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
    2012-03-04 14:40:14 [SEVERE]at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
    2012-03-04 14:40:14 [INFO] [Playtime] Playtime version 0.7 loaded.
     
  24. Offline

    NuclearW

    Now that error... I've never seen... Hmm
     
  25. Offline

    Nebetsu

    Hey is there any way I can open the "total" file so I can see everyone's play time manually? Or look at a top ten list?
     
  26. Offline

    Ametz

    Is it possible to see total playtime for all combined ?
    Something like this: (Togheter you have logged XX Hours and XX Seconds)
     
  27. Offline

    notbob1

    Needs a 2.1.3 update.
     
  28. Offline

    NuclearW

    It works on 1.2 last I checked?
     
  29. Offline

    Yagman5000

    Does this work on 1.2.3 now? I used to keep getting spammed with errors in console so I removed. Wondering if its been updated.

    If it has been updated, u shud prolly put [1.2] or [R6] instead of [R4]

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  30. Working fine for me,
    Good job.
     
    NuclearW likes this.
  31. Offline

    19jojo93

    Theres a bug occurring when I use this on 1.2 (Beta Bukkit build)
    Every so often the plugin adds a few hours onto random players for no apparent reason.

    Can't find the cause, seems its doing it automatically. so should be easy to reproduce.
     

Share This Page