Playtime

Discussion in 'Plugin Requests' started by Chessnutter, Aug 22, 2017.

Thread Status:
Not open for further replies.
  1. Offline

    Chessnutter

    Minecraft version: Spigot 1.12

    Suggested name: Playtime+

    What I want:
    A playtime plugin that HAS ITS OWN TIMER - it isn't based off the player's stats.
    Players go /playtime to see the time played on the server
    Players go /playtime [username] to see someone elses
    Players go /playtime top to see the top 10 playtimes of the server

    Ideas for commands:
    /playtime
    /playtime [username]
    /playtime top

    Ideas for permissions: No perms needed

    When I'd like it by: ASAP.
     
  2. Found <Edit by Moderator: Redacted not allowed paid resource url> on Spigot.

    Doesn't have the /playtime top command, but does everything else.
     
    Last edited by a moderator: Feb 9, 2021
  3. Offline

    Chessnutter

    It needs to have its own timer, not use the statistics - anyway the plugin doesn't work
     
  4. Online

    timtower Administrator Administrator Moderator

    @Chessnutter And where do you see that it uses statistics then? And why do you need it to have its own timer?
     
  5. Offline

    Chessnutter

    My player's stats are frozen for some reason. That plugin doesn't work outright, but in other plugins /playtime gets frozen too
     
  6. Offline

    morganjoyce

    Does it work? Are we required to do it as well?
     
  7. Offline

    Chessnutter

    What? Morg please be clear. The plugin linked about does not work on my server
     
  8. Online

    timtower Administrator Administrator Moderator

    @Chessnutter 1. Please use the "Tahg User" or Reply button when talking to somebody, then they know that you talked to them.
    2. How accurate do you need it to be?
     
  9. Offline

    Chessnutter

    Oke @timtower will do. Down to the minute would be good please.
     
  10. Online

    timtower Administrator Administrator Moderator

    @Chessnutter TimeTrackLikeMe, link is in my signature.
    Has no top yet though. Will be adding that later.
    Doesn't like reloads, players that are online after the reload won't be tracked and the plugin will throw errrors.
    Everything is saved when the plugin stops, nothing in between.
     
  11. Offline

    Chessnutter

    So does it count each minute of player's time? @timtower
     
    Last edited: Aug 24, 2017
  12. Online

    timtower Administrator Administrator Moderator

    @Chessnutter It saves the join time, when the player leaves the difference is calculated and stored together with what was already saved.
     
  13. Offline

    Chessnutter

    Can you please make it so it automatically updates? Every min?
     
  14. Online

    timtower Administrator Administrator Moderator

    @Chessnutter And why do you want that? Commands already read the join time and do some math on it.
     
  15. Offline

    Chessnutter

    well, if a player does /playtime and it sais 6m, 2 min later and they do it I want it to show 8m

    @timtower

    The placeholders dont work Y.Y

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Aug 24, 2017
  16. Online

    timtower Administrator Administrator Moderator

    @Chessnutter Time is calculated already.
    And please post your config.
     
  17. Offline

    Chessnutter

    Default Conf
     
  18. Online

    timtower Administrator Administrator Moderator

    @Chessnutter Which placeholders are you talking about, hours or minutes?
    Change %minutes% into %minute% in the config.
    Or delete the config and redownload the plugin.
     
  19. Offline

    Chessnutter

    works now @timtower ! Thanks! Can you please make it so their time doesn't reset on log off/server restart ect?
     
  20. Online

    timtower Administrator Administrator Moderator

    @Chessnutter It shouldn't reset, plugin even saves the time when it shuts down, and when a player leaves.
     
  21. Offline

    Chessnutter

    Oops, I am an idiot, it doesn't reset. Players are loving it so far, can't wait for the playtime top!
     
  22. Online

    timtower Administrator Administrator Moderator

    @Chessnutter Add the top command, untested though ( don't have data to test with )
     
  23. Offline

    Chessnutter

    Gets this error:
    [22:53:23 ERROR]: null org.bukkit.command.CommandException: Unhandled exception executing command 'playtime' in plugin TimeTrackLikeMe v0.0.1 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot-1.12.1.jar:git-Spigot-65e8124-8bf06d6] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot-1.12.1.jar:git-Spigot-65e8124-8bf06d6] at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:647) ~[spigot-1.12.1.jar:git-Spigot-65e8124-8bf06d6] at net.minecraft.server.v1_12_R1.PlayerConnection.handleCommand(PlayerConnection.java:1386) [spigot-1.12.1.jar:git-Spigot-65e8124-8bf06d6] at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1221) [spigot-1.12.1.jar:git-Spigot-65e8124-8bf06d6] at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot-1.12.1.jar:git-Spigot-65e8124-8bf06d6] at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot-1.12.1.jar:git-Spigot-65e8124-8bf06d6] at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-1.12.1.jar:git-Spigot-65e8124-8bf06d6] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_112] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_112] at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) [spigot-1.12.1.jar:git-Spigot-65e8124-8bf06d6] at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:748) [spigot-1.12.1.jar:git-Spigot-65e8124-8bf06d6] at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406) [spigot-1.12.1.jar:git-Spigot-65e8124-8bf06d6] at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679) [spigot-1.12.1.jar:git-Spigot-65e8124-8bf06d6] at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577) [spigot-1.12.1.jar:git-Spigot-65e8124-8bf06d6] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_112] Caused by: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long at nl.timdebrouwer.timetracklikeme.TimeTrackLikeMe.getPlayTime(TimeTrackLikeMe.java:172) ~[?:?] at nl.timdebrouwer.timetracklikeme.TimeTrackLikeMe.onCommand(TimeTrackLikeMe.java:62) ~[?:?] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot-1.12.1.jar:git-Spigot-65e8124-8bf06d6] ... 15 more

    @timtower
     
  24. Online

    timtower Administrator Administrator Moderator

    @Chessnutter I have no idea why that is happening, don't have that type anywhere in the project.
    Could you post your config so that I have something to test with?
     
Thread Status:
Not open for further replies.

Share This Page