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 .env
.vscode .vscode
plugins/*
!plugins/commands.ts
!plugins/world.ts

View file

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

View file

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