Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Using CoreProtect: Difference between revisions

From DemocracyCraft Wiki
Scassany (talk | contribs)
First iteration of coreprotect page, will add mod info to this too
 
Scassany (talk | contribs)
moved CoreProtect moderator guide to this page, will clean up
 
(2 intermediate revisions by the same user not shown)
Line 10: Line 10:
==== Additional Information ====
==== Additional Information ====
Here is a [https://www.youtube.com/watch?v=JwijCiueZ3Y video tutorial] that goes other aspects of CoreProtect that are not covered within this guide.
Here is a [https://www.youtube.com/watch?v=JwijCiueZ3Y video tutorial] that goes other aspects of CoreProtect that are not covered within this guide.
==== Searching for Items ====
We use CoreProtect to log all of block interactions. This allows us to lookup certain interactions.
===== Commands =====
* <code>/co l; /co lookup</code> - used to lookup specific block data.
* <code>/co l u:&#x3C;user&#x3E; t:&#x3C;time&#x3E; r:&#x3C;radius&#x3E; a:&#x3C;action&#x3E; b:&#x3C;blocks&#x3E; e:&#x3C;exclude&#x3E;</code>
==== Using CoreProtect Parameters ====
These can be used in almost every CoreProtect command.
==== <code>u:&#x3C;user&#x3E;</code> ====
* Specify a user to rollback. Example: u:Technofied
==== <code>t:&#x3C;time&#x3E;</code> ====
Specify the amount of time to rollback. You can specify weeks, days, hours, minutes and seconds. '''Example:''' t:2w,5d,7h,2m,10s
You can pick and choose time amounts. '''Example:''' t:5d2h You can also use decimals '''Example:''' t:2.50h (2 and a half hours)
==== <code>r:&#x3C;radius&#x3E;</code> ====
Specify a radius. You can use this to only rollback blocks near you. You can specify a number (i.e. <code>r:5</code>), a world (i.e. <code>r:#world_the_end</code>), a global rollback (<code>r:#global</code>), or a WorldEdit selection (<code>r:#worldedit</code> or <code>r:#we</code>)
For example, the following would only rollback damage within 10 blocks of where you are standing: <code>r:10</code>
==== <code>a:&#x3C;action&#x3E;</code> ====
Restrict the rollback to a certain action. '''Example:''' If you wanted to only rollback blocks placed, you would use <code>a:+block</code>.
'''Here’s a list of all the actions:''' 
* <code>a:block</code> - blocks placed/broken
* <code>a:+block</code> - blocks placed
* <code>a:-block</code> - blocks broken
* <code>a:chat</code> - messages sent in chat
* <code>a:click</code> - player interactions
* <code>a:command</code> - commands used
* <code>a:container</code> - items taken from or put in chests
* <code>a:+container</code> - items put in chests
* <code>a:-container</code> - items taken from chests
* <code>a:inventory</code> - items dropped or picked up by players
* <code>a:+inventory</code> - items picked up by players
* <code>a:-inventory</code> - items dropped by players
* <code>a:item</code> - items dropped, picked up, taken from, or put in chests
* <code>a:+item</code> - items picked up or put in chests
* <code>a:-item</code> - items dropped or taken from chests
* <code>a:kill</code> - mobs/animals killed
* <code>a:session</code> - player logins/logouts
* <code>a:+session</code> - player logins
* <code>a:-session</code> - player logouts
* <code>a:sign</code> - messages written on signs
* <code>a:username</code> - username changes
==== <code>b:&#x3C;blocks&#x3E;</code> ====
Restrict the rollback to certain block types. For example, if you wanted to only rollback stone, you would use b:1 You can specify multiple items, such as b:1,5,7
==== <code>e:&#x3C;exclude&#x3E;</code> ====
Exclude certain block types from the rollback.
'''Example:''' If you don’t want TNT to come back during a rollback, you would type e:46
==== <code>#&#x3C;hashtag&#x3E;</code> ====
Add a hashtag to the end of your command to perform additional actions.
'''Example:''' To perform a rollback preview, you would use <code>#preview</code> 
'''Here is a list of all available hashtags'''
* <code>#preview</code> - preview a rollback/restore
* <code>#verbose</code> - display additional information during a rollback/restore
* <code>#silent</code> - display minimal information during a rollback/restore
{{Staff}}
[[Category:Staff]]

Latest revision as of 05:46, 13 March 2026

Commands

  • /co help - help command; displays all commands.
  • /co rb; /co rollback - rollback block data based on certain parameters.
    • Usage: /co rb u:<user> t:<time> r:<radius> a:<action> b:<blocks> e:<exclude>
  • /co undo - revert a rollback.

You can see a list of parameters for these commands here.

Additional Information

Here is a video tutorial that goes other aspects of CoreProtect that are not covered within this guide.

Searching for Items

We use CoreProtect to log all of block interactions. This allows us to lookup certain interactions.

Commands
  • /co l; /co lookup - used to lookup specific block data.
  • /co l u:<user> t:<time> r:<radius> a:<action> b:<blocks> e:<exclude>

Using CoreProtect Parameters

These can be used in almost every CoreProtect command.

u:<user>

  • Specify a user to rollback. Example: u:Technofied

t:<time>

Specify the amount of time to rollback. You can specify weeks, days, hours, minutes and seconds. Example: t:2w,5d,7h,2m,10s

You can pick and choose time amounts. Example: t:5d2h You can also use decimals Example: t:2.50h (2 and a half hours)

r:<radius>

Specify a radius. You can use this to only rollback blocks near you. You can specify a number (i.e. r:5), a world (i.e. r:#world_the_end), a global rollback (r:#global), or a WorldEdit selection (r:#worldedit or r:#we)

For example, the following would only rollback damage within 10 blocks of where you are standing: r:10

a:<action>

Restrict the rollback to a certain action. Example: If you wanted to only rollback blocks placed, you would use a:+block.

Here’s a list of all the actions:

  • a:block - blocks placed/broken
  • a:+block - blocks placed
  • a:-block - blocks broken
  • a:chat - messages sent in chat
  • a:click - player interactions
  • a:command - commands used
  • a:container - items taken from or put in chests
  • a:+container - items put in chests
  • a:-container - items taken from chests
  • a:inventory - items dropped or picked up by players
  • a:+inventory - items picked up by players
  • a:-inventory - items dropped by players
  • a:item - items dropped, picked up, taken from, or put in chests
  • a:+item - items picked up or put in chests
  • a:-item - items dropped or taken from chests
  • a:kill - mobs/animals killed
  • a:session - player logins/logouts
  • a:+session - player logins
  • a:-session - player logouts
  • a:sign - messages written on signs
  • a:username - username changes

b:<blocks>

Restrict the rollback to certain block types. For example, if you wanted to only rollback stone, you would use b:1 You can specify multiple items, such as b:1,5,7

e:<exclude>

Exclude certain block types from the rollback.

Example: If you don’t want TNT to come back during a rollback, you would type e:46

#<hashtag>

Add a hashtag to the end of your command to perform additional actions.

Example: To perform a rollback preview, you would use #preview

Here is a list of all available hashtags

  • #preview - preview a rollback/restore
  • #verbose - display additional information during a rollback/restore
  • #silent - display minimal information during a rollback/restore