Jump to content

Can we disable the use of /kill for certain players (e.g. prisoners)?


CoB
 Share

Recommended Posts

Is there a way to create a privilege group that can't access the /kill command, so that they will not be able to get out of prisons through respawning? I mean, i know how to create groups, but how could i disable that command for them?

Link to comment
Share on other sites

Hi Kai,

currently the /kill command is bound to the chat privilege. You could take it away to avoid players using it, but that will also take away the ability to chat.

Alternatively you could write a tiny mod that unregisters the vanilla kill command, then register your own /kill command and execute "player.Entity.Die()" yourself if your desired conditions are met.

hope that helps ^_^

Link to comment
Share on other sites

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.