Skip to content

SnTempBlocks v1.1.1

Choose a tag to compare

@ValentinTarnovsky ValentinTarnovsky released this 06 Aug 04:39
· 25 commits to main since this release

Fixes

  • Placeholders now update in holograms and menus. Every %sntempblocks_*% placeholder worked under /papi parse but rendered as a raw %token% in DecentHolograms and DeluxeMenus: the expansion answered null off the main thread, which PlaceholderAPI reads as "this expansion does not handle that placeholder". Both of those refresh asynchronously, so the first frame showed the value and every refresh after it showed the token. The main thread now publishes a snapshot on the expiry sweep and the resolvers read it from any thread, so /papi parse, a hologram and a menu all show exactly the same thing. Countdowns keep the absolute wipe instant, so they stay exact between publishes.
  • State words are no longer printed with raw colour codes. %sntempblocks_mode%, %sntempblocks_bypass% and the n/a of a PER_BLOCK zone reached PlaceholderAPI as &#8354f2Interval / &7n/a, because PAPI output never enters SnLib's render pass. They are rendered before they leave now.
  • An INTERVAL cycle over an empty zone announces again. Neither the countdown warnings nor the wipe message were sent when the zone had nothing tracked, so the cycle appeared and disappeared depending on whether somebody had placed a block. A cycle always announces now, with a new messages.wipe-done-empty line when there was nothing to remove.

Upgrading

Drop-in. The new messages.wipe-done-empty key is merged into your language file on boot; your existing values and comments are preserved.

Installation

Download the JAR below and place it in your plugins folder. Requires SnLib.jar, WorldGuard, and PlaceholderAPI if you want the placeholders.