Skip to content

Commit a6dccbe

Browse files
authored
Merge pull request #7 from nerif-tafu/patch-1
Adding getTime and getMapMarkers requests
2 parents 2475307 + 8b6e9b6 commit a6dccbe

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

rustplus.js

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,29 @@ class RustPlus extends EventEmitter {
208208
},
209209
}, callback);
210210
}
211+
212+
/**
213+
* Get the ingame time
214+
*/
215+
getTime(callback) {
216+
this.sendRequest({
217+
getTime: {
218+
219+
},
220+
}, callback);
221+
}
222+
223+
/**
224+
* Get all map markers
225+
*/
226+
getMapMarkers(callback) {
227+
this.sendRequest({
228+
getMapMarkers: {
229+
230+
},
231+
}, callback);
232+
}
211233

212234
}
213235

214-
module.exports = RustPlus;
236+
module.exports = RustPlus;

0 commit comments

Comments
 (0)