public class WauzDebugger
extends java.lang.Object
Constructor and Description |
---|
WauzDebugger() |
Modifier and Type | Method and Description |
---|---|
static void |
catchException(java.lang.Class<?> clazz,
java.lang.Exception e)
Sends a catched exception message to the server console.
|
static void |
log(org.bukkit.entity.Player player,
java.lang.String message)
Sends a debug message to the player, if they have debug mode enabled.
|
static void |
log(java.lang.String message)
Sends a debug message to the server console.
|
static boolean |
toggleAttackDebugMode(org.bukkit.entity.Player player)
Toggles the attack debug mode for a player.
|
static boolean |
toggleBuildingDebugMode(org.bukkit.entity.Player player)
Toggles the building debug mode for a player.
|
static boolean |
toggleCraftingDebugMode(org.bukkit.entity.Player player)
Toggles the crafting debug mode for a player.
|
static boolean |
toggleDebugMode(org.bukkit.entity.Player player)
Toggles the general debug mode for a player.
|
static boolean |
toggleDefenseDebugMode(org.bukkit.entity.Player player)
Toggles the defense debug mode for a player.
|
static boolean |
toggleFlyingDebugMode(org.bukkit.entity.Player player)
Toggles the flying debug mode for a player.
|
static boolean |
toggleMagicDebugMode(org.bukkit.entity.Player player)
Toggles the magic debug mode for a player.
|
public static void log(org.bukkit.entity.Player player, java.lang.String message)
player
- The player who should receive the message.message
- The content of the message.public static void log(java.lang.String message)
message
- The content of the message.public static void catchException(java.lang.Class<?> clazz, java.lang.Exception e)
clazz
- The class in which the exception occured.e
- The catched exception.public static boolean toggleDebugMode(org.bukkit.entity.Player player)
player
- The player that gets their permissions changed.public static boolean toggleMagicDebugMode(org.bukkit.entity.Player player)
player
- The player that gets their permissions changed.public static boolean toggleCraftingDebugMode(org.bukkit.entity.Player player)
player
- The player that gets their permissions changed.public static boolean toggleBuildingDebugMode(org.bukkit.entity.Player player)
player
- The player that gets their permissions changed.public static boolean toggleFlyingDebugMode(org.bukkit.entity.Player player)
player
- The player that gets their permissions changed.public static boolean toggleAttackDebugMode(org.bukkit.entity.Player player)
player
- The player that gets their permissions changed.public static boolean toggleDefenseDebugMode(org.bukkit.entity.Player player)
player
- The player that gets their permissions changed.