mirror of
https://github.com/plexusorg/Plex.git
synced 2025-08-08 05:23:17 +00:00
Use Google's reflection library to register commands
This commit is contained in:
parent
6a569bb638
commit
cc97612101
11 changed files with 97 additions and 41 deletions
|
@ -4,6 +4,7 @@ import com.google.common.collect.ImmutableList;
|
|||
import dev.plex.command.PlexCommand;
|
||||
import dev.plex.command.annotation.CommandParameters;
|
||||
import dev.plex.command.annotation.CommandPermissions;
|
||||
import dev.plex.command.annotation.System;
|
||||
import dev.plex.rank.enums.Rank;
|
||||
import dev.plex.util.PlexLog;
|
||||
import dev.plex.util.PlexUtils;
|
||||
|
@ -19,6 +20,7 @@ import org.jetbrains.annotations.Nullable;
|
|||
|
||||
@CommandParameters(name = "pdebug", description = "Plex's debug command", usage = "/<command> <redis-reset <player> | gamerules>")
|
||||
@CommandPermissions(level = Rank.EXECUTIVE, permission = "plex.debug")
|
||||
@System("debug")
|
||||
public class DebugCMD extends PlexCommand
|
||||
{
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue