send

public static void send(Player player, String message)

Sends a debug message directly to a player if they have debug enabled, and mirrors the message (color codes stripped) to the server log.

The mirror to console is intentional: the per-hit damage breakdown is too long to read in chat during combat and scrolls past in seconds, but it is exactly the information needed for remote diagnosis (combat path picked, which config key was used, per-mob multipliers). Mirroring to the log means a user can run /em debug, fight a mob, and upload their server log for review — without that mirror the breakdown lives only in their chat and never reaches the maintainer.

Parameters

player

The player to send to

message

The message to send (may contain Bukkit §-color codes)