-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Nick Brown
committed
Jun 7, 2021
1 parent
fac8bf4
commit f12aa74
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# GroupHardcore | ||
|
||
GroupHardcore is a SpigotMC/PaperMC plugin for helping to reset a Minecraft server instance upon a player death | ||
|
||
## Features | ||
|
||
This plugin upon player deaths creates a flag file, kicks all players, writes death message to `deathlog.txt`, then restarts the server. | ||
It assumes you have a modified startup script to remove the world folders, and remove the flag file, like shown below. | ||
|
||
## Usage | ||
|
||
Compile the plugin, drop it in the plugins folder, and run your server with a start file resembling this script: | ||
```bash | ||
#!/bin/bash | ||
|
||
if test -f "flag"; then | ||
rm -rf world* flag | ||
fi | ||
|
||
screen -dmS mc java -Xmx2G -Xms1024M -jar paper.jar nogui | ||
|
||
``` | ||
|
||
## Contributing | ||
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. |