-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathglobal.d.ts
30 lines (30 loc) · 975 Bytes
/
global.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import * as Server from "@minecraft/server";
import * as ServerUi from "@minecraft/server-ui";
import { Module } from "./Matrix_BP/src/matrixAPI";
import { PlayerTimeStamp } from "./Matrix_BP/src/program/system/playerProperty";
declare module "@minecraft/server" {
interface Player {
isAdmin: () => boolean;
getPermissionLevel: () => number;
setPermissionLevel: (level: number) => void;
runChatCommand: (command: string) => void;
flag: (detected: Module, data?: { [key: string]: (string | number | (string | number)[]) }) => void;
safeIsOp: () => boolean;
isRiding: () => boolean;
isAlive: () => boolean;
isMoving: () => boolean;
timeStamp: PlayerTimeStamp;
opCommandUsageTimestamp: number;
opCommandIsVerifying: boolean;
mobAuraFlag: number;
mobAuraLastFlagTimestamp: number;
}
}
interface Console {
log: (message: string) => void;
warn: (message: string) => void;
error: (message: Error) => void;
}
declare global {
var console: Console;
}