Added staffmode command.

This commit is contained in:
5vl 2022-04-06 23:19:16 +02:00
parent ada3e889c3
commit c62396e2a4
No known key found for this signature in database
GPG Key ID: DA8938F22548E4D5
3 changed files with 16 additions and 0 deletions

View File

@ -1,10 +1,12 @@
package me.fivevl.staff
import me.fivevl.staff.commands.StaffModeCommand
import org.bukkit.plugin.java.JavaPlugin
class Main : JavaPlugin() {
override fun onEnable() {
logger.info("Staff plugin enabled.")
getCommand("staffmode")!!.setExecutor(StaffModeCommand())
}
override fun onDisable() {

View File

@ -0,0 +1,11 @@
package me.fivevl.staff.commands
import org.bukkit.command.Command
import org.bukkit.command.CommandExecutor
import org.bukkit.command.CommandSender
class StaffModeCommand : CommandExecutor {
override fun onCommand(sender: CommandSender, command: Command, label: String, args: Array<out String>): Boolean {
return true
}
}

View File

@ -4,3 +4,6 @@ main: me.fivevl.staff.Main
api-version: 1.18
authors: [ 5vl ]
description: A staffing plugin.
commands:
staffmode:
description: The command to go into staffmode.