Punishment logging!

This commit is contained in:
ZeroEpoch1969
2018-03-02 21:29:08 -07:00
parent 2185794444
commit 40a78f8608
20 changed files with 621 additions and 236 deletions

View File

@ -1,7 +1,10 @@
package me.totalfreedom.totalfreedommod.command;
import me.totalfreedom.totalfreedommod.punishments.Punishment;
import me.totalfreedom.totalfreedommod.punishments.PunishmentType;
import me.totalfreedom.totalfreedommod.rank.Rank;
import me.totalfreedom.totalfreedommod.util.FUtil;
import net.pravian.aero.util.Ips;
import org.apache.commons.lang3.StringUtils;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
@ -49,6 +52,9 @@ public class Command_kick extends FreedomCommand
}
player.kickPlayer(builder.toString());
plugin.pul.logPunishment(new Punishment(player.getName(), Ips.getIp(player), sender.getName(), PunishmentType.KICK, reason));
return true;
}