File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed
scripts/run-command-async Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change 11import { Dimension , Player , Entity } from "mojang-minecraft" ;
22
3- Dimension . prototype . runCommandAsync = async ( commandString ) => this . runCommand ( await commandString ) ;
3+ export class CommandResult {
4+ 'successCount' = 1 ;
5+ constructor ( ) { } ;
6+ } ;
47
5- Player . prototype . runCommandAsync = async ( commandString ) => this . runCommand ( await commandString ) ;
8+ Dimension . prototype . runCommandAsync = async function ( commandString ) {
9+ this . runCommand ( await commandString ) ;
10+ return new CommandResult ( ) ;
11+ } ;
612
7- Entity . prototype . runCommandAsync = async ( commandString ) => this . runCommand ( await commandString ) ;
13+ Player . prototype . runCommandAsync = async function ( commandString ) {
14+ this . runCommand ( await commandString ) ;
15+ return new CommandResult ( ) ;
16+ } ;
17+
18+ Entity . prototype . runCommandAsync = async function ( commandString ) {
19+ this . runCommand ( await commandString ) ;
20+ return new CommandResult ( ) ;
21+ } ;
You can’t perform that action at this time.
0 commit comments