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
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.")

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

@ -6,4 +6,8 @@ authors: [ 5vl ]
description: A staffing plugin.
commands:
staffmode:
description: The command to go into staffmode.
description: The command to go into staffmode.
vanish:
description: Vanish from all players!
aliases:
- v