Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

InfuseSMP Reloaded (rewrite plan)

Goal: rebuild the Infuse SMP plugin from scratch as a Maven project. This README tracks features to re-implement and open questions.

Roadmap (start order)

  • Stage 1: Maven scaffold + config/messages loading + settings cache, PacketEvents bootstrap, PlaceholderAPI hook stubs, update checker skeleton.
  • Stage 2: Data model and persistence for player state (effects in slots, control mode, craft counts, cooldowns, trust list, first-time rewards) with migration plan from old EffectManager files.
  • Stage 3: Core commands and GUIs (/infuse, controls toggle, equip/swap, drains, sparks) plus brewing/recipe GUI and craft-limit UI interactions.
  • Stage 4: Implement each effect passives and sparks (base + augmented), cooldown/duration wiring, particles, action bar feedback; include extra effects flags (Apophis, Thief).
  • Stage 5: Trust-aware combat logic, packet-level behaviors (invis, thief, fire), PvE/PvP edge cases, join effects application, head drops, effect drops.
  • Stage 6: Messaging and broadcasts (game + optional Discord webhook), death message overrides, update checker polish.
  • Stage 7: Testing pass (unit for config/cooldowns, integration/manual scenarios), performance review, docs polish with Docusaurus + GitHub Actions deploy to GitHub Pages.

Implementation checklist

  • Initialize Maven project (plugin.yml relocation, shade config, Java version, dependencies: Paper API, PacketEvents, PlaceholderAPI optional, JSON parser).
  • Port configuration loader (config.yml, messages.yml), settings cache, reload command timing message.
  • Build data store for players (equipped effects slots, control mode, craft counters, cooldowns, trust list, first-time rewards); add serialization and migration notes.
  • Recreate commands: /infuse (gui|reload), /controls, /lspark,/rspark,/ldrain,/rdrain, /swap, /cleareffect, /trust,/untrust, /recipes with tab completion.
  • Rebuild GUIs: main infuse UI, brewing GUI (toggle), craft limit viewer; block clicks in Craft Limits inventory.
  • Implement action bar updater and particle tasks.
  • Implement effect behaviors (base + augmented) per messages.yml lore: Strength, Thunder, Speed, Regeneration, Ocean, Invisibility, Heart, Haste, Frost, Fire, Feather, Emerald, Ender; wire cooldown/duration from config.
  • Add extra effects gates: Apophis and Thief controlled by config.extra_effects flags, including packet-level hooks and skin/tablist handling.
  • Implement packet listeners (PacketEvents) for invisibility handling, thief stealth/footsteps/tablist, fire interactions, and any needed packet interception.
  • Implement trust-aware targeting and damage sharing (Ender curse), ocean pulling, drowning aura, lightning chaining, speed dash multipliers, invis mob aggro suppression.
  • Implement recipe/ritual flow: brewing stand flow or GUI, ritual duration timers, effect drops mode, player head drops, join effects.
  • Hook PlaceholderAPI expansion for status/effect placeholders.
  • Implement messaging/broadcasts (in-game and optional Discord webhook), invisibility death messages.
  • Add update checker async calls on enable and op join.
  • Testing: unit (config parsing, cooldown math), integration/manual scenarios per effect, control modes, trust interactions, packet behaviors, GUI flows, update checker fallback.
  • Documentation: set up Docusaurus site and GitHub Actions workflow to build/deploy docs to GitHub Pages.

Core systems

  • Recreate plugin entry with PacketEvents init/terminate, config/messages loading, settings cache, update checker, and event/command registration (see lib/plugin.yml and lib/com/catadmirer/infuseSMP/Infuse.java).
  • Implement persistent data store for player state: equipped effects (two slots), control mode (Offhand vs Command), cooldowns, craft limits, join effects, first-time rewards, and trust lists.
  • Provide configurable settings from lib/config.yml: ritual durations, brewing particles toggle, empty effect icon, player head drops, discord webhook, invisibility death message toggle, brewing GUI toggle, join effects list, craft limits per effect, cooldown/duration tables per effect, speed multipliers, ocean pulling tuning, extra_effects flags, allow_infinite_effects.

Effects and abilities

For each effect pair (base and augmented), implement both passive and spark/active behaviors with configurable duration/cooldowns. Use messages lore as spec (lib/messages.yml). Effects include:

  • Strength, Thunder, Speed, Regeneration, Ocean, Invisibility, Heart, Haste, Frost, Fire, Feather, Emerald, Ender.
  • Extra effects (toggle via config): Apophis (combo of Fire, Emerald, Heart with custom skin/nametag and spark blend) and Thief (steal effect, shapeshift, silent footsteps, hidden tablist) with augmented variants.
  • Implement spark activation commands/controls via Abilities handler: left/right spark (/lspark, /rspark) and drains (/ldrain, /rdrain).
  • Ensure effect crafting limits, cooldowns, durations, and behavior parity with lore; include ocean pulling, speed dash multipliers, invis mob targeting, glow/curse for Ender, drowning aura for Ocean, lightning chain, etc.

Crafting, brewing, and recipes

  • Recreate Infuse recipes (brewing stand GUI optional via config) and ritual timers (ritual_duration, ritual_duration_ender).
  • Handle effect drops setting (Random, 1/2, None) and player_head_drops.
  • Provide recipe viewer command (/recipes) and craft limit GUI (prevent clicks in Craft Limits inventory).

Commands

Implement executors and tab completion matching plugin.yml:

  • /infuse (gui|reload) to open main UI and reload configs/messages with performance timing.
  • /controls <Offhand|Command> to toggle ability mode; attach permission ability.use when Command mode off.
  • /lspark, /rspark to trigger slot spark effects; /ldrain, /rdrain to drain equipped effects.
  • /swap to swap slot 1/2 effects; /cleareffect to clear effects (op only); /trust and /untrust to manage trust lists; /recipes to view limits.

GUI and UX

  • Rebuild main GUI for selecting/equipping effects, brewing interface (if enabled), and craft limit viewer.
  • Action bar updater to show cooldowns/effect status.
  • Particle system for effects and brewing (brewing_particles toggle).

Networking and hooks

  • PacketEvents listeners for Invisibility, Thief, Fire, and any packet-level logic (e.g., hiding footsteps, tablist edits, shapeshift skins).
  • PlaceholderAPI expansion (InfusePlaceholders) for effect/status placeholders when PlaceholderAPI is present.

Trust and PvP interactions

  • Trust system stored per-player; effects like Ender, Ocean, Invisibility should respect trusted vs untrusted targets.
  • Join effects (optional) applied on login when join_effects_enabled.

Messaging and broadcasts

  • Use messages.yml for all user-facing strings and lore; support invis_deaths custom death messages and effect brewing broadcasts (in-game and optional Discord webhook).

Update checker

  • Async Modrinth version check on enable and on player join for ops; log info without blocking.

Testing and parity

  • Add unit/integration tests where feasible (cooldown math, config parsing, craft limit enforcement). For gameplay, plan manual test checklist: each effect passive and spark, control modes, trust interactions, packet-based behaviors, recipe GUI, broadcasts, placeholders, update check fallback.

Open questions

  • Confirm exact behaviors not fully specified in messages (e.g., chain lightning rules, curse damage sharing for Ender, drowning aura radius, thief spark duration). Document assumptions in code comments and config defaults.
  • Decide storage format (YAML/JSON/SQLite) for player data; current code uses EffectManager files.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors