NPresents-Fork

NPresents-Fork

Gifts Plugin with interesting funcitons

32 downloads

🐣 NPresents Fork β€” Easter Edition v2.0

Extended seasonal event plugin for Minecraft servers. Fork of NPresents by n1zamu β€” with 19 animations, new commands, localization and bug fixes.


πŸ“ Description

NPresents Fork is a plugin for organizing seasonal collection events on your server. Admins hide custom player heads (eggs, pumpkins, presents β€” texture is configurable) around the map, and players search for them. Breaking a head triggers a reward command, a fancy animation, and tracks progress. Collect all of them to earn a final prize.

Works for any holiday β€” Easter, Halloween, New Year, server anniversary β€” just change the head texture and animation type in the config.


🎬 19 Collection Animations

The main feature of this fork. Each animation is a unique combination of particles, sounds, and ArmorStand movement that plays when a player collects a present. Set it with one line in config:

animationType: "EGG_CRACK"
Theme Animations
Universal (4) RISE_AND_EXPLODE Β· SPIRAL_UP Β· FIREWORK_BURST Β· BOUNCE_FADE
Halloween (5) GHOST_FLOAT Β· SOUL_DRAIN Β· BAT_SWARM Β· WITCH_CAULDRON Β· PUMPKIN_SMASH
New Year (5) CONFETTI_POP Β· SNOWFLAKE_RISE Β· CHAMPAGNE_BURST Β· CLOCK_COUNTDOWN Β· STAR_TRAIL
Easter (5) EGG_CRACK Β· RAINBOW_ARC Β· BUNNY_HOP Β· FLOWER_BLOOM Β· SPRING_BREEZE

Preview any animation in-game: /nPresent test BUNNY_HOP


πŸ†• 5 New Commands

In addition to the original give, edit, clear, reload:

Command Description
/nPresent setcoords <cmd> Enter a reward command, then right-click any block to place a present there
/nPresent search [radius] [minY] [maxY] Async search for all placed presents in a radius
/nPresent test [type/list/off] Admin test mode β€” break presents to preview animations, no rewards given
/nPresent list Show all placed presents with coordinates
/nPresent basehead Display the texture of the held skull and compare it with config

🌍 Localization

All messages are stored in separate language files. Russian and English included out of the box. Switch with one line:

language: "en"  # or "ru"

Files are in plugins/NPresents/lang/ β€” edit them or add your own language.


πŸ›‘οΈ Fixes & Improvements

  • SQL injection fixed β€” all queries now use PreparedStatement (original concatenated strings)
  • Null-safety β€” plugin won't crash if world is unloaded or texture is missing
  • ConcurrentHashMap for animations β€” no concurrent modification errors
  • Marker ArmorStand β€” zero hitbox, doesn't interfere with players
  • Placement feedback β€” coordinates shown in chat when a present is placed
  • Admin RMB info β€” right-click any head with admin permission to see its texture & bound command
  • Command aliases β€” /npresent, /np, /egg
  • api-version updated to 1.16 (was 1.13)

πŸ“‹ Commands & Permissions

Command Permission
/nPresent give <player> <command> nPresent.give
/nPresent setcoords <command> nPresent.give
/nPresent edit nPresent.edit
/nPresent clear nPresent.clear
/nPresent reload nPresent.reload
/nPresent search [r] [minY] [maxY] nPresent.search
/nPresent test [type/list/off] nPresent.test
/nPresent list nPresent.list
/nPresent basehead nPresent.basehead

nPresent.admin grants access to all commands.


βš™οΈ Requirements

  • Minecraft 1.16+
  • Spigot / Paper
  • Java 8+
  • SQLite (default) or YAML database

πŸ“¦ Installation

  1. Download the .jar from the files section
  2. Place it in your server's plugins folder
  3. Restart the server
  4. Configure config.yml β€” choose animation type, language, head texture
  5. Place presents using give or setcoords

Based on NPresents by n1zamu Β· MIT License



πŸ‡·πŸ‡Ί ОписаниС Π½Π° русском

NPresents Fork β€” Easter Edition v2.0

Π Π°ΡΡˆΠΈΡ€Π΅Π½Π½Ρ‹ΠΉ ΠΏΠ»Π°Π³ΠΈΠ½ для сСзонных ΠΈΠ²Π΅Π½Ρ‚ΠΎΠ² ΠΏΠΎ сбору ΠΏΠΎΠ΄Π°Ρ€ΠΊΠΎΠ². Π€ΠΎΡ€ΠΊ NPresents ΠΎΡ‚ n1zamu.

Админ прячСт Π½Π° ΠΊΠ°Ρ€Ρ‚Π΅ ΡΠΏΠ΅Ρ†ΠΈΠ°Π»ΡŒΠ½Ρ‹Π΅ Π³ΠΎΠ»ΠΎΠ²Ρ‹ (ΠΏΠΎΠ΄Π°Ρ€ΠΊΠΈ, яйца, Ρ‚Ρ‹ΠΊΠ²Ρ‹ β€” тСкстура настраиваСтся), ΠΈΠ³Ρ€ΠΎΠΊΠΈ ΠΈΡ‰ΡƒΡ‚ ΠΈ Π»ΠΎΠΌΠ°ΡŽΡ‚ ΠΈΡ…, получая Π½Π°Π³Ρ€Π°Π΄Ρ‹. ΠšΡ‚ΠΎ собСрёт всС β€” ΠΏΠΎΠ»ΡƒΡ‡ΠΈΡ‚ Ρ„ΠΈΠ½Π°Π»ΡŒΠ½Ρ‹ΠΉ ΠΏΡ€ΠΈΠ·.

