Marketplace/Mini-games/Grace Period

Grace Period

minecraftFreev1.0.0

Description

Core Commands

/grace start <minutes> <hours>

Starts a grace period for the specified time.

Accept both minutes and hours and combine them into a total duration.

When activated:

Display a large title announcement on all players’ screens:

Title: "Grace Period Enabled"

Subtitle: show the duration (e.g., "Duration: 1h 30m")

Play a global sound effect (e.g., Ender Dragon growl or level-up sound).

Broadcast a chat message announcing the grace period start.

/grace status

Sends a message only to the player who ran the command:

Remaining grace time formatted as:

Days, hours, and minutes (e.g., "0d 1h 12m remaining").

If no grace period is active:

"No active grace period."

/grace stop

Immediately ends the grace period.

Broadcast a message:

"Grace Period has ended!"

Show a title on all players’ screens:

Title: "Grace Period Ended"

Play a global sound.

Gameplay Behavior

While grace period is active:

Disable PvP damage between players.

After it ends:

PvP is automatically re-enabled.

Timed Warning Announcements

The plugin should automatically broadcast warnings at these remaining times:

1 hour remaining

30 minutes remaining

10 minutes remaining

5 minutes remaining

1 minute remaining

Each warning should:

Send a chat broadcast (e.g., "Grace Period ends in 10 minutes!")

Optionally display a title or action bar message

Play a notification sound

Additional Requirements

Plugin should:

Persist remaining grace time across server restarts.

Prevent starting a new grace period if one is already active.

Format time cleanly into days, hours, and minutes.

Include permissions:

grace.start

grace.stop

grace.status

Code should be clean, modular, and well-commented.

Nice-to-Have (Optional Enhancements)

Config file to customize:

Messages

Sounds

Titles

Boss bar countdown showing remaining time.

Action bar countdown updates.

Reviews (0)

No reviews yet

Be the first to leave a review!

Vihan Mousavi

Seller

Vihan Mousavi

0

downloads

Versionv1.0.0
Platformminecraft
Typepaper
Minecraft VersionMC 1.21
CategoryMinecraft Plugins > Mini-games
Published on20/03/2026
Last update21/04/2026
Free