Commands and Permissions — Sponge 8.0.0 documentation (2022)


These docs were written for SpongeAPI 7 and are likely out of date.If you feel like you can help update them, please submit a PR!

Commands are one method in which server operators can administer their server, and in which players can interact withthe server.

In Sponge, commands follow a system of Permissions. Permissions allow server operators to controlwho can access what commands. By default, all commands are granted to players with OP status. Players without operatorstatus do not have access to administrative commands or commands that require an assigned permission node. A serveroperator can fine-tune who can access what commands by adding/negating permission nodes through a permissions plugin.


Sponge is not a permissions-management plugin. To add and negate permissions for individual players or groups, youwill need to find a permissions-management plugin.

Operator Commands

These commands, in addition to regular player commands, are available to server operators.


The following commands are available to players with operator status (or the correct permission node) on servers poweredby Sponge.




/sponge audit

Forces loading of unloaded classes toenable mixin debugging.


/sponge blockinfo

Shows the type and some additionalinformation about the block you arelooking at.


/sponge chunks

Prints out the chunk data for a world, adimension, or globally.


/sponge config

Alters a global, world, or a dimensionconfig.


/sponge entityinfo

Shows the type and some additionalinformation about the entity you arelooking at.


/sponge heap

Dumps the JVM heap.


/sponge metrics

Gets or sets whether metric (also knownas server stats) collection is enabledfor a given plugin.


/sponge mods

Lists currently installed forge mods.(SpongeForge only)


/sponge plugins

Lists currently installed Sponge plugins.


/sponge plugins reload

Asks plugins to perform their own reloadprocedures.


/sponge reload

Reloads the global, world, or dimensionconfig.


/sponge save

Saves the global, world, or dimensionconfig.

/sponge timings

The main command for the timings module.


/sponge tps

Display ticks per second for each world.


/sponge version

Prints the Sponge/SpongeAPI versions tothe console.


/sponge which

Prints which plugin provided the command,it’s aliases and alternatives.



Internally used for callback actions onComponents (such as pagination). Notintended to be invoked by hand.


View information on commands used on theserver.

Sponge Command Parameters

Command Conflicts

In cases of command conflict, Sponge provides a primary alias mechanism to specify which command is to be used. Forexample, Minecraft provides the reload command andSponge provides the reload command. Tospecify which command to use, prefix it with minecraft or sponge and a :. So, to use Sponge’s reload commandabove, type in /sponge:reload. This approach can also be used to handle conflicts between mods and/or plugins. Dothe same thing, just use the mod-id or the plugin-id and a :. An example is /examplemodid:tp.

Furthermore, the primary alias mechanism can be used to overcome incompatibilities. Let’s say a plugin registers acommand, but the command is incompatible with your mod. If you can configure your mod to use a Minecraft nativecommand or another plugin’s command, you can restore the expected behavior or prevent unexpected behaviors.


The /sponge audit command forces loading of any classes which have not yet been loaded, allowing the full outputfrom all mixin debugging environment variables to be captured. This also requires the mixins.checks variable, seethe Mixin wiki for more information.


Here are a few simple examples of the sponge config command in action. Note that at least one target flag must bespecified. Please see Configuring Sponge for a more detailed explanation.

  1. /sponge config -d minecraft:nether logging.chunk-load true

Since a dimension type was specified, this would alter the nether dimension config (and hence all nether worlds).

  1. /sponge config -w DIM1 logging.chunk-load true

This would alter the config of world named DIM1.

Sponge provides two permissions for debugging purposes:

  • Allow using Sponge’s block and entity tracking message channel: sponge.debug.block-trackingThis message channel is used by the client (if the SpongeForge mod is installed) to display the block and entityowner and notifier in the debug view.

  • Allow hovering of command execution errors to get the stacktrace: sponge.debug.hover-stacktrace


Timings are a tool built into Sponge that allows server administrators to monitor the performance of their server.Timings will collect information about a server so that a report may later be generated on the data. Information thatis recorded by timings include the server motd, version, uptime, memory, installed plugins, tps, percent of tps loss,number of players, tile entities, entities, and chunks.Below is a list of sub-commands to /sponge timings:



/sponge timings on

Enables timings. Note that this willalso reset timings data.

/sponge timings off

Disables timings. Note that most timingscommands will not function and timingswill not be recorded if timings aredisabled.

/sponge timings reset

Resets all timing data and beginsrecording timing data after the timethis command was done.