Π§Ρ‚ΠΎ Π½ΠΎΠ²ΠΎΠ³ΠΎ Π² Ρ„ΠΎΡ€ΠΊΠ΅

19 Π°Π½ΠΈΠΌΠ°Ρ†ΠΈΠΉ ΠΏΡ€ΠΈ сборС (Π² ΠΎΡ€ΠΈΠ³ΠΈΠ½Π°Π»Π΅ Π±Ρ‹Π»Π° 1) β€” Ρ‚Π΅ΠΌΠ°Ρ‚ΠΈΠΊΠΈ: Π₯эллоуин, Новый Π“ΠΎΠ΄, ΠŸΠ°ΡΡ…Π°, ΡƒΠ½ΠΈΠ²Π΅Ρ€ΡΠ°Π»ΡŒΠ½Ρ‹Π΅. КаТдая анимация β€” ΡƒΠ½ΠΈΠΊΠ°Π»ΡŒΠ½Ρ‹Π΅ ΠΏΠ°Ρ€Ρ‚ΠΈΠΊΠ»Ρ‹, Π·Π²ΡƒΠΊΠΈ, двиТСния. НастраиваСтся ΠΎΠ΄Π½ΠΎΠΉ строкой: animationType: "EGG_CRACK"

5 Π½ΠΎΠ²Ρ‹Ρ… ΠΊΠΎΠΌΠ°Π½Π΄:

  • /nPresent setcoords <cmd> β€” Π²Π²Ρ‘Π» ΠΊΠΎΠΌΠ°Π½Π΄Ρƒ β†’ ПКМ ΠΏΠΎ Π±Π»ΠΎΠΊΡƒ β†’ ΠΏΠΎΠ΄Π°Ρ€ΠΎΠΊ установлСн
  • /nPresent search [радиус] [minY] [maxY] β€” асинхронный поиск ΠΏΠΎΠ΄Π°Ρ€ΠΊΠΎΠ² Π² радиусС
  • /nPresent test [Ρ‚ΠΈΠΏ/list/off] β€” тСст Π°Π½ΠΈΠΌΠ°Ρ†ΠΈΠΉ Π±Π΅Π· Π²Ρ‹Π΄Π°Ρ‡ΠΈ Π½Π°Π³Ρ€Π°Π΄
  • /nPresent list β€” список всСх ΠΏΠΎΠ΄Π°Ρ€ΠΊΠΎΠ² с ΠΊΠΎΠΎΡ€Π΄ΠΈΠ½Π°Ρ‚Π°ΠΌΠΈ
  • /nPresent basehead β€” тСкстура Π³ΠΎΠ»ΠΎΠ²Ρ‹ Π² Ρ€ΡƒΠΊΠ΅ + сравнСниС с ΠΊΠΎΠ½Ρ„ΠΈΠ³ΠΎΠΌ

Локализация β€” русский ΠΈ английский Π² ΠΊΠΎΠΌΠΏΠ»Π΅ΠΊΡ‚Π΅. ΠŸΠ΅Ρ€Π΅ΠΊΠ»ΡŽΡ‡Π΅Π½ΠΈΠ΅: language: "ru"

Π˜ΡΠΏΡ€Π°Π²Π»Π΅Π½ΠΈΡ:

  • SQL-ΠΈΠ½ΡŠΠ΅ΠΊΡ†ΠΈΡ исправлСна (PreparedStatement вмСсто ΠΊΠΎΠ½ΠΊΠ°Ρ‚Π΅Π½Π°Ρ†ΠΈΠΈ строк)
  • Null-safety, ConcurrentHashMap для Π°Π½ΠΈΠΌΠ°Ρ†ΠΈΠΉ
  • Marker ArmorStand (Π½ΡƒΠ»Π΅Π²ΠΎΠΉ хитбокс)
  • Админ-ΠΈΠ½Ρ„ΠΎ ΠΏΠΎ ПКМ, увСдомлСния ΠΏΡ€ΠΈ установкС
  • Алиасы: /npresent, /np, /egg

Π’ΠΈΠΏΡ‹ Π°Π½ΠΈΠΌΠ°Ρ†ΠΈΠΉ

Π’Π΅ΠΌΠ° Анимации
Π£Π½ΠΈΠ²Π΅Ρ€ΡΠ°Π»ΡŒΠ½Ρ‹Π΅ (4) RISE_AND_EXPLODE, SPIRAL_UP, FIREWORK_BURST, BOUNCE_FADE
Π₯эллоуин (5) GHOST_FLOAT, SOUL_DRAIN, BAT_SWARM, WITCH_CAULDRON, PUMPKIN_SMASH
Новый Π“ΠΎΠ΄ (5) CONFETTI_POP, SNOWFLAKE_RISE, CHAMPAGNE_BURST, CLOCK_COUNTDOWN, STAR_TRAIL
ΠŸΠ°ΡΡ…Π° (5) EGG_CRACK, RAINBOW_ARC, BUNNY_HOP, FLOWER_BLOOM, SPRING_BREEZE

Π‘ΠΎΠ²ΠΌΠ΅ΡΡ‚ΠΈΠΌΠΎΡΡ‚ΡŒ

  • Minecraft 1.16+
  • Spigot / Paper
  • Java 8+
  • SQLite ΠΈΠ»ΠΈ YAML

Основано Π½Π° NPresents ΠΎΡ‚ n1zamu Β· ЛицСнзия MIT

No gallery available for this project.