PxEffect

PxEffect

Every 2 minutes letter chage random good & bad effect

23 downloads
2 followers

PxEffect Banner

Every player. Every two minutes. A random fate.

PXEffect automatically applies random positive or negative potion effects to every online player at a configurable interval β€” with XP-level scaling, live countdowns, rich statistics, and deep server integrations. Polished, performant, and production-ready.


Download on Modrinth Discord Source




Minecraft Platform Version Java License


πŸ“Έ Preview

🎬 Action Bar Countdown πŸŽ‰ Effect Notification πŸ“Š /pxeffect info
action bar notification pxeffect-info

πŸ’‘ Screenshots β€” install the plugin and share yours!



✨ What is PXEffect?

Imagine every player on your server is constantly one tick away from receiving a Speed boost β€” or a Wither curse. PXEffect makes chaos part of your server's DNA.

Every 2 minutes (fully configurable), each online player is handed a randomly selected potion effect. Higher XP levels? Stronger effects. The countdown ticks live in the action bar. The tension is real.

Whether you run a survival, minigame, RPG, or event server β€” PXEffect adds a layer of unpredictable energy that keeps players on their toes.



πŸš€ Core Features


🎲 Random Effect Engine

Randomly selects from all vanilla positive and negative potion effects every interval

  • βœ… Full pool of positive effects β€” Speed, Strength, Regeneration, Night Vision, Absorption, Luck, and more
  • βœ… Full pool of negative effects β€” Slowness, Weakness, Poison, Wither, Blindness, Levitation, and more
  • βœ… Toggle positive and negative categories independently
  • βœ… Customise which specific effects are in the pool via config.yml
  • βœ… Configurable effect duration in ticks

⚑ XP Level Scaling

Effect strength automatically scales with the player's XP level

πŸŽ“ XP Level πŸ’ͺ Effect Strength
Level 0 – 9 Level I
Level 10 – 19 Level II
Level 20 – 29 Level III
Level 30 – 39 Level IV
Level 40+ Level V

Fully customisable tiers in config.yml β€” set your own ranges and amplifiers.


⏱️ Live Action Bar Countdown

Players always know exactly when their next effect is coming

Next Effect: 01:59
Next Effect: 00:45
Next Effect: 00:03
  • πŸ”„ Updates every second in real time
  • 🎨 Fully customisable format with MiniMessage support
  • 🌈 Hex colours, gradients, and legacy & codes all supported
  • πŸ”˜ Can be toggled off per-player or globally

πŸ“£ Effect Notifications

When an effect lands, players are informed clearly and stylishly:

  • πŸ’¬ Chat message β€” shows effect name, level, and whether it's positive or negative
  • πŸ“‹ Title + Subtitle β€” dramatic on-screen announcement (configurable fade times)
  • πŸ”Š Custom sounds β€” different sounds for positive vs negative effects
  • ✨ Particle burst β€” visual particle effect at the player's location
  • 🎨 All messages fully customisable with MiniMessage

πŸ“Š Boss Bar Display (Optional)

An optional countdown boss bar at the top of the screen

  • Choose from all Bukkit boss bar colours and styles
  • Automatically fills and depletes as the timer counts down
  • Fully MiniMessage-formatted title
  • Enable/disable per-server in config

πŸ“ˆ Statistics System

Track everything that happens on your server

Stat Description
πŸ”’ Total Effects Every effect ever applied
πŸ’š Positive Effects Total positive effects given
❀️ Negative Effects Total negative effects given
πŸ† Most Common The effect given most frequently
  • Persisted to stats.yml across server restarts
  • Viewable via /pxeffect info
  • Exposed via PlaceholderAPI


πŸ›‘οΈ World & Region Control

worlds:
  blacklist:
    - lobby
    - creative_world
  per-world:
    survival: true
    minigames: false

worldguard:
  region-blacklist:
    - spawn
    - safe_zone
    - shop_area
  • 🌍 World blacklist β€” exclude specific worlds entirely
  • πŸ—ΊοΈ Per-world toggle β€” enable or disable on a world-by-world basis
  • πŸ”’ WorldGuard regions β€” players inside blacklisted regions are skipped


πŸ”Œ Integrations

Integration Status What it does
PlaceholderAPI βœ… Supported 7 custom %pxeffect_...% placeholders
πŸ›‘οΈ WorldGuard βœ… Supported Region blacklist
πŸ’° Vault βœ… Supported Permission API bridge
πŸ€ LuckPerms βœ… Supported Native Bukkit delegation
πŸ“Š bStats βœ… Built-in Anonymous usage metrics

