i added something, i dont even remember what.. i think the vanish command

This commit is contained in:
5vl 2022-04-11 21:51:19 +02:00
parent 8bed238ca2
commit 344c4f2a95
No known key found for this signature in database
GPG Key ID: DA8938F22548E4D5
3 changed files with 19 additions and 1 deletions

View File

@ -1,6 +1,7 @@
package me.fivevl.staff package me.fivevl.staff
import me.fivevl.staff.commands.StaffModeCommand import me.fivevl.staff.commands.StaffModeCommand
import me.fivevl.staff.commands.VanishCommand
import me.fivevl.staff.listeners.JoinListener import me.fivevl.staff.listeners.JoinListener
import org.bukkit.Bukkit import org.bukkit.Bukkit
import org.bukkit.plugin.java.JavaPlugin import org.bukkit.plugin.java.JavaPlugin
@ -13,6 +14,7 @@ class Main : JavaPlugin() {
Config.config = config Config.config = config
getCommand("staffmode")!!.setExecutor(StaffModeCommand()) getCommand("staffmode")!!.setExecutor(StaffModeCommand())
getCommand("vanish")!!.setExecutor(VanishCommand())
Bukkit.getPluginManager().registerEvents(JoinListener(), this) Bukkit.getPluginManager().registerEvents(JoinListener(), this)
logger.info("Staff plugin enabled.") logger.info("Staff plugin enabled.")

View File

@ -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<out String>): Boolean {
return true
}
}

View File

@ -7,3 +7,7 @@ description: A staffing plugin.
commands: commands:
staffmode: staffmode:
description: The command to go into staffmode. description: The command to go into staffmode.
vanish:
description: Vanish from all players!
aliases:
- v