CmdReload made more useful by changing how commands that can be disabled are added to the root. You can now get the instance of FCmdRoot, Recheck variable added commands, rebuild brigadierManager, and get the status of each command that can be disabled. CmdDebug now gets the status of variable added commands.
Signed-off-by: DroppingAnvil <dr0pping.4nvi1@gmail.com>
This commit is contained in:
@@ -17,13 +17,28 @@ public class CmdDebug extends FCommand {
|
||||
public void perform(CommandContext context) {
|
||||
FactionsPlugin.getInstance().divider();
|
||||
System.out.print("----------Debug Info----------");
|
||||
System.out.print("--------Main-------");
|
||||
System.out.print("-------Main-------");
|
||||
System.out.print("Server Version: " + FactionsPlugin.getInstance().getServer().getVersion());
|
||||
System.out.print("Server Bukkit Version: " + FactionsPlugin.getInstance().getServer().getBukkitVersion());
|
||||
System.out.print("SaberFactions Version: " + FactionsPlugin.getInstance().getDescription().getVersion());
|
||||
System.out.print("Is Beta Version: " + (FactionsPlugin.getInstance().getDescription().getFullName().contains("BETA") ? "True" : "False"));
|
||||
System.out.print("Players Online: " + Bukkit.getOnlinePlayers().size());
|
||||
System.out.print("------End Main-----");
|
||||
System.out.print("------Command------");
|
||||
System.out.print("Discord Commands: " + FCmdRoot.instance.discordEnabled);
|
||||
System.out.print("Check/WeeWoo Commands: " + FCmdRoot.instance.checkEnabled);
|
||||
System.out.print("Mission Command: " + FCmdRoot.instance.missionsEnabled);
|
||||
System.out.print("Shop Command: " + FCmdRoot.instance.fShopEnabled);
|
||||
System.out.print("Inventory See Command: " + FCmdRoot.instance.invSeeEnabled);
|
||||
System.out.print("Points Command: " + FCmdRoot.instance.fPointsEnabled);
|
||||
System.out.print("Alts Command: " + FCmdRoot.instance.fAltsEnabled);
|
||||
System.out.print("Grace Command: " + FCmdRoot.instance.fGraceEnabled);
|
||||
System.out.print("Focus Command: " + FCmdRoot.instance.fFocusEnabled);
|
||||
System.out.print("Fly Command: " + FCmdRoot.instance.fFlyEnabled);
|
||||
System.out.print("PayPal Commands: " + FCmdRoot.instance.fPayPalEnabled);
|
||||
System.out.print("Inspect Command: " + FCmdRoot.instance.coreProtectEnabled);
|
||||
System.out.print("Internal FTOP Command: " + FCmdRoot.instance.internalFTOPEnabled);
|
||||
System.out.print("----End Command----");
|
||||
System.out.print("-----End Main-----");
|
||||
System.out.print("------Discord------");
|
||||
System.out.print("Discord Integration enabled in config: " + Discord.confUseDiscord);
|
||||
System.out.print("Discord Integration enabled: " + Discord.useDiscord);
|
||||
|
||||
Reference in New Issue
Block a user