mirror of
https://github.com/songoda/UltimateModeration.git
synced 2024-09-24 20:52:45 +02:00
40 lines
1.2 KiB
Java
40 lines
1.2 KiB
Java
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;
|
|
|
|
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 templateName;
|
|
}
|
|
|
|
public UUID getCreator() {
|
|
return creator;
|
|
}
|
|
}
|