yeow-api 0.2.115 → 0.2.116
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/command.ts +0 -5
package/package.json
CHANGED
package/src/command.ts
CHANGED
|
@@ -8,11 +8,6 @@ import { permissionPayload } from './permission.js';
|
|
|
8
8
|
/** 命令发送者:玩家为真正的 `Player` 对象(异步 `sendMessage` 等全部方法);控制台为字符串 `'CONSOLE'`。 */
|
|
9
9
|
export type CommandSender = Player | 'CONSOLE';
|
|
10
10
|
|
|
11
|
-
/** 判断发送者是否为玩家(非 'CONSOLE' 即玩家)。 */
|
|
12
|
-
export function isPlayer(sender: CommandSender): sender is Player {
|
|
13
|
-
return sender !== 'CONSOLE';
|
|
14
|
-
}
|
|
15
|
-
|
|
16
11
|
export interface CommandPayload {
|
|
17
12
|
readonly sender: CommandSender;
|
|
18
13
|
readonly args: string[];
|