How to unban a certain player without the use of an admin
Laycee last edited by
So I have a problem. I'm making a datapack in minecraft 1.19 and I want a way to unban players from the server using it. It's supposed to be done by throwing or using a nether star (unban the player whose the item is named after) the datapack basically bans a player with a certain number of deaths. Also if there's a different, or a better way to do it, please send it here, it will help! Also remember, a different player will unban the banned player, and I need a way to do it without the use of more commands.
/pardonrequires https://minecraft.fandom.com/wiki/Permission_level ( https://minecraft.fandom.com/wiki/Permission_level?oldid=2159946 ) 3. Functions normally only have permission level 2, but you can define it differently in
Once you set that and restart the server, using
/pardonin functions will just work like you would expect.
If you don't run a dedicated server, you cannot do what you want, at least not without mods (and I don't know a mod that does this). Another way would be using a "server wrapper" that sends commands to the server console, which has permission level 4, but that would likely require you to write custom software for your usecase (and still only works on a dedicated server).