[+] Create command
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
package org.hydev.mc
|
||||
|
||||
import org.bukkit.command.Command
|
||||
import org.bukkit.command.CommandExecutor
|
||||
import org.bukkit.command.CommandSender
|
||||
import org.bukkit.plugin.java.JavaPlugin
|
||||
import java.util.*
|
||||
|
||||
/**
|
||||
* TODO: Write a description for this class!
|
||||
*
|
||||
* @author HyDEV Team (https://github.com/HyDevelop)
|
||||
* @author Hykilpikonna (https://github.com/hykilpikonna)
|
||||
* @author Vanilla (https://github.com/VergeDX)
|
||||
* @since 2021-03-07 09:24
|
||||
*/
|
||||
class ActiveList : JavaPlugin(), CommandExecutor
|
||||
{
|
||||
override fun onEnable()
|
||||
{
|
||||
super.onEnable()
|
||||
|
||||
getCommand("activelist").executor = this
|
||||
}
|
||||
|
||||
override fun onCommand(sender: CommandSender, command: Command, label: String, _args: Array<out String>): Boolean
|
||||
{
|
||||
return true
|
||||
}
|
||||
}
|
||||
@@ -4,3 +4,9 @@ author: Hykilpikonna
|
||||
|
||||
main: org.hydev.mc.ActiveList
|
||||
version: 1.0
|
||||
|
||||
commands:
|
||||
activelist:
|
||||
description: View the active list of players' last login dates
|
||||
usage: /activelist [page=1] [pageSize=10] [-a/-d (sort ascending or descending)]
|
||||
permission: activelist.view
|
||||
|
||||
Reference in New Issue
Block a user