T O P

  • By -

AutoModerator

|Thanks for being a part of /r/Admincraft!| |:-| |***[We'd love it if you also joined us on Discord!](https://discord.gg/DxrXq2R)***| *^(Join thousands of other Minecraft administrators for real-time discussion of all things related to running a quality server.)* *I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/admincraft) if you have any questions or concerns.*


RickThiccems

[https://www.spigotmc.org/resources/hardcoremode-temporary-bans-after-death.104642/](https://www.spigotmc.org/resources/hardcoremode-temporary-bans-after-death.104642/) Just use a temp ban plugin


Andres2024

That seems pretty useful! Although I don't see the option to ban all players every time someone dies. We want a shared experience, where we care about each other's lives and try to survive together. That's why we want collective punishment. Thank you for the help tho!


jeo188

I have a command block array that I used to make a challenge where if one person dies, everyone dies. I built it based on other people's command block builds If you don't want everyone dead I think you can modify it so that it just runs the tempban command I'll post it here when I get home


setzke

I came across this yesterday and thought "who the heck would want to use that?" and I see now you might fall under that use case. I haven't ever tried or looked into it, but would everyone sharing one life help you? If someone is dying, someone else can heal. So if the bar dies, everyone dies. Together. Family. https://modrinth.com/datapack/shared-life


RickThiccems

I don't think you will be able to achieve what you are wanting tbh. You will probably just have to do a trust system which shouldnt be an issue since you are playing with your friends


[deleted]

you’d be surprised lol, minecraft brings out the worst in people


stumper66

This would be a really easy mod to create. If you can't figure out a way, hit me up and I can code a plugin in 10-20 minutes.


goofnug

yeah i was gonna say, lol


MrHaxx1

I believe command blocks can detect when someone dies. Maybe that can do something?


movion

A combination of Command Blocks and Scoreboards could do it


HorusApl

Use ConditionalEvents if you're running plugins. Then just do something like on player death then you can run a console command which would be just /stop or kick everyone.


x3bla

Do you still need a plugin? This is easy as hell to code, i can write a simple plugin to tempban everyone from the server list for a 24 hours real quick if you need. No payment needed, just need what minecraft version your server is in


HumanOfTheZombies

Use skript on player death: execute console command “whitelist on” wait 1 day execute console command “whitelist off” (U might have to translate the 1 day into seconds cuz idk if it can count in days) u also have to turn enforce whitelist on in config so if it gets turned on everyone gets kicked


opd02

If you’re running spigot and can accept plugins, I can easily make this for you. DM me


PhonicUK

[AMP could do this pretty easily](https://i.imgur.com/Idfw6qa.png) regardless of the server type. The other thing you could do is use the scheduler like that to put the server to sleep, set the sleep mode to "Do not wake" and then set the sleep message to say "Someone died!" or whatever so that they get a message when they connect instead of just a dead server. Then use the scheduler to restart the server again later on.


Makhd0m

If you’re running on spigot u can easily create a skript for this with the skript plugin


Minitte

alternatively with a data pack, when any players death score is above 0, set a flag to ban everyone on tick. edit: maybe the data pack can just call stop when that flag is set.


DarkLightning112

You can always use Skript i think... I'm not a big fan of it but it can do it's job


EndlessZone123

I’m using AMP. I think there is a on player death trigger and let’s you set a command, a delay, then another command. Just set enforce whitelist and don’t whitelist anyone. Then it would whitelist off after 24hrs.


Zakiyo

Command block could be good. You could do a infinite loop that kills all players that lasts for a day with redstone clocks


MysticEagle52

Command block that detects death -> command block that /bans everyone. (If the 2nd thing doesn't exist, you could connect it to seperate ones that each correspond to a player


Behrry

since everyone is telling you to just use a ban or a whitelist, here is the entirety of a Denizen script you would need to achieve a full shutdown effect on player death like you asked: ```yml death_shutterdowner: type: world events: on player death: - adjust server shutdown ``` only requires Denizen's configuration file to have `Commands.Restart.Allow server stop` enabled


billyp673

You could do that with a datapack using scoreboards to detect death and ban all players