From b4e9f52022a7323f1e945e774b8ac892c0c16706 Mon Sep 17 00:00:00 2001 From: murdified <85693333+murdified@users.noreply.github.com> Date: Tue, 13 Jul 2021 21:25:22 -0400 Subject: [PATCH] Start migration of docs from MineRealm to the docs site (#28) * Migrate commands to MkDocs and update MkDocs version * Update index page * Remove mkdocs version number from requirements * restore readme file * Revert header style to one sided --- docs/commands.md | 235 +++++++++++++++++++++++++++++++++++++++++++++++ docs/config.md | 7 +- docs/index.md | 5 +- mkdocs.yml | 7 +- requirements.txt | 2 +- 5 files changed, 249 insertions(+), 7 deletions(-) create mode 100644 docs/commands.md diff --git a/docs/commands.md b/docs/commands.md new file mode 100644 index 0000000..cb52ba8 --- /dev/null +++ b/docs/commands.md @@ -0,0 +1,235 @@ +# Commands + +You can access the commands using either `/coreprotect` or it's aliases `/core` or `/co`. + +## Command Overview + +| Command | Description | +| --- | --- | +| [help](#help) | Display a list of commands | +| [inspect](#inspect) | Toggle the inspector | +| [rollback](#rollback) | Rollback block data | +| [restore](#restore) | Restore block data | +| [lookup](#lookup) | Advanced block data lookup | +| [purge](#purge) | Delete old block data | +| [reload](#reload) | Reload the configuration file | +| [status](#status) | View the plugin status | +| [near](#near) | Alias for lookup with a radius of 5 | +| [undo](#undo) | Revert a rollback/restore | + +## Commands Detailed + +### help + +Usage: +`/co help` + +Displays the list of available commands + +Example Output: + +```text +----- CoreProtect Help ----- +/co help - Display more info for that command. +/co inspect - Turns the block inspector on or off. +/co rollback - Rollback block data. +/co restore - Restore block data. +/co lookup - Advanced block data lookup. +/co purge - Delete old block data. +/co reload - Reloads the configuration file. +/co status - Displays the plugin status. +``` + +### inspect + +Usage: +`/co inspect` + +Alias: `/co i` + +Enables the in-game inspector. Once activated, right-click (use) button on blocks to get detailed history of that specific block. Run the command again to return your controls to normal. + +### lookup + +Usage: +`/co lookup ` See: [Filter Syntax](#filter-syntax) + +Alias: `/co l` + +Search through block data using parameters from filter syntax. + +#### Pagination + +If multiple pages are returned, use the command `/co lookup ` to switch pages. +To change the number of lines displayed on a page, use the command `/co lookup :<# of lines>`. + +Example: `/co l 1:10` will return 10 lines of data, starting at the first page. + +### rollback + +Usage: +`/co rollback ` See: [Filter Syntax](#filter-syntax) + +Alias: `/co rb` + +Undo all block data which matches the filter. + +### restore + +`/co restore ` See: [Filter Syntax](#filter-syntax) + +Alias `/co rs` + +Restoring can be used to undo rollbacks. This will playback all block data which matches the filter that may have been previously rolled back. + +### purge + +`/co purge t: