Skip to content

v1.4.0

Latest

Choose a tag to compare

@d3cryptofc d3cryptofc released this 31 Aug 05:36
cacfe2e

Added

Permissions:

  • fastmud.event.* wildcard plugin permission.
  • fastmud.event.place_dirt_over_water plugin permission.
  • fastmud.event.water_bucket_over_dirt plugin permission.
  • fastmud.command.* wildcard plugin permission.
  • fastmud.command.reload plugin permission.
  • fastmud.command base plugin permission.

Commands & Features:

  • /fastmud reload plugin command.
  • reload bound method to FastMud class and reloadConfig bound method to PluginFeatureManager.
  • Configuration file to configure the plugin.
  • Startup banner display with global logger preference.

API & Utilities:

  • CommandGroup abstract class.
  • PluginDefaultMessages.YOU_DONT_HAVE_PERMISSION.
  • PluginPrefixes.CHAT.
  • HumanUtils class to humanize data.
  • DARK_RED, GREEN, and RESET colors to AnsiColor.
  • Dedicated AroundBlockOffsets class for block offsets.

Changed

Architecture & Clean Code:

  • Refactored PluginFeatureManager and FastMud classes to follow the Singleton pattern.
  • Refactored base package from br.minilambda to com.github.d3cryptofc.fastmud.
  • Moved AnsiColors from utils to constant package.
  • Renamed listeners package to singular listener.
  • Separated each feature into its own listener.
  • Applied code formatter and refactored code to use inline statements.

Block Iterators:

  • Renamed IceBlockFadeToWaterOverDirt to BlockFadeToWaterOverDirt.
  • Renamed GetDirtAroundBlockGenerator to GetDirtAroundBlockIterator and created GetDirtAroundBlockIterable to iterate dirts using for loops.
  • Upgraded to GetBlockAroundBlockIterator for improved flexibility and moved GetBlockAroundBlock* classes to the iterable package.

Fixed

  • Naive dirt placement logic: changed from UNDER water to OVER water.
  • Water flow over dirt issue so that it only affects the bottom block.
  • GetDirtAroundBlockGenerator returning null when hasNext evaluates to true.

Documentation, Build & Chore

Build:

  • Migrated build tool from Maven to Gradle.
  • Added projectRepositoryUrl property.

Documentation (README):

  • Added Permissions, Configuration, and updated Compatibility sections.
  • Added project logo, description, disclaimer, and security notice regarding malware in cloned projects.
  • Removed feature version tags and revised text for clarity and grammar improvements.

Maintenance & Chore:

  • Fixed typos across the codebase.
  • Updated .gitignore to ignore all hidden files and directories (.*).