My friend is passionate about lighting large amounts of TNT. Since he has already destroyed the overworld with / fill and TNT on my past server worlds several times, I decided to "leave" the end and the nether to him (he can do everything he wants in it). Have forbidden him to enter the upper world, unfortunately you can't rely on him. Don't want to risk all my buildings again.
Can I lock him out of the overworld with any command / plug-in? So if he tries to enter it, that somehow he will be teleported back to the end / nether, but players can still join him?
PS: My server is on the 1.15.2 PaperSpigot.
Looking forward to your replies,
Felec28
With the help of a permission plugin and multiverse, this should be possible. You can simply enter a negative permission in the respective plugin (see individual plugin). This must correspond to the normal permission to enter the world. If necessary, just give it per-world-permissions so that it can only use the fill command in the Nether / End if this also corresponds to a solution in your interest
Thank you! Will try.
If necessary, just ask. I should be able to help you if necessary: -D
Hmm why don't you just banish him
I knew that an answer would come…
Yes sorry…
Can I also set with the plug-in that it has no operating room in the upper world and is only in AdventureMode?
This is not always the goal of the whole. Sometimes you want to give a buddy a chance. If he wants that, then let him do it.
I can see if I can write you a little plugin.
You enter in a command block (Repeat | Absolutely | Always active):
/ execute in minecraft: nether run tp @a [name = your friend's name, nbt = {dimension: 0}] ~ ~ ~
I've never tried "/ execute in" commands, but according to my logic it should work.
If your friend is in Overworld, he will be teleported somewhere to the Netjer. Maybe it gets squeezed in Netherrack or spawns in lava, but you don't need to be itchy. The main thing is that he is caught in the nether and in the end xD
You actually only need a single command for xD
See my answer
But this is not a really clean solution.
Clean solution? What do you mean by that?
Clean solution - efficient. Spigot has events - it only runs when you change the world. Teleporting a player every tick (more or less) is not good.
I see.
But it is only teleported when it is in the Overworld, and a single command block does not blow up the server, so that's actually not a problem. In his case, writing a plugin shouldn't be that difficult, so you can do it.
I personally do not know which controls OP per world. You should have a look around