DUXPLIMA Documentation

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

TopicBehaviour
Who gets itOnly a player joining the server for the very first time. Players who joined before the plugin was installed get none
How time is countedIn 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 someoneThe hit is cancelled and they are told they are protected
Someone hits a protected playerThe hit is cancelled and the attacker is told the player is protected
ProjectilesCount the same as melee hits
Combat tagA cancelled hit tags nobody
When it endsSilently. 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

KeyDefaultMeaning
enabledtrueTurns the module on or off
protectionTimeMinutes60Minutes of protection for new players
preventProtectedAttackingtrueProtected players cannot hit others
preventProtectedBeingAttackedtrueOthers cannot hit protected players
cacheDurationMinutes10How long a player's protection is kept in memory after they leave, so a quick rejoin does not read the database
protectionActiveMessageYou 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
protectionAddedMessageAdded 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