From 29f560cc2d3fcaa4e741b4db35af1ed154da9e96 Mon Sep 17 00:00:00 2001 From: HacktheTime Date: Tue, 26 Sep 2023 19:49:04 +0200 Subject: lots of bug fixes and improved punishment system ba making it as custom packet. --- .../packets/packets/PunishUserPacket.java | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/main/java/de/hype/bbsentials/packets/packets/PunishUserPacket.java (limited to 'src/main/java/de/hype/bbsentials/packets') diff --git a/src/main/java/de/hype/bbsentials/packets/packets/PunishUserPacket.java b/src/main/java/de/hype/bbsentials/packets/packets/PunishUserPacket.java new file mode 100644 index 0000000..43cb6e5 --- /dev/null +++ b/src/main/java/de/hype/bbsentials/packets/packets/PunishUserPacket.java @@ -0,0 +1,24 @@ +package de.hype.bbsentials.packets.packets; + +import de.hype.bbsentials.packets.AbstractPacket; + +public class PunishUserPacket extends AbstractPacket { + public static final String PUNISHMENT_TYPE_BAN = "BAN"; + public static final String PUNISHMENT_TYPE_MUTE = "MUTE"; + + public PunishUserPacket(String punishmentType,int userId, String username, String duration, String reason) { + super(1, 1); + this.type = punishmentType; + this.username = username; + this.userId = userId; + this.duration = duration; + this.reason = reason; + } + + public final String username; + public final String type; + public final int userId; + public final String duration; + public final String reason; + +} -- cgit