Any Way To Enable/Disable PvP?.

Discussion in 'Plugin Development' started by iosman000, Nov 20, 2019.

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

    iosman000

    Hello,

    So apparantly EntityDamagedByEntity is a dud - it doesn't actually work yet.

    Which was my only hope of having players not be able to attack one another inside towns. I can easily tell if players are in any towns or not. I just need it so when they are in a town, their attacks either get canceled, or the PvP setting is disabled somehow.

    If someone can help me that would be very much appreciated. I'm supposed to launch in 1 hour and I thought this would be simple.

    thanks
    iosman
     
  2. Online

    timtower Administrator Administrator Moderator

    @iosman000 And how did you notice that it doesn't work? Did you print anything to see if you registered it correctly?
     
  3. Offline

    KarimAKL

    @iosman000 It should work if you've done the following:
    1. Implemented Listener in your class
    2. Added the EventHandler annotation to the method.
    3. Registered the Listener in the onEnable method.
     
Thread Status:
Not open for further replies.

Share This Page