DenizenScript / Denizen

NPC and general Spigot scripting, using the Denizen Scripting Language!
https://denizenscript.com/
MIT License
207 stars 104 forks source link

`TagContext` in object matchers #2636

Closed tal5 closed 2 months ago

tal5 commented 2 months ago

Updates for the changes in DenizenScript/Denizen-Core#102. Mostly just passing in the context/updating method params, but a few main points of actual changes:

[!NOTE] Just passed in CoreUtilities.noDebugContext in HideEntitiesHelper, as there isn't really a way to have a proper context there without some refactors, and having error randomly showing up is a bit weird - we could pass in the normal error context and use Debug#pushErrorContext to give a pointer (I.e. look at PlayerTag.hide_* mechanisms in your scripts or whatever), lmk if that sounds like a good idea.

tal5 commented 2 months ago

Should be ready for review now