Beginner Protection
New players cannot fight or be attacked for their first hour, how the time is counted, and how to turn it off in a region.
A player who joins the server for the first time is protected for protectionTimeMinutes, 60 by
default. While protected they cannot hit other players and other players cannot hit them, so they
have time to settle in. File: configs/BeginnerGuard.yml.
How it works
| Topic | Behaviour |
|---|---|
| Who gets it | Only a player joining the server for the very first time. Players who joined before the plugin was installed get none |
| How time is counted | In real time from the first join. The end is stored in the database, so time passes while the player is offline too |
| A protected player hits someone | The hit is cancelled and they are told they are protected |
| Someone hits a protected player | The hit is cancelled and the attacker is told the player is protected |
| Projectiles | Count the same as melee hits |
| Combat tag | A cancelled hit tags nobody |
| When it ends | Silently. The expired message is shown the next time the player joins |
The player sees how much is left with /beginner, and can end it at once with /beginner cancel,
for example to join a fight. Staff give protection with /beginner give <player> <minutes>; it
replaces whatever the player had.
BeginnerGuard.yml
| Key | Default | Meaning |
|---|---|---|
enabled | true | Turns the module on or off |
protectionTimeMinutes | 60 | Minutes of protection for new players |
preventProtectedAttacking | true | Protected players cannot hit others |
preventProtectedBeingAttacked | true | Others cannot hit protected players |
cacheDurationMinutes | 10 | How long a player's protection is kept in memory after they leave, so a quick rejoin does not read the database |
protectionActiveMessage | You are protected for another {time}. | On join and for /beginner |
protectionExpiredMessage | "Your beginner protection has expired." | On the first join after it ended |
pvpBlockedAttackerMessage | "You cannot attack while you are protected." | To a protected player who attacks |
pvpBlockedTargetMessage | {player} is protected and cannot be attacked. | To someone who hits a protected player |
protectionAddedMessage | Added protection to {player} for {time}. | To staff after /beginner give |
protectionCancelledMessage | "Your protection has been cancelled." | After /beginner cancel |
{time} is written with the time units of Core.yml, see
Core and hooks.
With only preventProtectedBeingAttacked on, new players can hit others but cannot be hit back,
which most servers do not want. Keep both on, or both off.
Turning it off in a region
With WorldGuard, the flag beginner-protection set to deny on a region turns protection off there:
inside it, protected players can hit and be hit like anyone else. It is checked for both the
attacker's and the victim's position.
/rg flag arena beginner-protection deny
Use it for arenas and event areas, so a new player who walks in can take part.
Related: Combat Tag, Commands
Was this page helpful?