/* * Copyright (c) 2017 univento.eu - All rights reserved * You are not allowed to use, distribute or modify this code */ package eu.univento.commons.player.kick; import eu.univento.commons.player.uuid.NameFetcher; import java.time.Instant; import java.util.UUID; /** * @author joethei * @version 1.0 */ public class KickData { private KickReason reason; private Instant date; private UUID kicker; public KickData(KickReason reason, Instant date, UUID kicker) { this.reason = reason; this.date = date; this.kicker = kicker; } public KickReason getReason() { return reason; } public Instant getDate() { return date; } public UUID getKicker() { return kicker; } public String getKickerName() { if(kicker == null) return "Auto Kick"; return NameFetcher.getRequest(kicker); } }