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

39 lines
1.2 KiB
Java
Raw Normal View History

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() {
return this.templateName;
2019-03-03 22:33:44 +01:00
}
public UUID getCreator() {
return this.creator;
2019-03-03 22:33:44 +01:00
}
}