2019-03-03 22:33:44 +01:00
|
|
|
package com.songoda.ultimatemoderation.punish.template;
|
|
|
|
|
|
|
|
import com.songoda.ultimatemoderation.punish.Punishment;
|
|
|
|
import com.songoda.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;
|
|
|
|
|
2020-08-05 00:20:25 +02:00
|
|
|
public Template(PunishmentType punishmentType, long duration, String reason, Player creator, String name) {
|
2019-03-03 22:33:44 +01:00
|
|
|
super(punishmentType, duration, reason);
|
|
|
|
this.creator = creator.getUniqueId();
|
2020-08-05 00:20:25 +02:00
|
|
|
this.templateName = name;
|
2019-03-03 22:33:44 +01:00
|
|
|
}
|
|
|
|
|
2020-08-05 00:20:25 +02:00
|
|
|
public Template(PunishmentType punishmentType, long duration, String reason, UUID creator, String name, int id) {
|
|
|
|
super(punishmentType, duration, reason, id);
|
2019-03-05 06:06:02 +01:00
|
|
|
this.creator = creator;
|
2020-08-05 00:20:25 +02:00
|
|
|
this.templateName = name;
|
2019-03-05 06:06:02 +01:00
|
|
|
}
|
|
|
|
|
2020-08-05 00:20:25 +02:00
|
|
|
public Template(PunishmentType punishmentType, long duration, String reason, UUID creator, String name) {
|
2019-03-03 22:33:44 +01:00
|
|
|
super(punishmentType, duration, reason);
|
|
|
|
this.creator = creator;
|
2020-08-05 00:20:25 +02:00
|
|
|
this.templateName = name;
|
2019-03-03 22:33:44 +01:00
|
|
|
}
|
|
|
|
|
2020-08-05 00:20:25 +02:00
|
|
|
public String getName() {
|
2019-03-03 22:33:44 +01:00
|
|
|
return templateName;
|
|
|
|
}
|
|
|
|
|
|
|
|
public UUID getCreator() {
|
|
|
|
return creator;
|
|
|
|
}
|
|
|
|
}
|