make users OP by default, allow setblock to return promise
This commit is contained in:
parent
c31b81133f
commit
4af20b4df5
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,2 +1,5 @@
|
|||
.env
|
||||
.vscode
|
||||
plugins/*
|
||||
!plugins/commands.ts
|
||||
!plugins/world.ts
|
|
@ -301,7 +301,7 @@ export class PacketDefinitions {
|
|||
.writeByte(0x07)
|
||||
.writeString(name)
|
||||
.writeString(motd)
|
||||
.writeByte(0x00)
|
||||
.writeByte(0x64)
|
||||
.toPacket(),
|
||||
);
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ export abstract class Plugin extends EventEmitter<{
|
|||
mode: number,
|
||||
id: number,
|
||||
position: Position,
|
||||
): boolean;
|
||||
): Promise<boolean> | boolean;
|
||||
|
||||
stop(): void;
|
||||
}> {
|
||||
|
|
Loading…
Reference in a new issue