Plugin Help Coding help

Discussion in 'Plugin Help/Development/Requests' started by raymart23, Apr 27, 2015.

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

    raymart23

    Hello guys can someone help me to fix this Problems :

    1st :
    how could i fix the deprecated thingy ?

    2nd :
    about "else {"
    What is this for ?
    how could i use this ?

    anyone can helP :p
     
  2. @raymart23
    [1] Deprecated methods are just not advised to be used. They can still be used without any problems.
    [2] You use it after an if statement if the statement is not true/false:
    Code:
    if(true) {
        //do code
    } else {
        // condition is false, do something else
    }
     
  3. Offline

    raymart23

    @DJSkepter hahaha thanks but could you put a code so i understand it correctly :p
     
  4. Offline

    pie_flavor

    @raymart23 If you are asking how you can disable the deprecated warning, right before your class put @SuppressWarnings("deprecation")
    Also, think of the 'else' keyword as 'otherwise'.
     
  5. Offline

    raymart23

Thread Status:
Not open for further replies.

Share This Page