/sponge timings report

Generates the timings report on yourserver performance at

/sponge timings verbon

Enables timings monitoring at theverbose level.

/sponge timings verboff

Disables timings monitoring at theverbose level. Note that high-frequencytimings will not be available.

/sponge timings cost

Gets the cost of using timings.


The following commands are available only when using the SpongeForge coremod on Forge. Other implementations of theSpongeAPI, such as SpongeVanilla, do not include these commands.




/forge tps

Display ticks per second for each world.


/forge track

Enable tile entity tracking.


For any Forge mods that use the vanilla command API, command permissions are provided in the form<modid>.command.<commandname>.


There are several commands built-in to vanilla Minecraft that are also available on servers powered by Sponge. The listbelow is not comprehensive, but it includes the most commonly used commands. These commands are available to playerswith operator status (or the correct permission node). In general, permissions for vanilla Minecraft commands on aSponge server are of the structure minecraft.command.<command>, as shown below.





Ban a player.



Ban a player’s IP address.



View all banned players.



Clear an inventory.



Remove OP from a player.



Set the game difficulty.



Set the gamemode of a player.



Set a gamerule.



Give an item to a player.



Kill a player or entity.



Give Operator status to a player.



Remove a player from the ban list.



Save the server.


Disable automatic server saving.


Enable automatic server saving.


Define how long players can be idlebefore getting kicked.



Set the spawnpoint for the world.



Stop the server.



Toggle between sunny and rainy weather.



Teleport players and entities.


Set the weather to a defined condition.


Manage the server whitelist.



Manage the world border.


Sponge also creates permissions for these Minecraft features:


These permissions use the actual name of the commandblock, which is normally @ by default.

There are also extra permissions managing the access to the server:

  • Treat the user as whitelisted: minecraft.login.bypass-whitelist

  • Allow this user to bypass the server’s player limit: minecraft.login.bypass-player-limit


Sponge offers improved multi-world support, such as per-world world borders. By default, Sponge only changes theworld border (or other world options) of the world the player is currently in. The vanilla behavior of setting itfor all worlds can be restored using the global configuration and settingsponge.commands.multi-world-patches.worldborder (or the corresponding entry) to false. Seeglobal.conf for details. Sponge assumes that multi-world plugins alsoprovide optimized configuration commands for those options and thus does not provide its own variants.

Player Commands

The following commands are available as part of vanilla Minecraft to players without operator status.





View information on commands used on theserver, by default the Sponge commandwill be used instead!


Tell everyone what you are doing.


Display a message to everyone (or, ifusing selectors, specific players).



Privately message another player.


A full list of vanilla commands can be found at: Permissionsfor vanilla Minecraft commands on a Sponge server are of the structure minecraft.command.<command>.

Command Features

Sponge and most Sponge plugins support additional command features such as auto completion and hoverable text. The imagebelow shows the output using the /sponge plugins command (yellow box). The elements in that list can be hovered overto get addition information such as the current version number (red box). Some elements in the example below also haveadditional actions bound to them. For example, the plugin entries in that list can be clicked to show more detailedinformation (purple box) about that plugin. This is equivalent to sending the /sponge plugins <pluginId> command.The auto completion can be triggered by pressing tab. Entering /sponge plugins  (with a trailing space) and thenpressing tab will show a list of possible values (turquoise box) that can be used in that context. Pressing tab againwill iterate the possibilities, if any. Theoretically it is possible to write most commands by pressing only tab andspace (and maybe the first letter of each segment).

Commands and Permissions — Sponge 8.0.0 documentation (1)


If you are a plugin author and you want to use hoverable text and text actions in your plugin, then head over to ourText documentation.

Top Articles

Latest Posts

Article information

Author: Kareem Mueller DO

Last Updated: 01/01/2023

Views: 5987

Rating: 4.6 / 5 (66 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Kareem Mueller DO

Birthday: 1997-01-04

Address: Apt. 156 12935 Runolfsdottir Mission, Greenfort, MN 74384-6749

Phone: +16704982844747

Job: Corporate Administration Planner

Hobby: Mountain biking, Jewelry making, Stone skipping, Lacemaking, Knife making, Scrapbooking, Letterboxing

Introduction: My name is Kareem Mueller DO, I am a vivacious, super, thoughtful, excited, handsome, beautiful, combative person who loves writing and wants to share my knowledge and understanding with you.