From 914ed4b2de240febfdf81a432c7b7570b1c5803b Mon Sep 17 00:00:00 2001 From: Shiewk Date: Fri, 7 Jun 2024 15:06:36 +0200 Subject: [PATCH] Add commands and permissions, load on startup --- src/main/resources/plugin.yml | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index cbc3c5a..b93a094 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -2,3 +2,42 @@ name: SModeration version: '${version}' main: de.shiewk.smoderation.SModeration api-version: '1.20' +load: STARTUP +commands: + mute: + aliases: + - smodmute + permission: smod.mute + description: Mutes a player, either temporarily or permanently. + ban: + aliases: + - smodban + - tempban + permission: smod.ban + description: Bans a player, either temporarily or permanently. + kick: + aliases: + - smodkick + permission: smod.kick + description: Kicks a player + smod: + aliases: + - smodmenu + - smoderation + permission: smod.menu + description: Shows the SModeration menu. +permissions: + smod.mute: + default: op + description: Allows the player to mute other players. + smod.ban: + default: op + description: Allows the player to ban and kick other players. + children: + - smod.kick + smod.kick: + default: op + description: Allows the player to kick other players. + smod.menu: + default: op + description: Allows the player to use the SModeration menu. \ No newline at end of file