make users OP by default, allow setblock to return promise

This commit is contained in:
yourfriend 2022-07-14 18:08:12 +03:00
parent c31b81133f
commit 4af20b4df5
No known key found for this signature in database
GPG key ID: C28FFD8607DAC4DE
3 changed files with 6 additions and 3 deletions

3
.gitignore vendored
View file

@ -1,2 +1,5 @@
.env
.vscode
plugins/*
!plugins/commands.ts
!plugins/world.ts

View file

@ -301,7 +301,7 @@ export class PacketDefinitions {
.writeByte(0x07)
.writeString(name)
.writeString(motd)
.writeByte(0x00)
.writeByte(0x64)
.toPacket(),
);
}

View file

@ -29,7 +29,7 @@ export abstract class Plugin extends EventEmitter<{
mode: number,
id: number,
position: Position,
): boolean;
): Promise<boolean> | boolean;
stop(): void;
}> {