remove something from config??

Discussion in 'Plugin Help/Development/Requests' started by Bowser_Jr, Jan 29, 2015.

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

    Bowser_Jr

    @nverdier
    There is something wrong with these lines:
    Code:
    System.out.println("------THIS WORKS-------");
            sender.sendMessage(color(plugin.getConfig().getString("SENDER_DIVORCE").replace("{receiver}", receiver.getName())));
            receiver.sendMessage(color(plugin.getConfig().getString("RECEIVER_DIVORCE").replace("{sender}", sender.getName())));
            System.out.println("------THIS WORKS 222222-------"); 
    this is the error that show that One of the debug messages display but the last one don't
    Code:
    [21:31:07 INFO]: ------THIS WORKS-------
    [21:31:07 ERROR]: null
    org.bukkit.command.CommandException: Unhandled exception executing command 'marr
    y' in plugin PrisonMarriage v1.3
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[cra
    ftbukkit.jar:git-Spigot-1.7.9-R0.2-205-g48578ee]
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:18
    1) ~[craftbukkit.jar:git-Spigot-1.7.9-R0.2-205-g48578ee]
            at org.bukkit.craftbukkit.v1_7_R4.CraftServer.dispatchCommand(CraftServe
    r.java:767) ~[craftbukkit.jar:git-Spigot-1.7.9-R0.2-205-g48578ee]
            at net.minecraft.server.v1_7_R4.PlayerConnection.handleCommand(PlayerCon
    nection.java:1043) [craftbukkit.jar:git-Spigot-1.7.9-R0.2-205-g48578ee]
            at net.minecraft.server.v1_7_R4.PlayerConnection.a(PlayerConnection.java
    :880) [craftbukkit.jar:git-Spigot-1.7.9-R0.2-205-g48578ee]
            at net.minecraft.server.v1_7_R4.PacketPlayInChat.a(PacketPlayInChat.java
    :28) [craftbukkit.jar:git-Spigot-1.7.9-R0.2-205-g48578ee]
            at net.minecraft.server.v1_7_R4.PacketPlayInChat.handle(PacketPlayInChat
    .java:65) [craftbukkit.jar:git-Spigot-1.7.9-R0.2-205-g48578ee]
            at net.minecraft.server.v1_7_R4.NetworkManager.a(NetworkManager.java:186
    ) [craftbukkit.jar:git-Spigot-1.7.9-R0.2-205-g48578ee]
            at net.minecraft.server.v1_7_R4.ServerConnection.c(ServerConnection.java
    :81) [craftbukkit.jar:git-Spigot-1.7.9-R0.2-205-g48578ee]
            at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:7
    34) [craftbukkit.jar:git-Spigot-1.7.9-R0.2-205-g48578ee]
            at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:2
    89) [craftbukkit.jar:git-Spigot-1.7.9-R0.2-205-g48578ee]
            at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:5
    84) [craftbukkit.jar:git-Spigot-1.7.9-R0.2-205-g48578ee]
            at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java
    :490) [craftbukkit.jar:git-Spigot-1.7.9-R0.2-205-g48578ee]
            at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:6
    28) [craftbukkit.jar:git-Spigot-1.7.9-R0.2-205-g48578ee]
    Caused by: java.lang.NullPointerException
            at me.DrBeast.PrisonMarriage.MarriageExecutor.Divorce(MarriageExecutor.j
    ava:190) ~[?:?]
            at me.DrBeast.PrisonMarriage.MarriageExecutor.onCommand(MarriageExecutor
    .java:80) ~[?:?]
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[cra
    ftbukkit.jar:git-Spigot-1.7.9-R0.2-205-g48578ee]
            ... 13 more
     
  2. Offline

    nverdier

    @Bowser_Jr Yes, but it could be sender, plugin, the String from config, the receiver, the value of color. So print out all of those values to find out which one is null. Probably plugin...
     
  3. Offline

    Bowser_Jr

    @nverdier
    and how would I do that? I don't really understand what you mean with print them out

    @nverdier
    wait, I'll have to restart my router for like 5 hours cause I can't afford a vpn and I'm getting ddosed constantly the last 4 days...
    Hope you can help me tomorrow. Bye

    <Edited by bwfcwalshy: Merged posts, please use the edit button rather than double posting.>
     
    Last edited by a moderator: Feb 1, 2015
  4. Offline

    nverdier

    @Bowser_Jr System.out.println(<MessagesGoHere>);
     
Thread Status:
Not open for further replies.

Share This Page