EndstoneMC / endstone

Endstone - High-level Plugin API for Bedrock Dedicated Servers (BDS), in both Python and C++.
http://endstone.dev/
Apache License 2.0
267 stars 25 forks source link

[feature] Allow developers to modify vanilla commands #15

Closed wu-vincent closed 5 months ago

wu-vincent commented 5 months ago

The vanilla command can now be disabled by using Permissible::addAttachment. For instance, to disable the /me command with the Python API, add an attachment to the permission node of the command with False as its value:

player.add_attachment(plugin, "minecraft.command.me", False)