Skip to content
Success

Changes

Summary

  1. `/ex(s)`: remove redundant checks, minor cleanups (commit: 014df1d) (details)
  2. Patch time_lived for xp orbs (#2509) (commit: 5f3a593) (details)
  3. Add display entity properties to the preload list (#2511) (commit: 9d27245) (details)
  4. `EntityTag.visual_fire` property (#2510) (commit: ff0f280) (details)
  5. Update `switch_face` to `attachment_face` and add bells (#2512) (commit: 7341333) (details)
  6. Fix metadata command not updating self (#2515) (commit: d3010de) (details)
  7. fix denizenclickable if chattrigger is set to async (commit: f362b88) (details)
  8. Update for nullable spawner types, `editMeta` util (#2514) (commit: 890a0b6) (details)
  9. `EntityTag.is_sneaking` Paper-only property (#2508) (commit: 19433ee) (details)
  10. `BiomeTag.(water_)fog_color` tag + mech (#2516) (commit: 2ba64c9) (details)
  11. strip the display tag from items when setting lore to empty (commit: b62926e) (details)
  12. shapeless recipe counter: slightly more conservative check to avoid issues with duplicates (commit: 07035dd) (details)
  13. fix Entity Killed context.entity calling the wrong method (commit: 2fac238) (details)
Commit 014df1dfa0c062805a1224f37944f15bec08dba9 by 31237389+tal5
`/ex(s)`: remove redundant checks, minor cleanups

Checks such as checking the command name, permission, etc. are no longer needed, as this is handled by Bukkit internally.
Also few minor cleanups:
- Updated some code to `instanceof` pattern matching
- Cleaned up sending debug to the player; can just use `sender`'s `sendMessage` methods instead of casting it to a player
- Renamed `onTabComplete`'s `cmdName` param to `alias`, as that's what it actually is.
- Removed some old commented out code from `ExCommandHandler`.

Reported on [Discord](https://discord.com/channels/315163488085475337/1133477089606123640).
(commit: 014df1d)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/utilities/command/ExCommandHandler.java (diff)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/utilities/command/ExSustainedCommandHandler.java (diff)
Commit 5f3a593ecb7d9ede35b7a1efc897a4bd420471b5 by noreply
Patch time_lived for xp orbs (#2509)

(commit: 5f3a593)
The file was modifiedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/ReflectionMappingsInfo.java (diff)
The file was modifiedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/helpers/EntityHelperImpl.java (diff)
Commit 9d2724543aa36ff43ec5b3cbde0554690623cb62 by noreply
Add display entity properties to the preload list (#2511)

(commit: 9d27245)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/objects/EntityTag.java (diff)
Commit ff0f280fada6226843a88e08c28e1108dd338d79 by noreply
`EntityTag.visual_fire` property (#2510)

* `EntityTag.visual_fire` property

Property that returns whether an entity has a fake fire effect. Requested by zemenus on Discord.

* Fix issue with documentation.

<@link tag on_fire> -> <@link tag EntityTag.on_fire>
(commit: ff0f280)
The file was addedplugin/src/main/java/com/denizenscript/denizen/objects/properties/entity/EntityVisualFire.java
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/objects/properties/PropertyRegistry.java (diff)
Commit 7341333248ae8b1792b2bc2a5283fddfc836c5cd by noreply
Update `switch_face` to `attachment_face` and add bells (#2512)

* Bell `attachment` mechanism beginnings

* It worked the whole time! I was using the wrong `adjust` command :P

Thanks for letting me know Aya.

* Add `attachment` logic to `switch_face`

Also updates `MaterialSwitchFace` to new Property system

* Update mech to `attachment_face` and more optimizations

* Update meta and add value for `DOUBLE_WALL`
(commit: 7341333)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/objects/LocationTag.java (diff)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/objects/MaterialTag.java (diff)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/objects/properties/PropertyRegistry.java (diff)
The file was removedplugin/src/main/java/com/denizenscript/denizen/objects/properties/material/MaterialSwitchFace.java
The file was addedplugin/src/main/java/com/denizenscript/denizen/objects/properties/material/MaterialAttachmentFace.java
Commit d3010deeda2bf6d399950913b92731da2b844f6e by noreply
Fix metadata command not updating self (#2515)

* Fix metadata command not updating self

* Remove redundant check

* Use direct casting
(commit: d3010de)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/utilities/entity/EntityMetadataCommandHelper.java (diff)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/objects/EntityTag.java (diff)
Commit f362b88a0c53c392089e52532e6124d4fc641e1a by git_commits
fix denizenclickable if chattrigger is set to async
(commit: f362b88)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/npc/traits/AssignmentTrait.java (diff)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/scripts/triggers/TriggerRegistry.java (diff)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/scripts/triggers/core/ChatTrigger.java (diff)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/Denizen.java (diff)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/objects/ItemTag.java (diff)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/scripts/containers/core/AssignmentScriptContainer.java (diff)
Commit 890a0b6227bd336015c79834a219b5ce03cd1ef9 by noreply
Update for nullable spawner types, `editMeta` util (#2514)

* Add `ItemProperty#editMeta` util

* Update & cleanup `ItemTag.spawner_type`

* Cleanup `ItemInstrument` and use `editMeta`

* Minor cleanup

* Support unsetting the instrument

* Minor cleanup

* `spawnerType` -> `spawnedType`

* Update `LocationTag` ones, make it 1.20+

* Correct no mech input check

* Use a direct cast

* Remove workaround for now fixed Spigot bug
(commit: 890a0b6)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/objects/properties/item/ItemInstrument.java (diff)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/objects/LocationTag.java (diff)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/objects/properties/item/ItemSpawnerType.java (diff)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/objects/properties/item/ItemProperty.java (diff)
Commit 19433ee89dac3500a00811b6db94f23b41ded802 by noreply
`EntityTag.is_sneaking` Paper-only property (#2508)

* Add `EntityTag.sneaking` property

* Meta improvements

* Deprecate `PlayerTag.is_sneaking`

* `ItemTag.trim` minor meta fix

* `PlayerTag.is_sneaking` deprecation fix

* Cleanup `MaterialAttachmentFace`

* Revert `PlayerTag.is_sneaking` deprecation

* Register existing tags when the prop isn't present

* Rename to `is_sneaking`

* Update another place

* Bump Paper API, add Citizens dependency

* Properly make NPCs sneak

* Remove trait when standing up
(commit: 19433ee)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/objects/PlayerTag.java (diff)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/events/item/ItemRecipeFormedScriptEvent.java (diff)
The file was modifiedpaper/src/main/java/com/denizenscript/denizen/paper/PaperModule.java (diff)
The file was addedpaper/src/main/java/com/denizenscript/denizen/paper/properties/EntitySneaking.java
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/objects/properties/material/MaterialAttachmentFace.java (diff)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/scripts/commands/entity/SneakCommand.java (diff)
The file was modifiedpaper/pom.xml (diff)
The file was modifiedpaper/src/main/java/com/denizenscript/denizen/paper/properties/EntityLeftHanded.java (diff)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/objects/NPCTag.java (diff)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/objects/properties/item/ItemTrim.java (diff)
Commit 2ba64c930fe45f3a013ef03a55d320ef05671241 by noreply
`BiomeTag.(water_)fog_color` tag + mech (#2516)

* `BiomeTag.(water_)fog_color` tag + mech

* Slight re-order
(commit: 2ba64c9)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/nms/abstracts/BiomeNMS.java (diff)
The file was modifiedv1_19/src/main/java/com/denizenscript/denizen/nms/v1_19/ReflectionMappingsInfo.java (diff)
The file was modifiedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/BiomeNMSImpl.java (diff)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/objects/BiomeTag.java (diff)
The file was modifiedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/ReflectionMappingsInfo.java (diff)
The file was modifiedv1_19/src/main/java/com/denizenscript/denizen/nms/v1_19/impl/BiomeNMSImpl.java (diff)
Commit b62926ec0fc753fabde76c5a139b4311c3044494 by git_commits
strip the display tag from items when setting lore to empty
(commit: b62926e)
The file was modifiedv1_19/src/main/java/com/denizenscript/denizen/nms/v1_19/helpers/ItemHelperImpl.java (diff)
The file was modifiedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/helpers/ItemHelperImpl.java (diff)
Commit 07035dde52e570242ca5987d44dfd0caa80b7950 by git_commits
shapeless recipe counter: slightly more conservative check to avoid issues with duplicates

see https://discord.com/channels/315163488085475337/1128643225507344405/1128643225507344405 for explanation
(commit: 07035dd)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/utilities/inventory/RecipeHelper.java (diff)
Commit 2fac238bb1c814101ba43872177d076267ebfeff by git_commits
fix Entity Killed context.entity calling the wrong method
(commit: 2fac238)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/events/entity/EntityKilledScriptEvent.java (diff)