PreciousStones

PreciousStones

269k Downloads

Potion effects don't stop after leaving a field

RoboMWM opened this issue ยท 0 comments

commented

Tested with a poison and harm potion effect - if a player leaves the field (verified via command-on-exit flag), the potion effect remains until the player dies, the field is broken (command-on-exit executes twice when this happens), or until the player leaves another field (as if the fields were being "mixed" somehow but mixing-group is not used on any field).

The only time this doesn't happen is when you're creating a new field and reloading the plugin/its config.

Here's a sample config which is what I'm using:

- title: claim_field
  block: '95:3'
  radius: 100
  custom-height: 256
  meta-name: '&bClaim Field'
  meta-autoset: true
  meta-lore:
  - '&eAllows you to place other fields'
  - '&eMarks your spot on the /map'
  - '&eIt covers an area of 100 radius'
  - '&eOnly 2 of these allowed per-player'
  welcome-message: true
  farewell-message: true
  limits:
  - 2
  enable-on-src: true
  mask-on-disabled: '35:4'
  allowed-only-outside:
  - claim_field
  breakable: true
  dynmap-no-toggle: true
  prevent-use:
  - 54
  - 146
- title: shattering_glass_v2
  block: '95:1'
  radius: 10
  ~command-on-enter:
  - tell {player} entered field
  ~command-on-exit:
  - tell {player} left field
  ~potions:
  - HARM
  ~potion-intensity:
  - 1
  meta-name: '&4Shattering Glass V2'
  meta-autoset: true
  meta-lore:
  - '&6Damages anyone within 10 blocks'
  - '&6You can allow people to be immune'
  no-conflict: true
  breakable: true
  sneaking-bypass: false
  no-player-place: true
  mask-on-disabled: '35:1'
  allowed-only-inside:
  - claim_field```