
CombatLogger 1.3.0
A simple combat log plugin
Combat logger is a simple lightweight easy to use combat log plugin!
FEATURES
Punish a user who logs off during combat!
Custom Punishments!
Blacklisted Commands
Blacklisted Worlds
PlaceholderAPI Support
%combatlogger_timeformatted%
%combatlogger_time%
WIKI
PERMISSIONS
combatlogger.admin : Allows the person with this permission to not get into combat
IMAGES



CONFIG
[dropdown="config.yml"]
[/dropdown]
# How many seconds the combat lasts for
combat-timer: 15
# List of blacklisted worlds that combat wont work in
blacklisted-worlds:
- world_nether
# List of blacklisted commands that cannot be used in combat
blacklisted-commands:
- tp
# Message issued when player uses a blacklisted command in combat
blacklisted-command-message: '&cYou cannot run this command while in combat!'
chat:
# The message for going into combat (CHAT)
on-message: '&cYou are now in combat!'
# The message for going out of combat (CHAT)
off-message: '&cYou are now out of combat!'
# If the plugin will use chat messages
# If false it will still print when the players dies during combat
use: true
actionbar:
# The message for going into combat (ACTIONBAR)
on-message: '&cYou are now in combat for %combatlogger_timeformatted%!'
# The message for going out of combat (ACTIONBAR)
off-message: '&cYou are now out of combat!'
# If the plugin will use actionbar messages
use: true
# The punishment activates when a user logs out during combat
# Types: "KILL", "BAN:TIMEINSECONDS:REASON`{timeRemaining}=CURRENTBANTIME`, "WHITELIST""
# To remove a punishment just remove the line examaple,
# this will only kill the player when they log out during combat
#-----------
# punishment:
# - "KILL"
#-----------
#To disable punishments you can do `punishments: []`
punishment:
- "BAN:10:&cYou logged out during combat \n Please wait %combatlogger_timeformatted%"
- "KILL"
[/dropdown]
CUSTOM PUNISHMENTS
Basic Example
[dropdown="Code"]
public class LoseCoinsPunishment extends Punishment {
public LoseCoinsPunishment() {
super("LOSECOINS", 1);
}
@Override
public void onQuit(String label, String[] args) {
System.out.println(getPlayer().getName() + " has lost " + args[0] + " coins :(");
}
}
[/dropdown]
SUPPORT
if you are having any problems, bug, or want to suggest an idea, then you can contact me from discord Keurig#1716