Help with my different cmds.

Discussion in 'Plugin Development' started by Mikaelrk2, Nov 9, 2013.

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

    Mikaelrk2

    Hi i need help with my cmds = commands to set pvp true & false in world .
     
  2. Offline

    xmarinusx

    Just listen for the command and use this to set the pvp setting:

    Code:java
    1.  
    2. if(world.getPVP())
    3. world.setPVP(false);
    4. else
    5. world.setPVP(true);
    6.  

    This will set pvp to true if it's false and pvp to false if it's true.
     
Thread Status:
Not open for further replies.

Share This Page