πŸ“‹ PlaceholderAPI Placeholders

Placeholder Returns
%pxeffect_next_effect% Formatted countdown 01:45
%pxeffect_next_effect_sec% Raw seconds remaining
%pxeffect_total_effects% Total effects applied
%pxeffect_positive_effects% Positive effects count
%pxeffect_negative_effects% Negative effects count
%pxeffect_most_common% Most given effect name
%pxeffect_interval% Configured interval (seconds)


πŸ’» Commands

Command Description Permission
/pxeffect reload Hot-reload the entire plugin pxeffect.reload
/pxeffect info View stats, interval, and integration status pxeffect.use

Alias: /pxe



πŸ”‘ Permissions

Permission Default Description
pxeffect.use βœ… Everyone Receive effects + use /pxeffect
pxeffect.bypass ❌ Nobody Exempt from all effects
pxeffect.reload πŸ”§ OP Reload plugin configuration
pxeffect.admin πŸ”§ OP Full admin access


βš™οΈ Configuration Highlights

general:
  interval: 120             # Seconds between effects
  positive-effects-enabled: true
  negative-effects-enabled: true
  debug: false

action-bar:
  enabled: true
  format: "<gray>Next Effect: <gold>{time}"

xp-scaling:
  enabled: true
  tiers:
    - { min: 0,  max: 9,  amplifier: 0 }
    - { min: 10, max: 19, amplifier: 1 }
    - { min: 20, max: 29, amplifier: 2 }
    - { min: 30, max: 39, amplifier: 3 }
    - { min: 40, max: 999999, amplifier: 4 }

sounds:
  positive:
    sound: ENTITY_PLAYER_LEVELUP
    volume: 1.0
    pitch: 1.2
  negative:
    sound: ENTITY_WITHER_HURT
    volume: 0.8
    pitch: 0.8

πŸ“„ Full config with every option documented ships inside the plugin on first run.



⚑ Performance

PXEffect is engineered for 500+ concurrent players:

  • 🏎️ Single repeating task β€” one 1-second scheduler handles everything (cooldowns, action bar, boss bar, effect firing). Zero per-player tasks.
  • 🧡 Thread-safe statistics β€” AtomicLong counters, no locks needed
  • πŸ’Ύ Memory-efficient β€” ConcurrentHashMap for cooldown/bossbar state
  • ♻️ Hot-reload safe β€” scheduler shuts down cleanly before config reload, then restarts
  • πŸ“¦ Shaded bStats only β€” no unnecessary bundled libraries


πŸ“¦ Installation

1. Download PXEffect-1.0.0.jar
2. Drop it into your /plugins/ folder
3. Start or restart your server
4. Edit plugins/PXEffect/config.yml
5. Run /pxeffect reload

βœ… Compatible with Spigot 1.20.4+, Paper, and Purpur βœ… Java 17 required βœ… No required dependencies β€” all integrations are optional



πŸ—‚οΈ Changelog

v1.0.0 β€” Initial Release

  • πŸŽ‰ Full random effect engine with positive/negative pools
  • ⚑ XP level scaling (5 configurable tiers)
  • ⏱️ Live action bar countdown
  • πŸ“Š Boss bar display
  • πŸ“£ Title, subtitle, sound, and particle notifications
  • 🌍 World blacklist and per-world toggle
  • πŸ›‘οΈ WorldGuard region blacklist
  • πŸ“‹ PlaceholderAPI (7 placeholders)
  • πŸ’° Vault integration
  • πŸ“ˆ Statistics system with persistence
  • πŸ’Ύ Cooldown persistence across restarts
  • πŸ”„ Full hot-reload via /pxeffect reload
  • πŸ› Debug mode
  • πŸ“‘ bStats metrics
  • πŸ”” Update checker


🀝 Support & Community

Got a bug? Feature request? Just want to chat?

Discord: allay_gaming_x

Open an issue on GitHub or reach out on Discord β€” responses are fast!




πŸ‘€ About the Author

Pawan β€” Minecraft plugin developer passionate about performance, polish, and player experience.

PXEffect is built with care β€” every config option, every message, every integration is intentional.



πŸ’œ Discord Live Status

allay_gaming_x's Discord status


PXEffect v1.0.0 · Made with ❀️ by Pawan · MIT License

No gallery available for this project.