Simple plugin that temporarily ban players when they die and unban them on a specific date.
If you want to play on Normal or Hard difficulty but with punishment for dying, this plugin is for you.
Do not set your world as Hardcore.
This plugin has a config file with instructions to help you, if you want to change something. The config.yml will look like this.
Code (YAML):
############################### #### NORMAL BANNING METHOD #### ###############################
# Set how many days do you want players to be banned for. # NOTE: If remove-dayOfweek-max is false and limitBanDays exceeds friday, player will be unbanned friday. i.e Player banned at thursday, with limitBanDays 2, will be unbanned friday and not saturday. # DEFAULT: 2 limitBanDays: 2
# Set what time of day players will be unbanned using minutes # With DEFAULT players will be unbanned at 6 AM # DEFAULT: 360 minutes = 6 hours unbanHour: 360
# Allow for players that dies in weekend be banned or not. If set true, when it's friday, saturday or sunday the players can be banned when they die. # DEFAULT: false weekend-ban: false
# If you want for 'limitBanDays' ban player for that time, enable this. If true, when a player is banned on thursday, with limitBanDays 2, he will be unbanned on saturday and not friday. # DEFAULT: false remove-dayOfweek-max: false
# Before 1.2 the plugin only unban player at the next friday/legacy-unbanDay at a specific time of the day. # If you want for the plugin to work as it was like before set it to true. # DEFAULT: false legacy-mode: false
# Set what time of day players will be unbanned using minutes # With DEFAULT players will be unbanned at 6 AM # DEFAULT: 360 minutes = 6 hours legacy-unbanHour: 360
# Set what day of the week player will be unbanned. In Legacy Mode, player always are unbanned on the next specific day of week. # 1 = Monday ; 2 = Tuesday ; 3 = Wednesday ; 4 = Thursday ; 5 = Friday ; 6 = Saturday ; 7 = Sunday # DEFAULT: 5 = Friday legacy-unbanDay: 5
# Miscellaneous works with normal and legacy banning method
# Allow a fixed hour of day for players to be unbanned. If set true, players will always be unbanned in the hour defined in 'unbanHour'. # If false, player will be unbanned in the same hour of the day he was banned. # DEFAULT: true global-unbanHour: true
# Set date format of your liking # If you don't know what types of format is available go to SimpleDateFormat Java Doc # https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html # DEFAULT: d-MM-yyyy HH:mm:ss date-format: d-MM-yyyy HH:mm:ss
By default, if a player dies he will be unbanned 2 days later, but if a player is banned on thursday he will be unbanned on friday and not saturday. (I
wanted for player to not get banned on weekends because some of us have jobs. But you can change this in config file at some extent.) You can check the config file and change for whatever you like when you run the server with the plugin, it will generate the config.yml for you.
Note: This plugin was made mostly because me and my friends wanted to play hardcore but did not wanted to someone that die be removed permanently from the game, and with this plugin the player can be back after sometime. And I uploaded the plugin here because why not.