Skip to content

Commit

Permalink
fix(minecraft_command_register): 🐛 fix execute command
Browse files Browse the repository at this point in the history
use execute to run command instead of execute_command
  • Loading branch information
AnzhiZhang committed Nov 20, 2022
1 parent 4732fa5 commit 87157ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion minecraft_command_register/mcdreforged.plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "minecraft_command_register",
"version": "1.1.0",
"version": "1.1.1",
"name": "Minecraft Command Register",
"description": {
"en_us": "Register MCDReforged commands in Minecraft",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def register(server: PluginServerInterface):
tree_data[key] = Node(plugin_command_holder.node).dict

# execute register command
server.execute_command(f'mcdr register {json.dumps(tree_data)}')
server.execute(f'mcdr register {json.dumps(tree_data)}')
return tree_data


Expand Down

0 comments on commit 87157ed

Please sign in to comment.