Commons/src/main/java/eu/univento/commons/player/kick/KickData.java

46 lines
917 B
Java
Raw Normal View History

/*
* Copyright (c) 2017 univento.eu - All rights reserved
* You are not allowed to use, distribute or modify this code
*/
2016-08-02 23:53:40 +02:00
package eu.univento.commons.player.kick;
import eu.univento.commons.player.uuid.NameFetcher;
2017-04-07 17:10:36 +02:00
import java.time.Instant;
2016-08-02 23:53:40 +02:00
import java.util.UUID;
/**
* @author joethei
* @version 1.0
2016-08-02 23:53:40 +02:00
*/
public class KickData {
private KickReason reason;
2017-04-07 17:10:36 +02:00
private Instant date;
2016-08-02 23:53:40 +02:00
private UUID kicker;
2017-04-07 17:10:36 +02:00
public KickData(KickReason reason, Instant date, UUID kicker) {
2016-08-02 23:53:40 +02:00
this.reason = reason;
this.date = date;
this.kicker = kicker;
}
public KickReason getReason() {
return reason;
}
2017-04-07 17:10:36 +02:00
public Instant getDate() {
2016-08-02 23:53:40 +02:00
return date;
}
public UUID getKicker() {
return kicker;
}
public String getKickerName() {
2016-09-17 11:55:07 +02:00
if(kicker == null)
return "Auto Kick";
2016-08-02 23:53:40 +02:00
return NameFetcher.getRequest(kicker);
}
}