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
@@ -11,12 +11,12 @@ export class ConstructCommand extends Command {
cheatsRequired: false,
allowedSources: [PlayerCommandOrigin],
permissionLevel: CommandPermissionLevel.Any,
callback: (source) => this.run(source)
callback: (origin) => this.run(origin)
});
}
run(source) {
const player = source.getSource();
run(origin) {
const player = origin.getSource();
system.run(() => {
this.giveMenuItem(player);
});