D

Welcome to [SMP Name]

Subtitle:

Grace Period Started!

Chat Message:

Welcome to [SMP Name]!

Grace Period has started.

PvP is disabled for the next [X] minutes.

Good luck and have fun!

Or a shorter version:

Screen:

[ SMP Name ] Grace Period Started

Chat:

[Server] Grace Period is now active for [X] minutes. PvP is disabled.

Replace [SMP Name] with your server name and [X] with the grace period duration (for example, 10 minutes).

Server name Health mc

Here are the messages customized for your server Health MC:

On-Screen Title

HEALTH MC

Subtitle

Grace Period Started!

Chat Message

§aWelcome to §lHEALTH MC§r§a! §eGrace Period has started. §cPvP is disabled for the next 10 minutes. §7Good luck and have fun!

Or a cleaner version:

Title

HEALTH MC

Subtitle

Survive. Build. Conquer.

Chat

[Health MC] Grace Period is now

Kodari AI
KodariJun 30 at 6:03 pm 1
HealthMCGracePeriod
Grace Period plugin for Health MC that disables PvP for a configurable duration after server start or on first player join. Displays configurable title, subtitle, and chat announcements. Sends remaining-time reminders to joining players. Includes admin commands to start, stop, check status, and reload the config. Fully configurable messages with color code support.
Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
8 411
src/main/java/com/healthmc/graceperiod/GracePeriodPlugin.java
package com.healthmc.graceperiod;

import com.healthmc.graceperiod.commands.GraceCommand;
import com.healthmc.graceperiod.listeners.PlayerJoinListener;
import com.healthmc.graceperiod.listeners.PvPListener;

import org.bukkit.plugin.java.JavaPlugin;

public class GracePeriodPlugin extends JavaPlugin {

    private GracePeriodManager manager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        getConfig().options().copyDefaults(true);
        saveConfig();

        this.manager = new GracePeriodManager(this);

        getServer().getPluginManager().registerEvents(new PvPListener(manager), this);
        getServer().getPluginManager().registerEvents(new PlayerJoinListener(manager, this), this);

        getCommand("grace").setExecutor(new GraceCommand(manager, this));

        if (manager.shouldAutoStart()) {
            getServer().getScheduler().runTaskLater(this, manager::start, 40L);
        }
    }

    @Override
    public void onDisable() {
        if (manager != null) {
            manager.stop();
        }
    }

    public GracePeriodManager getGraceManager() {
        return manager;
    }
}