Remove rank system entirely and move developer title to being hardcoded

This commit is contained in:
Taah
2023-08-25 04:07:56 -07:00
parent 175c7db23d
commit 7ff6bdb171
78 changed files with 284 additions and 2093 deletions

View File

@ -3,7 +3,7 @@ package dev.plex.handlers;
import com.google.common.collect.Lists;
import dev.plex.PlexBase;
import dev.plex.command.PlexCommand;
import dev.plex.command.annotation.System;
import dev.plex.command.impl.DebugCMD;
import dev.plex.util.PlexLog;
import dev.plex.util.ReflectionsUtil;
@ -22,18 +22,9 @@ public class CommandHandler implements PlexBase
{
try
{
if (clazz.isAnnotationPresent(System.class))
if (plugin.config.getBoolean("debug") && DebugCMD.class.isAssignableFrom(clazz))
{
System annotation = clazz.getDeclaredAnnotation(System.class);
if (annotation.value().equalsIgnoreCase(plugin.getSystem().toLowerCase()))
{
commands.add(clazz.getConstructor().newInstance());
}
if (plugin.config.getBoolean("debug") && annotation.debug())
{
commands.add(clazz.getConstructor().newInstance());
}
commands.add(clazz.getConstructor().newInstance());
}
else
{