AutoReferee

AutoReferee

9.1k Downloads

Pause Function

Adohgg opened this issue ยท 0 comments

commented

A detailed pause function to pause a match when needed.

When /pause is executed...

  • Save player inventory
  • Freeze player in current position
  • Save hunger/health
  • Disallow the placement/removal of blocks
  • Disallow eating & drinking
  • Disallow modifying blocks such as chests and furnaces
  • Set all players to creative, removing mob aggro.

When /unpause is executed...

  • 5 second countdown
  • Restore player inventory (Done at last second of countdown)
  • Restore previous hunger/health stats (Done at last second of countdown)
  • Set players to survival (Done at last second of countdown)

This could be especially useful for tournament matches if there are server issues, or if a player has a connection issue. Not sure if all of this is possible or not, but definitely something to consider. It could save RMCT tournaments from many issues.