Skip to content

feat: Add armor stand manipulation protection#65

Open
MeinLiX wants to merge 1 commit intoStrafbefehl:devfrom
MeinLiX:fix/armor-stand-protection
Open

feat: Add armor stand manipulation protection#65
MeinLiX wants to merge 1 commit intoStrafbefehl:devfrom
MeinLiX:fix/armor-stand-protection

Conversation

@MeinLiX
Copy link

@MeinLiX MeinLiX commented Oct 6, 2025

AI summary:
This pull request adds a new protection feature to prevent players from interacting with armor stands, along with configuration and messaging support. The most important changes are grouped below.

Feature Addition

  • Added a new boolean flag armorStandManipulate to the WorldProtect module to control whether players can manipulate armor stands (src/main/java/dev/strafbefehl/deluxehubreloaded/module/modules/world/WorldProtect.java).
  • Implemented logic in the onArmorStandInteract event handler to cancel armor stand interactions based on the new configuration, and send a corresponding message to the player (src/main/java/dev/strafbefehl/deluxehubreloaded/module/modules/world/WorldProtect.java).

Configuration

  • Added a new configuration option disable_armor_stand_manipulate under world_settings in config.yml to enable or disable armor stand manipulation (src/main/resources/config.yml).
  • Loaded the new configuration value in the onEnable method of the WorldProtect module (src/main/java/dev/strafbefehl/deluxehubreloaded/module/modules/world/WorldProtect.java).

Messaging

  • Added a new message key ARMOR_STAND_MANIPULATE to the Messages enum for armor stand interaction events (src/main/java/dev/strafbefehl/deluxehubreloaded/config/Messages.java).
  • Added the corresponding message string for ARMOR_STAND_MANIPULATE in messages.yml (src/main/resources/messages.yml).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant