[+] Create command

This commit is contained in:
Hykilpikonna
2021-03-07 16:55:39 -05:00
parent 5f2d68c282
commit 6727e42d0a
2 changed files with 36 additions and 0 deletions
@@ -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
}
}
+6
View File
@@ -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