radium-v2/commands/kick.js

25 lines
No EOL
630 B
JavaScript

const desc = "kick a player";
const usages = " - kick <type> <player>";
const trustLevel = 1;
function inject (client) {
const command = ((args) => {
switch (args[1]) {
case "longstring":
client.kick(args.slice(2).join(" "));
break;
case "translate":
client.crash(args.slice(2).join(" "));
break;
default:
client.cmdError("Incorrect argument for command");
break;
}
})
client.runCommand = command;
return command;
}
module.exports = { inject, desc, usages, trustLevel };