Spigot StaleAPI 1.1.1-Alpha

Improve Performance - Remove stale data for users that haven't been online in a while!

  1. Not alot but litle bit helps, ty!
     
  2. You're welcome :)

    Hopefully Plugin Authors will get involved and implement this. Hopefully one day we can have clean and fast servers that don't slow down with time :p
     
  3. Exception when running v1.1.1-Alpha on spigot 1.8.8 (06ad352-4a7472d)
    Code (Text):
    [18:04:01] [Server thread/INFO]: [StaleAPI] Checking for expired players.
    [18:04:01] [Server thread/INFO]: [StaleAPI] 1 potential players found for expiry.
    [18:04:01] [Server thread/WARN]: [StaleAPI] Task #4 for StaleAPI v1.1.1-Alpha generated an exception
    java.lang.IllegalArgumentException: Name cannot be null
        at org.apache.commons.lang.Validate.notNull(Validate.java:192) ~[customgc.jar:git-Spigot-06ad352-4a7472d]
        at org.bukkit.craftbukkit.v1_8_R3.CraftServer.getPlayer(CraftServer.java:403) ~[customgc.jar:git-Spigot-06ad352-4a7472d]
        at net.milkbowl.vault.permission.plugins.Permission_SuperPerms.playerHas(Permission_SuperPerms.java:43) ~[?:?]
        at net.milkbowl.vault.permission.Permission.has(Permission.java:63) ~[?:?]
        at net.milkbowl.vault.permission.Permission.playerHas(Permission.java:132) ~[?:?]
        at com.infermc.stale.StaleAPI.expirePlayers(StaleAPI.java:131) ~[?:?]
        at com.infermc.stale.StaleAPI.checkPlayers(StaleAPI.java:94) ~[?:?]
        at com.infermc.stale.StaleAPI.access$000(StaleAPI.java:19) ~[?:?]
        at com.infermc.stale.StaleAPI$1.run(StaleAPI.java:59) ~[?:?]
        at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71) ~[customgc.jar:git-Spigot-06ad352-4a7472d]
        at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350) [customgc.jar:git-Spigot-06ad352-4a7472d]
        at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:723) [customgc.jar:git-Spigot-06ad352-4a7472d]
        at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [customgc.jar:git-Spigot-06ad352-4a7472d]
        at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [customgc.jar:git-Spigot-06ad352-4a7472d]
        at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [customgc.jar:git-Spigot-06ad352-4a7472d]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_31]
    StaleAPI had removed all old player files earlier, this was thrown when no expired files were found.