Plugin Help Kingdoms 2 help

Discussion in 'Plugin Help/Development/Requests' started by eirikh1996, Feb 27, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    eirikh1996

    Hello. I downloaded and installed the Kingdoms 2 plugin made by ImDeity, the same guy who runs the ImDeity server. But I have a problem. The server log says that an error occurred while enabling kingdoms 2, saying that its probably outdated. When I try to execute any command on this plugin, even if its /kingdom, /town or any other, it doesn't work at all. But it still appears as enabled and it doesn't say "unknown command. type /help for list of commands" when i execute any of its commands. What I expected to happen when i issued any of the commands, was that a message should appear saying that the command was executed successfully. But instead, it says nothing. Yes, I have DeityProtect and DeityAPI installed. OS: Mac OSX. Server type: Spigot MC. Server version: 1.8. If you know how i can make it work, please post a response.
     
  2. Offline

    mine-care

    Please provide the stacktrace (console error)
     
  3. Offline

    TotalMCMan

    What he said

    I think I know the solution to your problem. Please type java -version in a new console window, and reply with what it says.
     
  4. Offline

    pie_flavor

    @TotalMCMan It wouldn't even recognize his plugin, much less load it. That can't be the problem.
     
  5. Offline

    TotalMCMan

    I see. Sorry that I was of no help. Hopefully you'll fix your problem, eirikh1996
     
  6. Offline

    eirikh1996

    Here is part of the log showing the error

    [17:15:11 INFO]: [Kingdoms-2] Enabling Kingdoms-2 v12.08.20.02
    [17:15:11 INFO]: [Kingdoms-2] Loading Config...
    [17:15:11 INFO]: [Kingdoms-2] Saving Config...
    [17:15:11 INFO]: [Kingdoms-2] Loading Language...
    [17:15:11 INFO]: [Kingdoms-2] Saving Language...
    [17:15:11 ERROR]: Error occurred while enabling Kingdoms-2 v12.08.20.02 (Is it up to date?)
    java.lang.NullPointerException
    at com.imdeity.kingdoms.main.KingdomsMain.initDatabase(KingdomsMain.java:42) ~[?:?]
    at com.imdeity.deityapi.api.DeityPlugin.onEnable(DeityPlugin.java:50) ~[?:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[spigot_server.jar:git-Spigot-d0d1d87-bc03b6f]
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:335) [spigot_server.jar:git-Spigot-d0d1d87-bc03b6f]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot_server.jar:git-Spigot-d0d1d87-bc03b6f]
    at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugin(CraftServer.java:356) [spigot_server.jar:git-Spigot-d0d1d87-bc03b6f]
    at org.bukkit.craftbukkit.v1_8_R1.CraftServer.enablePlugins(CraftServer.java:316) [spigot_server.jar:git-Spigot-d0d1d87-bc03b6f]
    at net.minecraft.server.v1_8_R1.MinecraftServer.q(MinecraftServer.java:402) [spigot_server.jar:git-Spigot-d0d1d87-bc03b6f]
    at net.minecraft.server.v1_8_R1.MinecraftServer.k(MinecraftServer.java:370) [spigot_server.jar:git-Spigot-d0d1d87-bc03b6f]
    at net.minecraft.server.v1_8_R1.MinecraftServer.a(MinecraftServer.java:325) [spigot_server.jar:git-Spigot-d0d1d87-bc03b6f]
    at net.minecraft.server.v1_8_R1.DedicatedServer.init(DedicatedServer.java:211) [spigot_server.jar:git-Spigot-d0d1d87-bc03b6f]
    at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:494) [spigot_server.jar:git-Spigot-d0d1d87-bc03b6f]
    at java.lang.Thread.run(Thread.java:745) [?:1.8.0_31]

    I am using java 1.8
     
    Last edited by a moderator: Mar 2, 2015
  7. Offline

    eirikh1996

    Here is part of the log showing the error

    [17:15:11 INFO]: [Kingdoms-2] Enabling Kingdoms-2 v12.08.20.02
    [17:15:11 INFO]: [Kingdoms-2] Loading Config...
    [17:15:11 INFO]: [Kingdoms-2] Saving Config...
    [17:15:11 INFO]: [Kingdoms-2] Loading Language...
    [17:15:11 INFO]: [Kingdoms-2] Saving Language...
    [17:15:11 ERROR]: Error occurred while enabling Kingdoms-2 v12.08.20.02 (Is it up to date?)
    java.lang.NullPointerException
    at com.imdeity.kingdoms.main.KingdomsMain.initDatabase(KingdomsMain.java:42) ~[?:?]
    at com.imdeity.deityapi.api.DeityPlugin.onEnable(DeityPlugin.java:50) ~[?:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[spigot_server.jar:git-Spigot-d0d1d87-bc03b6f]
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:335) [spigot_server.jar:git-Spigot-d0d1d87-bc03b6f]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot_server.jar:git-Spigot-d0d1d87-bc03b6f]
    at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugin(CraftServer.java:356) [spigot_server.jar:git-Spigot-d0d1d87-bc03b6f]
    at org.bukkit.craftbukkit.v1_8_R1.CraftServer.enablePlugins(CraftServer.java:316) [spigot_server.jar:git-Spigot-d0d1d87-bc03b6f]
    at net.minecraft.server.v1_8_R1.MinecraftServer.q(MinecraftServer.java:402) [spigot_server.jar:git-Spigot-d0d1d87-bc03b6f]
    at net.minecraft.server.v1_8_R1.MinecraftServer.k(MinecraftServer.java:370) [spigot_server.jar:git-Spigot-d0d1d87-bc03b6f]
    at net.minecraft.server.v1_8_R1.MinecraftServer.a(MinecraftServer.java:325) [spigot_server.jar:git-Spigot-d0d1d87-bc03b6f]
    at net.minecraft.server.v1_8_R1.DedicatedServer.init(DedicatedServer.java:211) [spigot_server.jar:git-Spigot-d0d1d87-bc03b6f]
    at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:494) [spigot_server.jar:git-Spigot-d0d1d87-bc03b6f]
    at java.lang.Thread.run(Thread.java:745) [?:1.8.0_31]
     
  8. Offline

    mine-care

    The prob has to do with database, it try's to initialize a database and gets a null pointer, is there any configuration you changed relating to the database?
     
  9. Offline

    eirikh1996

    No. I haven't changed anything.
     
  10. Offline

    eirikh1996

    @mine-care

    Checked the plugin folders for DeityAPI and DeityProtect, the two plugins required if Kingdoms 2 should work. Here is the full config.yml for DeityAPI:
    deityapi:
    should_profile: true
    inform_on_plugin_update: true
    mysql:
    server:
    address: localhost
    port: 3306
    database:
    name: kingdoms
    username: root
    password: root

    However, I have not found any database file in either the DeityAPI, DeityProtect or Kingdoms 2 folders or anywhere else in the plugins folder. What changes should be done?
     
    Last edited: Mar 20, 2015
Thread Status:
Not open for further replies.

Share This Page