mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-01 05:18:00 +01:00
Add debug message (player) to inventory.instantbow.
This commit is contained in:
parent
d22b38f6cf
commit
5c138d5787
@ -1,9 +1,11 @@
|
||||
package fr.neatmonster.nocheatplus.checks.inventory;
|
||||
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import fr.neatmonster.nocheatplus.checks.Check;
|
||||
import fr.neatmonster.nocheatplus.checks.CheckType;
|
||||
import fr.neatmonster.nocheatplus.players.Permissions;
|
||||
|
||||
/*
|
||||
* M""M dP dP M#"""""""'M
|
||||
@ -40,6 +42,7 @@ public class InstantBow extends Check {
|
||||
final long time = System.currentTimeMillis();
|
||||
|
||||
final InventoryData data = InventoryData.getData(player);
|
||||
final InventoryConfig cc = InventoryConfig.getConfig(player);
|
||||
|
||||
boolean cancel = false;
|
||||
|
||||
@ -61,7 +64,11 @@ public class InstantBow extends Check {
|
||||
// Execute whatever actions are associated with this check and the
|
||||
// violation level and find out if we should cancel the event
|
||||
cancel = executeActions(player, data.instantBowVL, difference,
|
||||
InventoryConfig.getConfig(player).instantBowActions);
|
||||
cc.instantBowActions);
|
||||
}
|
||||
|
||||
if (cc.debug && player.hasPermission(Permissions.ADMINISTRATION_DEBUG)){
|
||||
player.sendMessage(ChatColor.YELLOW + "NCP: " + ChatColor.GRAY + "Bow force: " + force);
|
||||
}
|
||||
|
||||
return cancel;
|
||||
|
Loading…
Reference in New Issue
Block a user