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.
Found <Edit by Moderator: Redacted not allowed paid resource url> on Spigot. Doesn't have the /playtime top command, but does everything else.
@Chessnutter And where do you see that it uses statistics then? And why do you need it to have its own timer?
My player's stats are frozen for some reason. That plugin doesn't work outright, but in other plugins /playtime gets frozen too
@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?
@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.
@Chessnutter It saves the join time, when the player leaves the difference is calculated and stored together with what was already saved.
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.
@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.
works now @timtower ! Thanks! Can you please make it so their time doesn't reset on log off/server restart ect?
@Chessnutter It shouldn't reset, plugin even saves the time when it shuts down, and when a player leaves.
Oops, I am an idiot, it doesn't reset. Players are loving it so far, can't wait for the playtime top!
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
@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?