summary refs log tree commit diff
path: root/commands/kick.js
diff options
context:
space:
mode:
Diffstat (limited to 'commands/kick.js')
-rw-r--r--commands/kick.js11
1 files changed, 0 insertions, 11 deletions
diff --git a/commands/kick.js b/commands/kick.js
deleted file mode 100644
index accadb0..0000000
--- a/commands/kick.js
+++ /dev/null
@@ -1,11 +0,0 @@
-export default {
-    name: "kick",
-    aliases: [],
-    command: function ({ user, server, args }) {
-        if(!user.admin) return user.socket.send("You are not admin");
-        if(!server.accounts.checkAccount(args[0])) return user.socket.send("Account not found");
-        let theUser = Object.values(server.users).find(a => a.username == args[0]);
-        theUser.socket.send('you were kicked')
-        theUser.socket.close(1003, "Kicked");
-    },
-};