Spigot PlayerLog 2015-01-20

Local replacement API for Bukkit.getOfflinePlayer(String name); Will not ping mojang.

  1. Recolance

    Supporter

    Recolance submitted a new resource:

    PlayerLog - Local replacement API for Bukkit.getOfflinePlayer(String name); Will not ping mojang.

    Read more about this resource...
     
  2. Recolance

    Supporter

  3. I use bungeecord offline server, can i use your plugin without problem ?
     
  4. Recolance

    Supporter

    Yes. Not a problem, as long as UUID is passed to the server correctly(which I'd assume they are since you probably don't have players losing their inventories constantly.) you should be 100% able to use this.
     
  5. Code (Text):

    2015-01-23 09:55:15 [ERROR] Could not load 'plugins/PlayerLog.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: me/recolance/playerlog/PlayerLog : Unsupported major.minor version 52.0
       at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:135) ~[spigot.jar:git-Spigot-e497721-96d09e3]
       at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329) ~[spigot.jar:git-Spigot-e497721-96d09e3]
       at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [spigot.jar:git-Spigot-e497721-96d09e3]
       at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugins(CraftServer.java:290) [spigot.jar:git-Spigot-e497721-96d09e3]
       at net.minecraft.server.v1_8_R1.DedicatedServer.init(DedicatedServer.java:152) [spigot.jar:git-Spigot-e497721-96d09e3]
       at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:494) [spigot.jar:git-Spigot-e497721-96d09e3]
       at java.lang.Thread.run(Thread.java:745) [?:1.7.0_65]
    Caused by: java.lang.UnsupportedClassVersionError: me/recolance/playerlog/PlayerLog : Unsupported major.minor version 52.0
       at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.7.0_65]
       at java.lang.ClassLoader.defineClass(ClassLoader.java:800) ~[?:1.7.0_65]
       at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[?:1.7.0_65]
       at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) ~[?:1.7.0_65]
       at java.net.URLClassLoader.access$100(URLClassLoader.java:71) ~[?:1.7.0_65]
       at java.net.URLClassLoader$1.run(URLClassLoader.java:361) ~[?:1.7.0_65]
       at java.net.URLClassLoader$1.run(URLClassLoader.java:355) ~[?:1.7.0_65]
       at java.security.AccessController.doPrivileged(Native Method) ~[?:1.7.0_65]
       at java.net.URLClassLoader.findClass(URLClassLoader.java:354) ~[?:1.7.0_65]
       at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[spigot.jar:git-Spigot-e497721-96d09e3]
       at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[spigot.jar:git-Spigot-e497721-96d09e3]
       at java.lang.ClassLoader.loadClass(ClassLoader.java:425) ~[?:1.7.0_65]
       at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ~[?:1.7.0_65]
       at java.lang.Class.forName0(Native Method) ~[?:1.7.0_65]
       at java.lang.Class.forName(Class.java:274) ~[?:1.7.0_65]
       at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:64) ~[spigot.jar:git-Spigot-e497721-96d09e3]
       at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[spigot.jar:git-Spigot-e497721-96d09e3]
       ... 6 more
     
    I can't start it, i have a debian wheezy with openjdk7.
     
    #5 belfedia, Jan 23, 2015
    Last edited: Jan 23, 2015
  6. Recolance

    Supporter

    This would be using a version of java that is outdated in comparison to my compiled jar. This was compiled on JDK7_67, I'll push an update tonight and recompile with a lower version of java. Although this error should resolve itself by just updating java on your system.
     
  7. Thanks to your help, i don't want update my java, i'm waiting to next debian stable release :)
     
  8. If you provide a repository, i can compile it with JDK7_65 :)
     
  9. Recolance

    Supporter

  10. Same problem :/

    Code (Text):

    2015-01-28 08:45:27 [ERROR] Could not load 'plugins/PlayerLog.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: me/recolance/playerlog/PlayerLog : Unsupported major.minor version 52.0
       at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:135) ~[spigot.jar:git-Spigot-d0d1d87-15e81cf]
       at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329) ~[spigot.jar:git-Spigot-d0d1d87-15e81cf]
       at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [spigot.jar:git-Spigot-d0d1d87-15e81cf]
       at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugins(CraftServer.java:291) [spigot.jar:git-Spigot-d0d1d87-15e81cf]
       at net.minecraft.server.v1_8_R1.DedicatedServer.init(DedicatedServer.java:152) [spigot.jar:git-Spigot-d0d1d87-15e81cf]
       at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:494) [spigot.jar:git-Spigot-d0d1d87-15e81cf]
       at java.lang.Thread.run(Thread.java:745) [?:1.7.0_65]
    Caused by: java.lang.UnsupportedClassVersionError: me/recolance/playerlog/PlayerLog : Unsupported major.minor version 52.0
       at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.7.0_65]
       at java.lang.ClassLoader.defineClass(ClassLoader.java:800) ~[?:1.7.0_65]
       at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[?:1.7.0_65]
       at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) ~[?:1.7.0_65]
       at java.net.URLClassLoader.access$100(URLClassLoader.java:71) ~[?:1.7.0_65]
       at java.net.URLClassLoader$1.run(URLClassLoader.java:361) ~[?:1.7.0_65]
       at java.net.URLClassLoader$1.run(URLClassLoader.java:355) ~[?:1.7.0_65]
       at java.security.AccessController.doPrivileged(Native Method) ~[?:1.7.0_65]
       at java.net.URLClassLoader.findClass(URLClassLoader.java:354) ~[?:1.7.0_65]
       at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[spigot.jar:git-Spigot-d0d1d87-15e81cf]
       at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[spigot.jar:git-Spigot-d0d1d87-15e81cf]
       at java.lang.ClassLoader.loadClass(ClassLoader.java:425) ~[?:1.7.0_65]
       at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ~[?:1.7.0_65]
       at java.lang.Class.forName0(Native Method) ~[?:1.7.0_65]
       at java.lang.Class.forName(Class.java:274) ~[?:1.7.0_65]
       at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:64) ~[spigot.jar:git-Spigot-d0d1d87-15e81cf]
       at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[spigot.jar:git-Spigot-d0d1d87-15e81cf]
       ... 6 more
     
    I extract it and recompiled with jdk_1.7.0_65 and no problem.
    But i don't understand !
    Plugin contact mojang store UUID, name and IP on mysql on first time.
    And other time, just contact mojang ? all time... I'm thinking Server no need after first time ?
     
    #10 belfedia, Jan 28, 2015
    Last edited: Jan 30, 2015
  11. Recolance

    Supporter

    This plugin does not contact mojang. Which was the goal of it, not even first time. It stores login name, and UUID and uses the last known username to retrieve a UUID from the database, if it does not find the requested name in the database, it returns null.

    the only time it contacts mojang is to repair itself against duplicate usernames in the database. Example
    |---UUID ---|---NAME---|
    |b12-2312... | MasterB8r|
    |324-sdfaf... | MasterB8r|
    --------------------------------

    Although gad you repaired the issue, still unsure, I compile always latest java update since I really only release things I use personally, and am not going to try and get my plugins big. People should always be using the latest java for performance.. etc purposes.
     
  12. Hello thanks for explain :) i miss-understand.

    "People should always be using the latest java for performance.. etc purposes."
    I prefer use debian stable system for production server. But i understand your thinking :) my personnal desktop use always latest version.
    Debian jessie is freeze and may be available soon i think. With it, i update my java. Sometimes i use some backdoors repository but nothing more.
    I use also openjdk and not oracle version this is a heart's choice .
     
  13. Recolance

    Supporter

    Recolance updated PlayerLog with a new update entry:

    Name Cache

    Read the rest of this update entry...
     
  14. Recolance

    Supporter

  15. Recolance

    Supporter

  16. Could you open source this please?