fixed event commands, removed infinite saturation, added player join check

This commit is contained in:
2025-12-23 23:40:58 +01:00
parent 9ec883d6ad
commit 5e3db1e78c
4 changed files with 26 additions and 10 deletions

View File

@@ -19,10 +19,10 @@ public class EventOpenSessionCommand extends ApplianceCommand<Event> {
@Override
protected void execute(@NotNull CommandSender sender, @NotNull Command command, @NotNull String label, @NotNull String[] args) throws Exception {
if(args.length == 1) {
if(args.length == 0) {
this.getAppliance().openEvent(Event.EventType.SMALL);
} else {
this.getAppliance().openEvent(Event.EventType.valueOf(args[1]));
this.getAppliance().openEvent(Event.EventType.valueOf(args[0]));
}
sender.sendMessage(Component.text("Event-Server gestartet!", NamedTextColor.GREEN));
}