1
mirror of https://github.com/Shiewk/SModeration.git synced 2026-04-29 06:34:17 +02:00

Add mute command, command usages and smaller improvements

This commit is contained in:
Shy
2024-06-08 11:03:56 +02:00
parent 1bb4c2fc47
commit fe4e87d9b4
8 changed files with 174 additions and 5 deletions
@@ -87,8 +87,11 @@ public class Punishment {
}
public static void issue(Punishment punishment, PunishmentContainer container){
container.add(punishment);
Bukkit.getPluginManager().callEvent(new PunishmentIssueEvent(punishment, container));
final PunishmentIssueEvent event = new PunishmentIssueEvent(punishment, container);
Bukkit.getPluginManager().callEvent(event);
if (!event.isCancelled()){
container.add(punishment);
}
}
public Component playerMessage(){