Solved WHAT THE...? plugin works on test server but not live server??

Discussion in 'Plugin Development' started by joehot2000, Mar 5, 2013.

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

    joehot2000

    [THIS HAS BEEN SOLVED]
     
  2. Offline

    ZeusAllMighty11

    I ain't readin that code until it's in a proper code block and you have it with the error
     
    zack6849 likes this.
  3. Offline

    joehot2000

    I cannot do code blocks for some reason. it comes out weird, and unreadable.

    edit: ok, made it a code block, though cant get rid of those [size] thingies

    And what you mean by "you have it with the error"?
     
  4. Offline

    Tirelessly

    if (event.getClickedBlock().getType().equals(Material.SIGN_POST) || (event.getClickedBlock().getType().equals(Material.SIGN))){
    Make sure getClickedBlock isn't null.
     
  5. Offline

    joehot2000

    Wow, okiedokie, will do.

    Okeeee... the NullPointer is gone, but it still wont work?

    Gah, i hate debugging code ;)

    Ah well, all the sweeter when i solve it.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 31, 2016
  6. Offline

    minoneer

    what exactly is it that doesn't work?
     
  7. Offline

    joehot2000

    Wait, i got it working.

    I am a complete moron!
    I forgot to add support for wall signs!
    And i put the signs on the walls :3
    Put signs on the floor, it works now.
    Thanks for the help in fixing the NullPointer.
    This has really improved my server :D
    Thanks, both of you!
     
  8. Offline

    minoneer

    great, don't forget to mark this as solved :)
     
    hapm likes this.
  9. Offline

    willeb96

    You can't click on a Material.SIGN, that's the item. You can only click WALL_SIGN and SIGN_POST, you can also check if (block.getState() instanceof Sign)
     
  10. You're doing something wrong when posting the code... either you're dragging and dropping the text which is bad, you should use copy+paste, OR you have rich editor thing which automatically converts the copied format into BBcode, disable that if you have it on.
     
    joehot2000 and microgeek like this.
Thread Status:
Not open for further replies.

Share This Page