refactor: rename source -> origin in all commands

This commit is contained in:
ForestOfLight
2026-05-29 23:26:49 +02:00
Unverified
parent e0e12f5dd0
commit f750710732
17 changed files with 76 additions and 76 deletions
@@ -12,11 +12,11 @@ export class InstanceInfoCommand extends Command {
{ name: 'instanceName', type: CustomCommandParamType.String }
],
permissionLevel: CommandPermissionLevel.Any,
callback: (source, instanceName) => this.run(source, instanceName)
callback: (origin, instanceName) => this.run(origin, instanceName)
});
}
run(source, instanceName) {
run(origin, instanceName) {
const instance = structureCollection.get(instanceName);
const message = { rawtext: [
this.getHeaderText(instance),
@@ -33,7 +33,7 @@ export class InstanceInfoCommand extends Command {
{ text: '\n' },
this.getSizeText(instance)
]};
source.sendMessage(message);
origin.sendMessage(message);
return { status: CustomCommandStatus.Success };
}