diff --git a/src/main/kotlin/org/hydev/mc/ActiveList.kt b/src/main/kotlin/org/hydev/mc/ActiveList.kt new file mode 100644 index 0000000..956b5aa --- /dev/null +++ b/src/main/kotlin/org/hydev/mc/ActiveList.kt @@ -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): Boolean + { + return true + } +} diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index eef813a..a2cf0fb 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -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