Spigot AuditTrail 5.1

The best file and mysql event logger for Minecraft PERIOD.

  1. Tbakonyi updated AuditTrail with a new update entry:

    Added support for AuditTrail-Web 1.4 + Fixes

    Read the rest of this update entry...
     
  2. Tbakonyi updated AuditTrail with a new update entry:

    New listeners + lots of fixes

    Read the rest of this update entry...
     
  3. Any chance of an api to log custom events?
     
  4. The efficiency of the plugin is based on a fixed structure. I could implement a limited structure like:

    Time, event name, player, player UUID, gameMode, isOP, event data, world, x, y, z.

    The API would supply the event name, event data and player information. Is this enough?
     
  5. No I want to push data to audit trail so in my plugin I can do something something like
    Code (Java):

    AuditAPI.logCustomEvent(eventname, etc etc);
     
    Then audit trail will have a customevent table to store all the custom events
     
  6. I think we are saying the same thing. I just need to have some defined structure to create the database tables, queries, etc.

    The API can provide an interface to log an event but it will require a few fixed pieces of information which you will need to supply. I.e. Event name, event data, player.
     
  7. Hello Tbakonyi,

    This plugin is amazing and it's existence saved me a lot of time as I didn't have to write something myself. I just started using AuditTrail a few days ago and I noticed some errors in my server log file this morning so I thought I would let you know. It appears to be a Java NullPointerException error:

    2016-04-17 02:04:43 [ERROR] Could not pass event InventoryClickEvent to AuditTrail v3.2
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[spigot-1.9.2.jar:git-Spigot-1480adb-6247aa0]
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot-1.9.2.jar:git-Spigot-1480adb-6247aa0]
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot-1.9.2.jar:git-Spigot-1480adb-6247aa0]
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot-1.9.2.jar:git-Spigot-1480adb-6247aa0]
    at net.minecraft.server.v1_9_R1.PlayerConnection.a(PlayerConnection.java:1852) [spigot-1.9.2.jar:git-Spigot-1480adb-6247aa0]
    at net.minecraft.server.v1_9_R1.PacketPlayInWindowClick.a(SourceFile:33) [spigot-1.9.2.jar:git-Spigot-1480adb-6247aa0]
    at net.minecraft.server.v1_9_R1.PacketPlayInWindowClick.a(SourceFile:10) [spigot-1.9.2.jar:git-Spigot-1480adb-6247aa0]
    at net.minecraft.server.v1_9_R1.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-1.9.2.jar:git-Spigot-1480adb-6247aa0]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_77]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_77]
    at net.minecraft.server.v1_9_R1.SystemUtils.a(SourceFile:45) [spigot-1.9.2.jar:git-Spigot-1480adb-6247aa0]
    at net.minecraft.server.v1_9_R1.MinecraftServer.D(MinecraftServer.java:721) [spigot-1.9.2.jar:git-Spigot-1480adb-6247aa0]
    at net.minecraft.server.v1_9_R1.DedicatedServer.D(DedicatedServer.java:400) [spigot-1.9.2.jar:git-Spigot-1480adb-6247aa0]
    at net.minecraft.server.v1_9_R1.MinecraftServer.C(MinecraftServer.java:660) [spigot-1.9.2.jar:git-Spigot-1480adb-6247aa0]
    at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java:559) [spigot-1.9.2.jar:git-Spigot-1480adb-6247aa0]
    at java.lang.Thread.run(Thread.java:745) [?:1.8.0_77]
    Caused by: java.lang.NullPointerException
    at com.tbakonyi.AuditTrail.helpers.ItemHelpers.getItemName(ItemHelpers.java:294) ~[?:?]
    at com.tbakonyi.AuditTrail.listeners.ContainerListener.onInventoryClick(ContainerListener.java:129) ~[?:?]
    at sun.reflect.GeneratedMethodAccessor61.invoke(Unknown Source) ~[?:?]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_77]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_77]
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot-1.9.2.jar:git-Spigot-1480adb-6247aa0]
    ... 15 more
     
  8. Could you describe what you were trying to do or which item you were putting in / taking out from the container? Any information will help me further troubleshoot the problem.

    EDIT: The null pointer exception was found and fixed. Please try version 3.3. Thank you for reporting this.
     
    #48 Tbakonyi, Apr 17, 2016
    Last edited: Apr 18, 2016
  9. Tbakonyi updated AuditTrail with a new update entry:

    Multi-Server support + fixed container listener null pointer exception

    Read the rest of this update entry...
     
  10. I just tried out 3.3 and I'm no longer seeing the error. Thank you!
     
  11. Tbakonyi updated AuditTrail with a new update entry:

    New features including API to log custom events

    Read the rest of this update entry...
     
  12. I am maybe found problem? This error spam my console
    Code (Text):
    [13:44:45] [Server thread/ERROR]: Could not pass event PlayerFishEvent to AuditTrail v3.4
    org.bukkit.event.EventException
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[spigot.jar:git-Spigot-e6f93f4-ed60c01]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot.jar:git-Spigot-e6f93f4-ed60c01]
        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-e6f93f4-ed60c01]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-e6f93f4-ed60c01]
        at net.minecraft.server.v1_9_R1.EntityFishingHook.m(EntityFishingHook.java:294) [spigot.jar:git-Spigot-e6f93f4-ed60c01]
        at net.minecraft.server.v1_9_R1.World.entityJoinedWorld(World.java:1612) [spigot.jar:git-Spigot-e6f93f4-ed60c01]
        at net.minecraft.server.v1_9_R1.World.g(World.java:1587) [spigot.jar:git-Spigot-e6f93f4-ed60c01]
        at net.minecraft.server.v1_9_R1.World.tickEntities(World.java:1421) [spigot.jar:git-Spigot-e6f93f4-ed60c01]
        at net.minecraft.server.v1_9_R1.WorldServer.tickEntities(WorldServer.java:630) [spigot.jar:git-Spigot-e6f93f4-ed60c01]
        at net.minecraft.server.v1_9_R1.MinecraftServer.D(MinecraftServer.java:792) [spigot.jar:git-Spigot-e6f93f4-ed60c01]
        at net.minecraft.server.v1_9_R1.DedicatedServer.D(DedicatedServer.java:400) [spigot.jar:git-Spigot-e6f93f4-ed60c01]
        at net.minecraft.server.v1_9_R1.MinecraftServer.C(MinecraftServer.java:660) [spigot.jar:git-Spigot-e6f93f4-ed60c01]
        at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java:559) [spigot.jar:git-Spigot-e6f93f4-ed60c01]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_66]
    Caused by: java.lang.NullPointerException
        at com.tbakonyi.AuditTrail.listeners.FishListener.onFish(FishListener.java:54) ~[?:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_66]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_66]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_66]
        at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_66]
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot.jar:git-Spigot-e6f93f4-ed60c01]
        ... 13 more
     
  13. Could you please send me the AuditTrail plugin log file when the error occurred? It will give me more details on the situation that caused the problem.
     
  14. Code (Text):
    [14:19:37] [Server thread/INFO]: [AuditTrail] Loading AuditTrail v3.4
     
    Code (Text):
    [14:19:44] [Server thread/INFO]: [AuditTrail] Enabling AuditTrail v3.4
    [14:19:44] [Server thread/INFO]: [0;32;1m[AuditTrail] Your version is up to date[m
    Code (Text):
    [14:19:51] [Server thread/INFO]: [0;33;1m+> [RuntimeCompiler] [0;37;1mLoaded  AuditTrail-3.4.jar [m
    Code (Text):
    14:23:49] [Server thread/ERROR]: Could not pass event PlayerFishEvent to AuditTrail v3.4
    org.bukkit.event.EventException
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[spigot.jar:git-Spigot-e6f93f4-ed60c01]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot.jar:git-Spigot-e6f93f4-ed60c01]
        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-e6f93f4-ed60c01]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-e6f93f4-ed60c01]
        at net.minecraft.server.v1_9_R1.EntityFishingHook.m(EntityFishingHook.java:294) [spigot.jar:git-Spigot-e6f93f4-ed60c01]
        at net.minecraft.server.v1_9_R1.World.entityJoinedWorld(World.java:1612) [spigot.jar:git-Spigot-e6f93f4-ed60c01]
        at net.minecraft.server.v1_9_R1.World.g(World.java:1587) [spigot.jar:git-Spigot-e6f93f4-ed60c01]
        at net.minecraft.server.v1_9_R1.World.tickEntities(World.java:1421) [spigot.jar:git-Spigot-e6f93f4-ed60c01]
        at net.minecraft.server.v1_9_R1.WorldServer.tickEntities(WorldServer.java:630) [spigot.jar:git-Spigot-e6f93f4-ed60c01]
        at net.minecraft.server.v1_9_R1.MinecraftServer.D(MinecraftServer.java:792) [spigot.jar:git-Spigot-e6f93f4-ed60c01]
        at net.minecraft.server.v1_9_R1.DedicatedServer.D(DedicatedServer.java:400) [spigot.jar:git-Spigot-e6f93f4-ed60c01]
        at net.minecraft.server.v1_9_R1.MinecraftServer.C(MinecraftServer.java:660) [spigot.jar:git-Spigot-e6f93f4-ed60c01]
        at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java:559) [spigot.jar:git-Spigot-e6f93f4-ed60c01]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_66]
    Caused by: java.lang.NullPointerException
        at com.tbakonyi.AuditTrail.listeners.FishListener.onFish(FishListener.java:54) ~[?:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_66]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_66]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_66]
        at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_66]
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot.jar:git-Spigot-e6f93f4-ed60c01]
        ... 13 more
    This is all from AuditTrail log.
     
  15. In the \plugins\AuditTrail folder, you will have a file called AuditTrail_2016-XX-XX-XX-XX-XX.log. I would like to have a look at the contents of this. It will contain all the configuration parameters for the plugin which you have setup.

    EDIT: The line of code which it refers to is getting the IP address of the player. Does it happen with other listeners as well?

    Thanks.
     
    #55 Tbakonyi, May 6, 2016
    Last edited: May 6, 2016
  16. I answer you to PM.
     
  17. Tbakonyi updated AuditTrail with a new update entry:

    Fixes + New Listeners

    Read the rest of this update entry...
     
  18. Please update on 1.9.4 Minecraft version.
     
  19. For some reason, 3.51 says it's working properly but player_logs are no longer updating.

    [2016-05-11 17:03:16,407] INFO [Server thread] [MainConfig.java : 1069] Configuration loaded successfully
    [2016-05-11 17:03:16,423] INFO [Server thread] [AuditTrail.java : 344] Player log max file size set to: 10MB
    [2016-05-11 17:03:16,424] INFO [Server thread] [AuditTrail.java : 345] Player log rollover set to: month
    <snip>
    [2016-05-11 17:03:16,803] INFO [Server thread] [AuditTrail.java : 1230] Your version of AuditTrail is up to date