HyperScript
Docs

← All of the Docs HyperLog

Taking it back HyperLog

expressionrollback <who> for <duration>HyperLog

Take back what that player placed and broke in that time, everywhere

rollback everything for 10 minutes within 20 blocks of player
expressionrollback <who> for <duration> within <n> blocks of <location>HyperLog

Only around a place

rollback everything for 10 minutes within 20 blocks of player
expressionrollback everything for <duration> within <n> blocks of <location>HyperLog

Whoever did it. Everything can only be taken back around a place

rollback everything for 10 minutes within 20 blocks of player
expressionrestore <who> for <duration>HyperLog

Put back what a rollback took away. within and everything work as for rollback

restore arg.1 for arg.2
Guide and examples
command /undohere:
    permission: "staff.undo"
    trigger:
        rollback everything for 10 minutes within 20 blocks of player

command /redo <target> <time:duration>:
    permission: "staff.undo"
    trigger:
        restore arg.1 for arg.2
SyntaxEffect
rollback <who> for <duration>Take back what that player placed and broke in that time, everywhere
rollback <who> for <duration> within <n> blocks of <location>Only around a place
rollback everything for <duration> within <n> blocks of <location>Whoever did it. Everything can only be taken back around a place
restore <who> for <duration>Put back what a rollback took away. within and everything work as for rollback
  • A rollback is done by CoreProtect in the background and can take a while; the lines after it run at once. If it fails, the console says why, with the script and line.
  • It is about blocks that were placed and broken. Chests, kills and the rest of what CoreProtect can take back are left to its own /co rollback.
  • A rollback changes the world. Give the commands that do it a permission.