Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wilderness change back to hard difficulty. #20

Closed
DarkWolfNL611 opened this issue Mar 15, 2021 · 5 comments
Closed

wilderness change back to hard difficulty. #20

DarkWolfNL611 opened this issue Mar 15, 2021 · 5 comments

Comments

@DarkWolfNL611
Copy link

Hello,

We are using the Island plugin and are really happy with it!
Unfortunately some of our players would like to play on normal difficulty.
We looked into this and found out that the plugin generates the wilderness world on hard difficulty and there are no options to change this...

Would it be possible to get a config file entry to customize the world difficulty?

@wmattiso
Copy link

If you are using the multiverse plugin, (which if you're not I would highly recommend) you can use the command /mvmset difficulty normal. This worked just fine for me. If you arent using multiverse you should just be able to do /difficulty normal for the whole server.

@DarkWolfNL611
Copy link
Author

i do have it and i can set it to normal but after a reset it change back because of the script

@j4c3
Copy link

j4c3 commented Apr 27, 2021

Every time I start the server, I see this:

[12:09:45 INFO]: [Islands] Islands source world set to islandsSource
[12:09:45 INFO]: [Islands] No wilderness found. Creating one called wilderness...
[12:09:45 INFO]: Preparing start region for dimension minecraft:wilderness
[12:09:45 INFO]: Loaded 0 spawn chunks for world wilderness
[12:09:45 INFO]: Preparing spawn area: 0%
[12:09:46 INFO]: Preparing spawn area: 9%
[12:09:46 INFO]: Preparing spawn area: 9%
[12:09:46 INFO]: Time elapsed: 1192 ms
[12:09:46 INFO]: [Islands] Using English locales
[12:09:46 INFO]: [Islands] Islands enabled!

But, wilderness exists, has existed, and I've been to it. So, it may not be detecting it is there, and recreating it and overwriting your change to the difficulty.

EDIT: Looking around, with wilderness not having been loaded yet, Spigot isn't returning it in getWorlds(). But, it seems to work okay for islandSource. I see that uses Bukkit.getServer().getWorlds() instead of just Bukkit.getWorlds(). I don't think islandSource is loaded earlier, so it may be worth trying that for wilderness, too.

@aleksilassila
Copy link
Owner

I did some testing and seems like after changing wilderness to peaceful with /difficulty peaceful and restarting, the apparent difficulty is back to hard, but no mobs spawn or can be spawned until the difficulty is set back to > easy. So the actual difficulty is still peaceful after a restart even though /difficulty says it's back to hard, if that makes sense. A little inconvenient, but shouldn't affect gameplay.

@aleksilassila
Copy link
Owner

Found a fix for this, will be completely fixed in next update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants