File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 5
5
"@std/cli" : " jsr:@std/cli@^1.0.6" ,
6
6
"@std/io" : " jsr:@std/io@^0.225.0"
7
7
},
8
- "version" : " 0.0.5 " ,
8
+ "version" : " 0.0.6 " ,
9
9
"exports" : " ./mod.ts" ,
10
10
"publish" : {
11
11
"include" : [" README.md" , " mod.ts" , " src/" ]
Original file line number Diff line number Diff line change @@ -74,6 +74,8 @@ export class Rcon {
74
74
/**
75
75
* Authenticates the connection
76
76
* @param password The RCON password
77
+ *
78
+ * @returns {Promise<boolean> } The result of the authentication
77
79
*/
78
80
public async authenticate ( password : string ) : Promise < boolean > {
79
81
if ( ! this . #connected) {
@@ -96,10 +98,12 @@ export class Rcon {
96
98
}
97
99
98
100
/**
99
- * Executes command on the server
100
- * @param command Command to execute
101
+ * Executes a command on the server
102
+ * @param command The command to execute
103
+ *
104
+ * @returns {Promise<string> } The result of the execution
101
105
*/
102
- public async execute ( command : string ) : Promise < string | boolean > {
106
+ public async execute ( command : string ) : Promise < string > {
103
107
if ( ! this . #connected) {
104
108
throw new NotConnectedException ( ) ;
105
109
}
You can’t perform that action at this time.
0 commit comments