Skip to content

Commit

Permalink
Document missing commands and permissions. (#747)
Browse files Browse the repository at this point in the history
* Document missing commands and permissions. Fixes #618. Fixes #722

* Cleanup

* Fix comments

* Change title to disambiguate it from plugin commands in the search

* Rename to Commands and Permissions
  • Loading branch information
ST-DDT authored and Inscrutable committed Aug 25, 2018
1 parent 3295090 commit f78101e
Showing 1 changed file with 44 additions and 23 deletions.
67 changes: 44 additions & 23 deletions source/server/spongineer/commands.rst
@@ -1,6 +1,6 @@
========
Commands
========
========================
Commands and Permissions
========================

Commands are one method in which server operators can administer their server, and in which players can interact with
the server.
Expand All @@ -26,30 +26,43 @@ Sponge
The following commands are available to players with operator status (or the correct permission node) on servers powered
by Sponge.

====================== ======================================== =============================
Command Description Permission
====================== ======================================== =============================
/sponge audit Forces loading of unloaded classes to sponge.command.audit
====================== ========================================= =============================
Command Description Permission
====================== ========================================= =============================
/sponge audit Forces loading of unloaded classes to sponge.command.audit
enable mixin debugging.
/sponge chunks Prints out the chunk data for a world, a sponge.command.chunks
/sponge blockinfo Shows the type and the some additional sponge.command.blockinfo
information about the block you are
looking at.
/sponge chunks Prints out the chunk data for a world, a sponge.command.chunks
dimension, or globally.
/sponge config Alters a global, world, or a dimension sponge.command.config
/sponge config Alters a global, world, or a dimension sponge.command.config
config.
/sponge heap Dumps the JVM heap. sponge.command.heap
/sponge help View information on commands used on the sponge.command.help
server.
/sponge plugins Lists currently installed plugins. sponge.command.plugins
/sponge plugins reload Asks plugins to perform their own reload sponge.command.plugins.reload
/sponge entityinfo Shows the type and the some additional sponge.command.entityinfo
information about the entity you are
looking at.
/sponge heap Dumps the JVM heap. sponge.command.heap
/sponge mods Lists currently installed forge mods. sponge.command.mods
(SpongeForge only)
/sponge plugins Lists currently installed Sponge plugins. sponge.command.plugins
/sponge plugins reload Asks plugins to perform their own reload sponge.command.plugins.reload
procedures.
/sponge reload Reloads the global, world, or dimension sponge.command.reload
/sponge reload Reloads the global, world, or dimension sponge.command.reload
config.
/sponge save Saves the global, world, or dimension sponge.command.save
/sponge save Saves the global, world, or dimension sponge.command.save
config.
/sponge timings The main command for the timings module. sponge.command.timings
/sponge tps Display ticks per second for each world. sponge.command.tps
/sponge version Prints the Sponge/SpongeAPI versions to sponge.command.version
/sponge timings The main command for the timings module. sponge.command.timings
/sponge tps Display ticks per second for each world. sponge.command.tps
/sponge version Prints the Sponge/SpongeAPI versions to sponge.command.version
the console.
====================== ======================================== =============================
/sponge which Prints which plugin provided the command, sponge.command.which
it's aliases and alternatives.
/sponge:callback Internally used for callback actions on
``Text``\s (such as pagination). Not
intended to be invoked by hand.
/sponge:help View information on commands used on the sponge.command.help
server.
====================== ========================================= =============================

|
Expand Down Expand Up @@ -97,6 +110,11 @@ command or another plugin's command, you can restore the expected behavior or pr

This would alter the config of world named DIM1.

Sponge provides two permissions for debugging purposes:

* Allow using Sponge's block tracking message channel: ``sponge.debug.block-tracking``
* Allow hovering of command execution errors to get the stacktrace: ``sponge.debug.hover-stacktrace``

Timings
~~~~~~~

Expand Down Expand Up @@ -187,15 +205,18 @@ Command Description Permission

|
Sponge also creates a spawn-protection bypass permission, a force-gamemode bypass permission, and two permissions for
controlling the ability to edit commandblocks. Note that these permissions use the actual *name* of the commandblock,
which is normally ``@`` by default.
Sponge also creates permissions for these Minecraft features:

* Allow player to use the entity-selector in commands: ``minecraft.selector``
* Allow player to bypass spawn-protection in all worlds: ``minecraft.spawn-protection.override``
* Allow player to bypass force-gamemode in all worlds: ``minecraft.force-gamemode.override``
* Allow editing an ordinary commandblock of the given name: ``minecraft.commandblock.edit.block.<name>``
* Allow editing a minecart commandblock of the given name: ``minecraft.commandblock.edit.minecart.<name>``

.. note::

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``
Expand Down

0 comments on commit f78101e

Please sign in to comment.