New
Fixes
- Added a public developer API: custom Bukkit events (generator place / upgrade / break / repair / sell, sellwand & collector sell, corrupt, server event start & end, top update, refund issued, hopper place) and a query service so other plugins can read player profiles, sell multipliers, the generator at a location, the active server event and leaderboard data.
- Giving a sellwand / buildwand / upgradewand to a player who already holds a matching wand now stacks the uses onto their existing wand instead of handing over a duplicate, and tells both players how many uses were added and the new total.
- New PlaceholderAPI field
%sngens_top_<n>_name_raw%to show the raw player nick on the gens-top leaderboard instead of the full island display name.
- Fixed mined generators reappearing after a server restart on busy islands.
- Closed a generator duplication exploit using concurrent
/gens pickup.- Fixed a sellwand being able to sell the contents of another player's Collector to the player clicking it.
- Fixed Infinite Hoppers leaving ghost data after being broken and coming back on restart.
- Fixed generators inside already-loaded chunks sometimes turning into normal blocks until the next restart.
- Fixed the sellwand "items sold" counter overflowing into a negative number after selling huge amounts, plus the related crash when right-clicking older sellwands.
- Declared several admin permissions that were enforced in code but missing from
plugin.yml.- Performance optimizations on the generator tick, sellwand and hopper hot paths.
# What's new
# Performance
- Sellwand integrated with SnDisplayShops: sell the stock of your own shops directly with the wand.
- New
/sngens pausecommand to pause and resume the generators task without restarting.
# Fixes
- Generators: spawns are now spread across the entire cycle, eliminating the ping/lag spikes that appeared at the start of each big tick.
- Sellwand: now works on your own shops even when the island is in "use-only" mode.
- Sellwand: very large sales no longer overflow, totals are displayed correctly.
- Buildwand: uses the generator's actual accumulated price instead of the upgrade cost.
- Generators: removing an owner no longer deletes other players' generators in the same chunk.
