Package fr.andross.banitem.utils.debug
Class Debug
java.lang.Object
fr.andross.banitem.utils.debug.Debug
- All Implemented Interfaces:
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 Summary
ConstructorDescriptionDebug
(BanConfig banConfig, org.bukkit.command.CommandSender sender, DebugMessage... dm) -
Method Summary
Modifier and TypeMethodDescriptionadd
(DebugMessage... dm) Add a nodeAdd a nodeAdd a nodeclone()
A list of messages with nodes and the detailled debug messagegetNodes()
List of nodesA simple message with the debug resultvoid
Send this debug message to the sendervoid
setNodes
(List<DebugMessage> nodes) Set all nodes
-
Constructor Details
-
Debug
public Debug(@NotNull BanConfig banConfig, @NotNull org.bukkit.command.CommandSender sender, DebugMessage... dm)
-
-
Method Details
-
add
Add a node- Parameters:
type
- type of nodenode
- message- Returns:
- this object
-
add
Add a node- Parameters:
node
- message- Returns:
- this object
-
add
Add a node- Parameters:
dm
- nodes with messages- Returns:
- this object
-
getNodes
List of nodes- Returns:
- list of nodes with their respectives messages
-
setNodes
Set all nodes- Parameters:
nodes
- nodes with their respectives messages
-
getSimpleDebug
A simple message with the debug result- Returns:
- a simple message with the debug result
-
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
-