PGMDev / PGM

The original PvP Game Manager for Minecraft
https://pgm.dev
GNU Affero General Public License v3.0
185 stars 89 forks source link

Pause Button #566

Open Picajoluna opened 4 years ago

Picajoluna commented 4 years ago

Something like a /pause command that completely freezes every aspect of the match would be really neat to have, and could prove especially useful in tournament situations.

Some actions that would need to be canceled or disabled (off the top of my head):

You'd also (of course) need to pause the match timer, as well as have a chat/bossbar message along the lines of "Game paused" (and translations strings etc). I suppose /resume (or doing /pause again) would be the way to resume the match.

A bonus would be implementing relogging for this as well. If a player disconnects and reconnects during the pause, they're placed exactly back where they were (upon doing /join). This feels like a decently big feature but I didn't see a ticket for it yet so I thought I'd make one.

Picajoluna commented 4 years ago

I just realized that the /freeze command handles player movement, projectiles, and block interaction. We'd still need to resolve the other points above too.

KingOfSquares commented 4 years ago

All Tickables does also need to be handled somehow

Pugzy commented 4 years ago

I think the pause in movement would be the big issue, anyone or anything moving would not maintain its velocity.