UltimateModeration/src/main/java/com/craftaro/ultimatemoderation/punish/template/Template.java

39 lines
1.2 KiB
Java

package com.craftaro.ultimatemoderation.punish.template;
import com.craftaro.ultimatemoderation.punish.Punishment;
import com.craftaro.ultimatemoderation.punish.PunishmentType;
import org.bukkit.entity.Player;
import java.util.UUID;
public class Template extends Punishment {
private final String templateName;
private final UUID creator;
public Template(PunishmentType punishmentType, long duration, String reason, Player creator, String name) {
super(punishmentType, duration, reason);
this.creator = creator.getUniqueId();
this.templateName = name;
}
public Template(PunishmentType punishmentType, long duration, String reason, UUID creator, String name, int id) {
super(punishmentType, duration, reason, id);
this.creator = creator;
this.templateName = name;
}
public Template(PunishmentType punishmentType, long duration, String reason, UUID creator, String name) {
super(punishmentType, duration, reason);
this.creator = creator;
this.templateName = name;
}
public String getName() {
return this.templateName;
}
public UUID getCreator() {
return this.creator;
}
}