Bukkit Commands In Command Blocks

Bukkit Commands In Command Blocks - Unrecognizable woman holding paw of dog

I'm running a Bukkit server, on which I am trying to use Command Blocks to run commands. In one Command Block, I have tried to use save-all, but when activated, nothing happens

The command sudo works, as i tried /sudo @a gc

But the sudo command doesn't work with save-all either.



Best Answer

The syntax for the sudo command is /<command> <player> <command [args]> and its description is Make another user perform a command. With the command /sudo @a gc you force every player to execute /gc. Means everyone see the server usage information.

If you typed /sudo @a save-all in the commandblock, be happy that it dosen't work because that could be ending in a server crash. (Everybody on the server is forced to execute the command /save-all, what needs much hardware usage)

What I think that you missleading it with the sudo command from linux where the command is executed as root.

The problem why you can not execute the command /save-all in a commandblock is because it is disabled from the server itself for security reasons.

In the Minecraft Wiki you find that information:

These commands are likely disabled due to limited use in command blocks and the potential for severe, unintended consequences on servers.

That counts for the commands:

ban, ban-ip, deop, kick, op, pardon, pardon-ip, save-all, save-off, save-on, stop, whitelist add/remove/on/off/reload, debug, publish

If you really need that command, the only possibility is to use a command of a other plugin and not the original command /save-all.

But make sure that it is executed only once! Keep in mind that griefer could use it to crash the server by expensive hardware usage if they spam the button!




Pictures about "Bukkit Commands In Command Blocks"

Bukkit Commands In Command Blocks - Crop hacker silhouette typing on computer keyboard while hacking system
Bukkit Commands In Command Blocks - Side view of young woman in hoodie sitting on floor near sofa and playing with obedient brown Labrador while resting during free time
Bukkit Commands In Command Blocks - Full body optimistic young female with curly hair smiling and teaching Beagle dog beg command on sunny summer day in countryside



How do you enable command blocks on bukkit 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.


  • How do you make a command alia in spigot?

    If you as a server owner wish to add an alias to a command provided by one of your plugins, you may use the commands. yml file in the root of your servers folder. During plugin development, you may decide that you want multiple player commands to point to the same code.

    What are the Minecraft commands?

    List and summary of commandsCommandDescriptionBE/difficultySets the difficulty level.Yes/effectAdds or removes status effects.Yes/enchantAdds an enchantment to a player's selected item.Yes/eventUsed to trigger an event on an entity.Yes25 more rows

    Is CraftBukkit and bukkit the same?

    What is the difference between Bukkit and CraftBukkit? Bukkit is the developer API, while CraftBukkit is a mod for the official Minecraft server that implements the Bukkit API. Basically, Bukkit is what plugin developers work with to bring you those cool, new features that make your server awesome.



    Commands.... Ep 1, Visual Bukkit Tutorial




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

    Images: Ivan Babydov, Anete Lusina, Ivan Babydov, Blue Bird