events.yml
CCCCarsten opened this issue · 6 comments
Hi! What is wrong with my events.yml. I want to use a world-specific strategy. But HSP only does "explicit default".
HSP is a monster ;)) ... sorry if I don't understand it at once.
Ciao, Carsten
Hi, do you have a normal config.yml?
The event.yml is just the defaults, so you need to make sure you make the changes to the config.yml file instead. So to get it all working just copy your changes into the events
section of config.yml
Hi sorifiend,
thanks for your answer :).
HSP has not put a config.yml in the folder. In my humble opinion the config.yml is a part of older versions? I have read this but I don't find it yet...
Are you sure? ;)
Ciao, Carsten
@andune , is it possible that my problem is caused by the "old" problem with lowercase worldnames?
Edit: See edit section below, but if that doesn't work then read directly below.
Original reply:
The other issue that you posted in was fixed a long time ago, and from what I can tell it should still be working. So lets get a bit more info on this so we can narrow it down.
The first thing you will need to do is set
verboseLogging
to true in the core.yml file (and in config.yml if you have one), now restart your server and open the console, then try do the action you want and copy and paste the homespawn output from the console or from server.log and paste it here.Can you please provide Other info that may help:
Spigot version
HSP version
Edit, I just noticed what I think is a big mistake in your config.
I believe the entire "World" section should be a sub section inside of events, not its own section below events.
For example, try this: (Note the extra double space on every line in the world section, and an extra double space on every line with a "-")
events:
# strategies to use when player is joining the game
onJoin:
- spawnNewPlayer
- default
# example of world-specific strategy
world:
# Welten auf denen Homes gesetzt werden dürfen:
Zentrale:
onJoin:
- spawnNewPlayer
- default
onDeath:
- homeLocalWorld
- spawnLocalWorld
onHomeCommand:
- spawnLocalWorld
onNamedHomeCommand:
- homeNamedHome
Instead of your current config setup (the World section is not indented enough, and the strategies are also not indented):
events:
# strategies to use when player is joining the game
onJoin:
- spawnNewPlayer
- default
# example of world-specific strategy
world:
# Welten auf denen Homes gesetzt werden dürfen:
Zentrale:
onJoin:
- spawnNewPlayer
- default
onDeath:
- homeLocalWorld
- spawnLocalWorld
onHomeCommand:
- spawnLocalWorld
onNamedHomeCommand:
- homeNamedHome
Hi @andune : Can you confirm that this is a bug? In this case I would wait for better times ;). I don't think that there is a better plugin like yours, but I need to be sure. Ciao, Carsten
Hi @sorifiend !
I love you!! ;))
Aaaaargggggggggllllll............... such a silly mistake I have made.... you are right!
Thank you very, very much!
:))
Ciao, Carsten