Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BREAKING] Create a common interface for per-player debug messages.
Breaking, because it alters Check, CheckListener and BaseAdapter. Not really meant/possible to be used by external plugins, though.
- Loading branch information
Showing
4 changed files
with
32 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
NCPCore/src/main/java/fr/neatmonster/nocheatplus/components/IDebugPlayer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package fr.neatmonster.nocheatplus.components; | ||
|
||
import org.bukkit.entity.Player; | ||
|
||
/** | ||
* Convenient player-specific debug messages with standard format. | ||
* | ||
* @author asofold | ||
* | ||
*/ | ||
public interface IDebugPlayer { | ||
|
||
/** | ||
* Output a message for a player with the standard format (see | ||
* CheckUtils.debug(Player, CheckType, String). | ||
* | ||
* @param player | ||
* May be null. | ||
* @param message | ||
*/ | ||
public void debug(Player player, String message); | ||
|
||
} |