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
|
.env
|
||||||
.vscode
|
.vscode
|
||||||
|
plugins/*
|
||||||
|
!plugins/commands.ts
|
||||||
|
!plugins/world.ts
|
|
@ -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(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
}> {
|
}> {
|
||||||
|
|
Loading…
Reference in a new issue