aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/hype/bbsentials/packets
diff options
context:
space:
mode:
authorHacktheTime <l4bg0jb7@duck.com>2023-09-26 19:49:04 +0200
committerHacktheTime <l4bg0jb7@duck.com>2023-09-26 19:49:04 +0200
commit29f560cc2d3fcaa4e741b4db35af1ed154da9e96 (patch)
treebfb8900b0ac88c85df8ce23f305ef0548b943cd6 /src/main/java/de/hype/bbsentials/packets
parent1e8c85d2bbf1d8a6fb7bc125becd790c15654dbe (diff)
downloadBBsentials-29f560cc2d3fcaa4e741b4db35af1ed154da9e96.tar.gz
BBsentials-29f560cc2d3fcaa4e741b4db35af1ed154da9e96.tar.bz2
BBsentials-29f560cc2d3fcaa4e741b4db35af1ed154da9e96.zip
lots of bug fixes and improved punishment system ba making it as custom packet.
Diffstat (limited to 'src/main/java/de/hype/bbsentials/packets')
-rw-r--r--src/main/java/de/hype/bbsentials/packets/packets/PunishUserPacket.java24
1 files changed, 24 insertions, 0 deletions
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;
+
+}