Solved plugin.yml trouble

Discussion in 'Plugin Development' started by fondelaar, Sep 30, 2012.

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

    fondelaar

     
  2. Offline

    Neodork

    Shouldn't this:
    Code:java
    1.  
    2. public boolean onEnable;{
    3.  
    4. getLogger().info("I placed a nuke has been enabled!!");
    5. }
    6.  
    7. public boolean onDisable;{
    8. getLogger().info("I placed a nuke has been disabled. Have a nice day!!");
    9. }


    be this:
    Code:java
    1.  
    2. public void onEnable(){
    3.  
    4. getLogger().info("I placed a nuke has been enabled!!");
    5. }
    6.  
    7. public void onDisable(){
    8. getLogger().info("I placed a nuke has been disabled. Have a nice day!!");
    9. }
     
  3. Offline

    fondelaar

    do i get this straight? if the server says nullpointer exeption somthing in my coding is wrong?

    and public void means the method shouldnt return, instead of public boolean?
     
  4. Offline

    xImaginex

    NullPointerException just means that at some point you tried to reference and/or manipulate something that had a value of null (nothing).
    public void means the method returns nothing.
    public boolean means the method returns a boolean value;
     
Thread Status:
Not open for further replies.

Share This Page