Skip to content

Conversation

@cqdetdev
Copy link

This PR introduces a Typescript API that is easier to use

@cqdetdev
Copy link
Author

Looks good to me!

await this.plugin.send({
pluginId: this.plugin.pluginId,
actions: {
actions: [{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change all of these usages to use a sendActions which takes []Action


if (actions.length > 0) {
await this.plugin.send({
pluginId: this.plugin.pluginId,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use a sendActions method

timeValue = value;
}

await this.plugin.sendAction('worldSetTime', {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use a sendActions method

await context.ack();
}

// --- Commands ---
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move everything below this into commands.ts


await playerData.save();

await context.ack();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should avoid acks at the end with an internal ackIfUnhandled

players/
resources/

cmd/plugins/plugins.yaml
Copy link
Contributor

@HashimTheArab HashimTheArab Dec 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should keep some example plugins.yaml if this is going to be ignored. I think its better to revert this and handle it outside of the PR

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.

2 participants