aleksilassila / Islands

A spigot plugin for creating customisable home islands with different biomes. https://www.spigotmc.org/resources/islands-home-islands-system.84303/
GNU General Public License v3.0
22 stars 16 forks source link

wilderness change back to hard difficulty. #20

Closed DarkWolfNL611 closed 2 years ago

DarkWolfNL611 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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

j4c3 commented 3 years ago

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 commented 2 years ago

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 commented 2 years ago

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