ericyoondotcom / MinecraftManhunt

Minecraft Bukkit plugin to run Manhunt minigames, with Discord music integration
GNU General Public License v3.0
27 stars 7 forks source link

Make /end restart and delete world #52

Closed larssieboy18 closed 3 years ago

larssieboy18 commented 3 years ago

Description

Describe your proposed feature!

Hi there,

As it is really boring to play manhunt on the same map/seed multiple times, what we now do is stop the server, delete the world folders and restart. Would it be possible to add a function so that the /end command actually deletes the world folders and restarts the server. Alternatively, it could also work if a new command, like /manhunt:restart or /manhunt:reset would just tp everyone far away, although that might mess up the ender portal placements.

Permanently commented 3 years ago

Some features of #43 tends to be more for dedicated Manhunt servers, so I could go the full length and have an attempt at this. But, at the same time, this would be a very destructive feature to include, particularly for servers that don't primarily run manhunt. What I do recommend is using a modified version of @krusic22's Linux_StartScript.sh. If you use Linux and are able to use a custom startup script, then I recommend using this for the time being.

Edit: If you don't want the G1GC flags (for some reason?!) then a simple script with rm -rf world world_nether world_the_end after the Java command would work just as well.

ericyoondotcom commented 3 years ago

I think this proposed feature would be overstepping the bounds of the plugin... agree with @Permanently that it could have destructive consequences. I'm marking this as wontfix, but please feel free to make your own fork of the plugin with this feature!

larssieboy18 commented 3 years ago

Just in case anyone wants a plugin that does this: https://www.spigotmc.org/resources/resetworldreboot.81607/ and set the worlds