mirror of
https://github.com/5vl/Staff.git
synced 2025-05-24 06:36:57 +00:00
i added something, i dont even remember what.. i think the vanish command
This commit is contained in:
parent
8bed238ca2
commit
344c4f2a95
@ -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.")
|
||||
|
12
src/main/java/me/fivevl/staff/commands/VanishCommand.kt
Normal file
12
src/main/java/me/fivevl/staff/commands/VanishCommand.kt
Normal 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
|
||||
}
|
||||
|
||||
}
|
@ -7,3 +7,7 @@ description: A staffing plugin.
|
||||
commands:
|
||||
staffmode:
|
||||
description: The command to go into staffmode.
|
||||
vanish:
|
||||
description: Vanish from all players!
|
||||
aliases:
|
||||
- v
|
Loading…
x
Reference in New Issue
Block a user