Hey Samerton,
Got another problem... YEEEEAAAAAAAH. So can you send me the file name and line where the copying od the IP happens? Thanks!
And also I have an issue with the plugin: So I have the NamelessMC-Spigot-Pre-1.1 and v2.0.0 pre-6 NamelessMC. On my site I HAVE Legacy API Enabled, aswell as API by itself. I have not enabled force www,But you can go to my site with and without www. In the plugin config @ the api_url I tried to type:
api-url: http://wpmc.gq/api/v1/MYKEY
api-url: "http://wpmc.gq/api/v1/MYKEY"
api-url: http://wpmc.gq/api/v2/MYKEY
api-url: "http://wpmc.gq/api/v2/MYKEY"
All gave me this error:
> [13:45:19 INFO]: [NamelessMC] [WARNING] Invalid API key
> [13:45:19 WARN]: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 22
> [13:45:19 WARN]: at com.google.gson.JsonParser.parse(JsonParser.java:65)
> [13:45:19 WARN]: at com.google.gson.JsonParser.parse(JsonParser.java:45)
> [13:45:19 WARN]: at com.namelessmc.namelessplugin.spigot.API.CheckWebAPIConnection.(CheckWebAPIConnection.java:56)
> [13:45:19 WARN]: at com.namelessmc.namelessplugin.spigot.API.NamelessAPI.checkConnection(NamelessAPI.java:46)
> [13:45:19 WARN]: at com.namelessmc.namelessplugin.spigot.API.Config.NamelessConfigManager.initConfig(NamelessConfigManager.java:89)
> [13:45:19 WARN]: at com.namelessmc.namelessplugin.spigot.API.Config.NamelessConfigManager.initializeFiles(NamelessConfigManager.java:27)
> [13:45:19 WARN]: at com.namelessmc.namelessplugin.spigot.NamelessPlugin.onEnable(NamelessPlugin.java:105)
> [13:45:19 WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321)
> [13:45:19 WARN]: at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340)
> [13:45:19 WARN]: at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405)
> [13:45:19 WARN]: at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:357)
> [13:45:19 WARN]: at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:317)
> [13:45:19 WARN]: at net.minecraft.server.v1_8_R3.MinecraftServer.s(MinecraftServer.java:414)
> [13:45:19 WARN]: at net.minecraft.server.v1_8_R3.MinecraftServer.k(MinecraftServer.java:378)
> [13:45:19 WARN]: at net.minecraft.server.v1_8_R3.MinecraftServer.a(MinecraftServer.java:333)
> [13:45:19 WARN]: at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:263)
> [13:45:19 WARN]: at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:525)
> [13:45:19 WARN]: at java.lang.Thread.run(Thread.java:748)
> [13:45:19 WARN]: Caused by: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 22
> [13:45:19 WARN]: at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505)
> [13:45:19 WARN]: at com.google.gson.stream.JsonReader.checkLenient(JsonReader.java:1386)
> [13:45:19 WARN]: at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:531)
> [13:45:19 WARN]: at com.google.gson.stream.JsonReader.peek(JsonReader.java:414)
> [13:45:19 WARN]: at com.google.gson.JsonParser.parse(JsonParser.java:60)
> [13:45:19 WARN]: ... 17 more
> [13:45:19 INFO]: [NamelessMC] [WARNING] Invalid API Url/Key, Please set the correct API url! disabling features