save time problem #510


  • Defect
  • Replied
Open
Assigned to _ForgeUser8455416
  • _ForgeUser9934212 created this issue Sep 9, 2014

    Ontime 3.13.4
    Craftbukkit 1.6.4 2.0
    YML
    PermissionEX

    Sorry for my English...

    Time play is not save. When reload server, stop, i check with mysql - the same problem. After restart server time play, time afk, week, mounth (all time) is reset to 0 seconds. I check on craftbukkit 1.6.4.R2.0 and craftbukkit 1.7.10 dev The same problem.

    When restart server i have infromation:

    2014-09-08 22:56:20 [SEVERE] Error occurred while disabling OnTime v3.13.4 (Is it up to date?)
    org.bukkit.plugin.IllegalPluginAccessException Plugin attempted to register task while disabled
        at org.bukkit.craftbukkit.v1_6_R3.scheduler.CraftScheduler.validate(CraftScheduler.java:394)
        at org.bukkit.craftbukkit.v1_6_R3.scheduler.CraftScheduler.runTaskTimerAsynchronously(CraftScheduler.java:137)
        at org.bukkit.craftbukkit.v1_6_R3.scheduler.CraftScheduler.runTaskLaterAsynchronously(CraftScheduler.java:112)
        at org.bukkit.craftbukkit.v1_6_R3.scheduler.CraftScheduler.runTaskAsynchronously(CraftScheduler.java:96)
        at me.edge209.OnTime.PlayerEventListener.logoutPlayer(PlayerEventListener.java:107)
        at me.edge209.OnTime.OnTime.onDisable(OnTime.java:213)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:219)
        at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:481)
        at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:400)
        at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:393)
        at org.bukkit.plugin.SimplePluginManager.clearPlugins(SimplePluginManager.java:434)
        at org.bukkit.craftbukkit.v1_6_R3.CraftServer.reload(CraftServer.java:585)
        at org.bukkit.Bukkit.reload(Bukkit.java:277)
        at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:23)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:192)
        at org.bukkit.craftbukkit.v1_6_R3.CraftServer.dispatchCommand(CraftServer.java:528)
        at net.minecraft.server.v1_6_R3.PlayerConnection.handleCommand(PlayerConnection.java:968)
        at net.minecraft.server.v1_6_R3.PlayerConnection.chat(PlayerConnection.java:886)
        at net.minecraft.server.v1_6_R3.PlayerConnection.a(PlayerConnection.java:837)
        at net.minecraft.server.v1_6_R3.Packet3Chat.handle(SourceFile:49)
        at net.minecraft.server.v1_6_R3.NetworkManager.b(NetworkManager.java:296)
        at net.minecraft.server.v1_6_R3.PlayerConnection.e(PlayerConnection.java:116)
        at net.minecraft.server.v1_6_R3.ServerConnection.b(SourceFile:37)
        at net.minecraft.server.v1_6_R3.DedicatedServerConnection.b(SourceFile:30)
        at net.minecraft.server.v1_6_R3.MinecraftServer.t(MinecraftServer.java:592)
        at net.minecraft.server.v1_6_R3.DedicatedServer.t(DedicatedServer.java:227)
        at net.minecraft.server.v1_6_R3.MinecraftServer.s(MinecraftServer.java:488)
        at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:421)
        at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583)

    Also sometimes is interval error when i use the command /ontime [player]. Always was after restart the server and write / ontime player command. (two times i have)

    Console:

    issued server command: /ontime jare
    2014-09-08 22:58:15 [SEVERE] null
    org.bukkit.command.CommandException Unhandled exception executing command 'ontime' in plugin OnTime v3.13.4
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:192)
        at org.bukkit.craftbukkit.v1_6_R3.CraftServer.dispatchCommand(CraftServer.java:528)
        at net.minecraft.server.v1_6_R3.PlayerConnection.handleCommand(PlayerConnection.java:968)
        at net.minecraft.server.v1_6_R3.PlayerConnection.chat(PlayerConnection.java:886)
        at net.minecraft.server.v1_6_R3.PlayerConnection.a(PlayerConnection.java:837)
        at net.minecraft.server.v1_6_R3.Packet3Chat.handle(SourceFile:49)
        at net.minecraft.server.v1_6_R3.NetworkManager.b(NetworkManager.java:296)
        at net.minecraft.server.v1_6_R3.PlayerConnection.e(PlayerConnection.java:116)
        at net.minecraft.server.v1_6_R3.ServerConnection.b(SourceFile:37)
        at net.minecraft.server.v1_6_R3.DedicatedServerConnection.b(SourceFile:30)
        at net.minecraft.server.v1_6_R3.MinecraftServer.t(MinecraftServer.java:592)
        at net.minecraft.server.v1_6_R3.DedicatedServer.t(DedicatedServer.java:227)
        at net.minecraft.server.v1_6_R3.MinecraftServer.s(MinecraftServer.java:488)
        at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:421)
        at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583)
    Caused by: java.lang.NullPointerException
        at me.edge209.OnTime.Commands.ontimeOther(Commands.java:1949)
        at me.edge209.OnTime.Commands.onCommand(Commands.java:1752)
        at me.edge209.OnTime.OnTime.onCommand(OnTime.java:899)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
        ... 15 more

    Not help commands save, not help set autosave 1200.

    On original settings the same problem.

    All files and log:
    http://93257.file4u.pl/download/5353864/ontimeproblem_www.file4u.pl.rar

  • _ForgeUser9934212 added the tags New Defect Sep 9, 2014
  • _ForgeUser8455416 posted a comment Sep 9, 2014

    Hi, Unfortunately there is not much I can tell from the log files you provided other than already known issues.

    In the log file you executed several re-loads of your plugins. There is a known problem (see ticket # 509), which is the same console errors you are reporting on shutdown above, which does result in any player that is OnLine at the time of the shutdown, will NOT have their data saved.

    In the very last login/logout seen in the OnTimeLog.txt, the plugin reports a "0 seconds" playtime on the logout, but this too is a known issue in the reporting. In fact your player was logged out and has saved 16 seconds worth of playtime. I see the 16 seconds in the playerdata.yml file.

    If you had logged in one more time you would have seen the player has the 16 seconds of play time.

    You say above that you checked 'mysql' for the data save, but in your OnTime config.yml, you do not have mysql enabled nor configured. You have it set up to use the "playerdata.yml" flat file for the data storage, which is where I found the 16 seconds of playtime.

    I will have a fix out shortly that addresses the issue of not saving data on server restart/plugin reload for players OnLine, and I have updated the log output to show the new time on logout, not the previous time on logout.

    Regarding your error on the "/ontime <playerName>", the failure indicates that your permissions plugin had not fully or properly loaded. I'd be interested to know if you have seen this multiple times or only once.

  • _ForgeUser8455416 removed a tag New Sep 9, 2014
  • _ForgeUser8455416 added a tag Waiting Sep 9, 2014
  • _ForgeUser16143878 posted a comment Nov 2, 2014

    Confirmed with Spigot-1.7.10 with latest patches

    [14:33:24 INFO]: [OnTime] Disabling OnTime v3.13.4
    [14:33:24 ERROR]: Error occurred while disabling OnTime v3.13.4 (Is it up to date?)
    org.bukkit.plugin.IllegalPluginAccessException: Plugin attempted to register task while disabled
            at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftScheduler.validate(CraftScheduler.java:400) ~[spigot-patched2.jar:git-Spigot-1.7.9-R0.2-205-g6a8d903]
            at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftScheduler.runTaskTimerAsynchronously(CraftScheduler.java:141) ~[spigot-patched2.jar:git-Spigot-1.7.9-R0.2-205-g6a8d903]
            at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftScheduler.runTaskLaterAsynchronously(CraftScheduler.java:115) ~[spigot-patched2.jar:git-Spigot-1.7.9-R0.2-205-g6a8d903]
            at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftScheduler.runTaskAsynchronously(CraftScheduler.java:98) ~[spigot-patched2.jar:git-Spigot-1.7.9-R0.2-205-g6a8d903]
            at me.edge209.OnTime.PlayerEventListener.logoutPlayer(PlayerEventListener.java:107) ~[?:?]
            at me.edge209.OnTime.OnTime.onDisable(OnTime.java:213) ~[?:?]
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:318) ~[spigot-patched2.jar:git-Spigot-1.7.9-R0.2-205-g6a8d903]
            at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:356) [spigot-patched2.jar:git-Spigot-1.7.9-R0.2-205-g6a8d903]
            at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:431) [spigot-patched2.jar:git-Spigot-1.7.9-R0.2-205-g6a8d903]
            at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:424) [spigot-patched2.jar:git-Spigot-1.7.9-R0.2-205-g6a8d903]
            at org.bukkit.craftbukkit.v1_7_R4.CraftServer.disablePlugins(CraftServer.java:412) [spigot-patched2.jar:git-Spigot-1.7.9-R0.2-205-g6a8d903]
            at net.minecraft.server.v1_7_R4.MinecraftServer.stop(MinecraftServer.java:393) [spigot-patched2.jar:git-Spigot-1.7.9-R0.2-205-g6a8d903]
            at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:525) [spigot-patched2.jar:git-Spigot-1.7.9-R0.2-205-g6a8d903]
            at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [spigot-patched2.jar:git-Spigot-1.7.9-R0.2-205-g6a8d903]
    


  • _ForgeUser16143878 removed a tag Waiting Nov 2, 2014
  • _ForgeUser16143878 added a tag Replied Nov 2, 2014

To post a comment, please login or register a new account.