From 344c4f2a959d1dde4d2cc28979c07fb32b05f897 Mon Sep 17 00:00:00 2001 From: 5vl Date: Mon, 11 Apr 2022 21:51:19 +0200 Subject: [PATCH] i added something, i dont even remember what.. i think the vanish command --- src/main/java/me/fivevl/staff/Main.kt | 2 ++ .../java/me/fivevl/staff/commands/VanishCommand.kt | 12 ++++++++++++ src/main/resources/plugin.yml | 6 +++++- 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 src/main/java/me/fivevl/staff/commands/VanishCommand.kt diff --git a/src/main/java/me/fivevl/staff/Main.kt b/src/main/java/me/fivevl/staff/Main.kt index fbdf0e0..399c218 100644 --- a/src/main/java/me/fivevl/staff/Main.kt +++ b/src/main/java/me/fivevl/staff/Main.kt @@ -1,6 +1,7 @@ package me.fivevl.staff import me.fivevl.staff.commands.StaffModeCommand +import me.fivevl.staff.commands.VanishCommand import me.fivevl.staff.listeners.JoinListener import org.bukkit.Bukkit import org.bukkit.plugin.java.JavaPlugin @@ -13,6 +14,7 @@ class Main : JavaPlugin() { Config.config = config getCommand("staffmode")!!.setExecutor(StaffModeCommand()) + getCommand("vanish")!!.setExecutor(VanishCommand()) Bukkit.getPluginManager().registerEvents(JoinListener(), this) logger.info("Staff plugin enabled.") diff --git a/src/main/java/me/fivevl/staff/commands/VanishCommand.kt b/src/main/java/me/fivevl/staff/commands/VanishCommand.kt new file mode 100644 index 0000000..0d86dab --- /dev/null +++ b/src/main/java/me/fivevl/staff/commands/VanishCommand.kt @@ -0,0 +1,12 @@ +package me.fivevl.staff.commands + +import org.bukkit.command.Command +import org.bukkit.command.CommandExecutor +import org.bukkit.command.CommandSender + +class VanishCommand : CommandExecutor { + override fun onCommand(sender: CommandSender, command: Command, label: String, args: Array): Boolean { + return true + } + +} \ No newline at end of file diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 216b9c4..77e96fe 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -6,4 +6,8 @@ authors: [ 5vl ] description: A staffing plugin. commands: staffmode: - description: The command to go into staffmode. \ No newline at end of file + description: The command to go into staffmode. + vanish: + description: Vanish from all players! + aliases: + - v \ No newline at end of file