Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Inable disable PVP in game?

Comments in 'Plugin Development' started by Legomite, Nov 2, 2013.

  1. Legomite
    Offline

    Legomite Active Member Plugin Developer

    Joined:
    Sep 8, 2013
    Posts:
    470
    Plugins:
    2
    Minecraft User:
    Legomite
    Is there a way to disable pvp in game?
  2. 0becca0
    Offline

    0becca0 New Member

    Joined:
    Oct 4, 2013
    Posts:
    133
    Minecraft User:
    0becca0
    yoir server properties or get area guard by wies
  3. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,707
    Plugins:
    22
    Minecraft User:
    Falkirknh
    Just change pvp=true to pvp=false in your server.properties. For further information check out the wiki page.
  4. Legomite
    Offline

    Legomite Active Member Plugin Developer

    Joined:
    Sep 8, 2013
    Posts:
    470
    Plugins:
    2
    Minecraft User:
    Legomite
    IN GAME, IN GAME IN GAME!!!
  5. Glitchmaster_PE
    Offline

    Glitchmaster_PE Notable Member Plugin Developer

    Joined:
    Aug 31, 2013
    Posts:
    834
    Plugins:
    8
    Minecraft User:
    Glitchmaster_PE
    You could use area guard, it gives the option to enable/disable PvP in a certain area
  6. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,707
    Plugins:
    22
    Minecraft User:
    Falkirknh
    Sorry for the bad answer
  7. Let It Snow!
    Offline

    Let It Snow! Active Member

    Joined:
    Oct 30, 2013
    Posts:
    60
    Minecraft User:
    LetItSnow_
    Of course there is if you own the server
  8. SuperChipsLP
    Offline

    SuperChipsLP Active Member Plugin Developer

    Joined:
    Sep 15, 2013
    Posts:
    204
    Plugins:
    5
    Minecraft User:
    Redmol
    Example:

    PHP:
    case 'entity.health.change':
                    if(
    $this->hurtable === false)
                    {
                        return 
    false;
                    }
                    break;
    Use it in your eventHandler :)
    Of course, you must set:

    PHP:
    private $hurtable true;
    in your file :)

    edit: Oh, i forget. This completely turns off damage.
    Last edited: Nov 3, 2013
  9. SuperChipsLP
    Offline

    SuperChipsLP Active Member Plugin Developer

    Joined:
    Sep 15, 2013
    Posts:
    204
    Plugins:
    5
    Minecraft User:
    Redmol
    I will make a plugin that does that :)

    edit: I have submitted my plugin. You can use it if you want :)
    Last edited: Nov 3, 2013

Share This Page

Advertisement