/kick and /ban command block workarounds for staff on a vanilla server [duplicate]

/kick and /ban command block workarounds for staff on a vanilla server [duplicate] - Good looking young waiter in apron standing at modern food truck counter and looking at camera with toothy smile

I'm running a vanilla minecraft server, and I have some custom commands set up for staff using scoreboard triggers. I want to set up some sort of trigger command that can kick and one that can ban (this one just for admins).

I understand that /kick and /ban won't work from command blocks, though. Is there a workaround for this (especially the kick command) that I could implement for mods and admins?



Best Answer

One idea would be that you can lock them in a place, for example a jail, then making them unable to break the blocks to escape. A another way would be to constantly kill them or teleport them to a specific location through a redstone clock with attached command blocks. I've had situations like these before, and I would think the first solution is cleaner.




Pictures about "/kick and /ban command block workarounds for staff on a vanilla server [duplicate]"

/kick and /ban command block workarounds for staff on a vanilla server [duplicate] - Waiter standing at food truck counter with paper towel
/kick and /ban command block workarounds for staff on a vanilla server [duplicate] - Waiter preparing food truck for service in park
/kick and /ban command block workarounds for staff on a vanilla server [duplicate] - Side view young waiter in apron standing outside food truck and opening counter door in green lush park



How do you make a command block kick someone?

The only way I know how to forcibly kick a player from Minecraft via command blocks is to teleport them to the edge of the world then do a relative teleport over the edge. However, there is no coming back from this without modifying the player's positions in the . dats. This would only be useful as a banning method.

How do you restrict commands on a Minecraft server?

By default, server ops have access to all commands, including commands like /stop . You can change this by modifying the op-permission-level in your server. properties file. Setting it to 4 (which is the default) allows ops to use all commands.

How do you enable command blocks on a vanilla server?

Enable Command Blocks
  • Head to your multicraft control panel and select the Config Files tab on the left hand side.
  • Select Server Settings which will be at the top of the page.
  • Scroll down the page until you find Enable Command Blocks.
  • Set this setting to Enabled and then click save.




  • 3 Deadly Command Blocks (Minecraft PE)




    More answers regarding /kick and /ban command block workarounds for staff on a vanilla server [duplicate]

    Answer 2

    In vanilla Minecraft, there is no way to automate kicks and bans or assign permission levels to the kick and ban command. If you are just looking for permission levels for different commands, you should try seeing if you can host a Bukkit or Spigot server. You can add plug ins such as PermissionsEx. With that, you can manage different player groups (eg: player, mod, admin) and each give them different sets of commands they can use

    Answer 3

    I found a workaround in trying to figure out how to ban hackers that OP themselves, I set up a fast clock to teleport the offending player in place and execute spam nether portals at their feet (they're suspended in air). This has the effect of trapping them and putting the portal delay on them so they can't issue commands.

    Like so:

    /tp @a[score_hacker_min=1] -25 2 -8 -90 0 – Red_Mag3 
    
    /execute @a[score_hacker_min=1] ~ ~ ~ setblock -25 2 -8 portal 
    

    This requires a safe zone in the nether as well that does the same, but is 100% effective.

    Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

    Images: Kampus Production, Kampus Production, Kampus Production, Kampus Production