PreciousStones

PreciousStones

269k Downloads

[Bug] Command on enter/exit effecting ALL allowed players.

krustymk opened this issue ยท 5 comments

commented

Command on enter/exit

Anyone allowed in the field triggers the command for everyone else allowed in the field not just themselves (weather they are in it or not) when entering or leaving the field.

Shouldn't the command only effect the person entering/leaving the field, not all other allowed players as well?

Also when entering a portal, for example i have a /fly command on enter/exit

I can fly in the stones area as i should, however if i go through a portal i get the message pop up saying 'Set Fly mode enabled' when no field is present in nether. If i then /spawn and /back i cannot fly anymore (as it should be) then go back through the portal to the normal world (where my field is) i get the 'set fly mode enabled' as normal

Cheers

commented

What is the syntax you are using on the flag?

commented

Here is the section referring to this stone.

- title: Wings of Icarus
  block: 172
  radius: 15
  custom-height: 256
  allowed-only-inside:
  - Home Protection
  command-on-enter:
  - fly {owner}
  command-on-exit:
  - fly {owner}
  hidable: true
  commands-on-overlap: true
  price: 2000
  mask-on-disabled: 80
commented

What are the commands being fired (seen from the logs) when the bug happens?

commented

Now this may seem a stupid question but where would i find the logs you refer to?
the console logs show no PS activity at all other than

05.01 08:49:12 [Server] INFO Set fly mode disabled for ~Jobo.
05.01 08:49:06 [Server] INFO Set fly mode enabled for ~Jobo.
05.01 08:48:52 [Server] INFO Set fly mode disabled for ~Jobo.
05.01 08:48:50 [Server] INFO Players: ~Jobo

as this player goes in and out of the field.
Personally i think the log is being filtered somehow but im not sure if this is possible and the host doesnt think it is...

Thanks again for your help

commented

If it as affecting all allowed players you would see lines like this one below for all for the other players.

05.01 08:49:06 [Server] INFO Set fly mode enabled

Do you see those?