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:
@@ -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(){
|
||||
|
||||
Reference in New Issue
Block a user