Tallcraft / NerfPhantoms

Bukkit plugin which allows nerfing Phantom mobs introduced in Minecraft 1.13
https://www.spigotmc.org/resources/nerfphantoms.59218/
MIT License
10 stars 10 forks source link

Could not pass event CreatureSpawnEvent to NerfPhantoms v1.3.0 #13

Closed hkkongou closed 3 years ago

hkkongou commented 3 years ago

image it show the above error log and no phantom is spawned. Config no change.

paper 253 1.16.3 NerfPhantoms 1.3.0

Trikolon commented 3 years ago

Thanks for filing an issue. This does look like an issue with the config file. Could you please post a copy of the config here? You can also try to delete the config file and let the plugin generate a new one.

hkkongou commented 3 years ago

I did not edit anything in config file.

enabledWorlds:
- world
- world_nether
- world_the_end
- world_main
allowNaturalSpawn: true
onlyNerfNatural: true
muteSound: false
disableAI: false
health: 20.0
damageModifier: 1.0
fixedSize:
  enabled: false
  value: 1
database:
  enabled: false
  type: mysql
  host: localhost
  port: 3306
  name: nerfphantoms
  username: user
  password: '123456'

btw, I am not quite understand what does enable world mean, does it mean the following listed world 1.will have nerfphantom in action 2.phantoms will not spawn in the listed world, non listed world will spawn as vanilla

Trikolon commented 3 years ago

btw, I am not quite understand what does enable world mean, does it mean the following listed world 1.will have nerfphantom in action 2.phantoms will not spawn in the listed world, non listed world will spawn as vanilla

Good question! enabledWorlds is a list of worlds where the plugin is active. The plugin will not take actions in worlds not listed there (not nerf or prevent phantoms from spawning). When installing the plugin this world list is generated, and by default contains all available worlds. If you remove or add worlds later you'll need to adjust the config.

I've improved this configuration option a bit. Could you test again with this development build? https://github.com/Tallcraft/NerfPhantoms/suites/1617060740/artifacts/29673448 (jar file is in the ZIP). If it still doesn't work, check if the plugin prints a log message like:

Config entry "enabledWorlds" contains unknown world 'worldName'.

This development build also allows you to set enabledWorlds to an empty list. The plugin will then be active for all worlds.

hkkongou commented 3 years ago

yes sure, i will try that out and report bug if i face. thank you

Trikolon commented 3 years ago

@hkkongou Did it work with the development build or do you still have issues?

Trikolon commented 3 years ago

No reply from reporter. Closing issue.