Class Debug

java.lang.Object
fr.andross.banitem.utils.debug.Debug
All Implemented Interfaces:
Cloneable

public final class Debug extends Object implements Cloneable
A debug class, which can handle and display the nodes Mainly used when loading the plugin, to display any error
Version:
3.1
Author:
Andross
  • Constructor Details

    • Debug

      public Debug(@NotNull BanConfig banConfig, @NotNull org.bukkit.command.CommandSender sender, DebugMessage... dm)
  • Method Details

    • add

      public Debug add(@Nullable ListType type, @NotNull String node)
      Add a node
      Parameters:
      type - type of node
      node - message
      Returns:
      this object
    • add

      public Debug add(@NotNull String node)
      Add a node
      Parameters:
      node - message
      Returns:
      this object
    • add

      public Debug add(@NotNull DebugMessage... dm)
      Add a node
      Parameters:
      dm - nodes with messages
      Returns:
      this object
    • getNodes

      @NotNull public List<DebugMessage> getNodes()
      List of nodes
      Returns:
      list of nodes with their respectives messages
    • setNodes

      public void setNodes(@NotNull List<DebugMessage> nodes)
      Set all nodes
      Parameters:
      nodes - nodes with their respectives messages
    • getSimpleDebug

      public String getSimpleDebug()
      A simple message with the debug result
      Returns:
      a simple message with the debug result
    • getBetterDebug

      public List<String> getBetterDebug()
      A list of messages with nodes and the detailled debug message
      Returns:
      a list of messages with nodes and a more detailled error message
    • sendDebug

      public void sendDebug()
      Send this debug message to the sender
    • clone

      public Debug clone()
      Overrides:
      clone in class Object