Introduce more tools for use by plugins

This commit is contained in:
Daniel Vestøl committed 2018-08-10 15:50:46 +02:00
1 parent 3a7527f053
commit 8518cd54c6
7 files changed
+150 -1

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
module.exports = async function checkHotpatchInstallation(messageInterface){
let yn = await messageInterface("/silent-command if remote.interfaces['hotpatch'] then rcon.print('true') else rcon.print('false') end");
yn = yn.replace(/(\r\n\t|\n|\r\t)/gm, "");
if(yn == "true"){
return true;
} else if(yn == "false"){
return false;
}
}