Towny Classic

Towny Classic

3.2k Downloads

protection.potion_types are prevented from applying to mobs even with pvp enabled

Closed this issue ยท 2 comments

commented

What steps will reproduce the problem?

  1. Add potion types to protection.potion_types
  2. Set PVP in the chunk to true
  3. Use a dispenser/or throw said potion types on a mob
  4. Observe potion effect is not applied

What is the expected output?

The potion effect should be applied to the mob

Towny version

Towny version 0.101.1.6

Server version

UniverseSpigot version 1.21.4-ver/1.21.4-stable@4f6cdd2

Please use Pastebin.com to link the following files

  1. Your full server startup from the logs\latest.log: Pastebin refuses to let me paste it, but N/A as there is no error
  2. Your Towny config.yml: https://pastebin.com/6HPe718u
  3. Your townyperms.yml: https://pastebin.com/sJaWxumP
  4. Your log's error: N/A

(optional) If this is to do with permissions,
5. Your permissions file: N/A

(optional) If this is to do with chat,
6. Your chatconfig.yml: N/A
7. Your channels.yml: N/A

commented

In the instance of the player throwing the potion it follows a destroy test, like we do with the other tests when protecting the protected entities.

I am not sure just at a glance which section of the code is handling dispenser-thrown potions yet.

commented

Closed by #7839