NewbieGuardplus

NewbieGuardplus

Temporary PvP protection for new players

37 downloads

new

πŸ›‘οΈ NewbieGuard

Temporary PvP protection for new players, built for Folia.

Folia Β· Java 21+ Β· Adventure boss bar


New players get a head start: a configurable protection window the moment they first join, with a live boss bar counting down the time left. The countdown pauses while they're offline, and protection drops automatically the moment they throw the first punch.

Built specifically for Folia β€” it uses the region and entity schedulers throughout and never touches the legacy BukkitScheduler.


✨ Features

  • 🧍 First-join protection β€” new players are shielded for a configurable duration (default 60 minutes).
  • πŸ“Š Live boss bar β€” counts down every second and shifts colour as time runs low: 🟒 green β†’ 🟑 yellow β†’ πŸ”΄ red.
  • ⏸️ Offline-safe β€” the timer only ticks while the player is online; time offline is never deducted.
  • 🚫 PvP shield β€” incoming attacks on a protected player are cancelled, and the attacker gets a short, spam-protected notice.
  • βš”οΈ Fair play β€” if a protected player strikes someone first, their own protection is removed (configurable).
  • πŸ”‘ Staff bypass β€” newbie.bypass lets staff hit protected players for testing.
  • πŸ› οΈ Manual control β€” grant or remove protection at any time with commands.
  • πŸ‘₯ New players only β€” returning players are never protected.

πŸ’¬ Commands

Command Description Permission
/newbie check [player] Show remaining protection time newbie.check (self) Β· newbie.admin (others)
/newbie grant <player> [minutes] Grant protection to an online player newbie.admin
/newbie remove <player> Remove a player's protection newbie.admin

πŸ” Permissions

Permission Description Default
newbie.bypass Attack protected players op
newbie.check Check your own remaining time everyone
newbie.admin Grant / remove protection, check others op

βš™οΈ Configuration

protection-duration-minutes: 60
remove-on-attack: true
bypass-permission: "newbie.bypass"

bossbar:
  green-threshold-minutes: 10
  yellow-threshold-minutes: 5

messages:
  protection-start: "&aYou are protected from PvP for {duration} minutes"
  protection-expired: "&eYour PvP protection has expired"
  protection-removed-attack: "&cYou attacked another player β€” your protection has been removed"
  blocked-attack: "&cThis player is still under new-player protection and cannot be attacked"
  bossbar-format: "New Player PvP Protection β€” Time left {time}"

πŸ’‘ The boss bar supports {time}, {minutes} and {seconds} placeholders. Chat messages support legacy & colour codes.


πŸ“¦ Requirements

Server Folia
Java 21 or newer

πŸ“ Notes

  • Protection is stored in each player's persistent data, so it survives restarts and rejoins.
  • Players who joined before the plugin was installed are not protected β€” use /newbie grant to protect them manually.

Lightweight, no dependencies, and Folia-native.