Skip to content

Commit 8a106e4

Browse files
committed
Fix schedule duration argument swap on proxies
1 parent f4a3404 commit 8a106e4

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Maintenance Changelog
22
This file contains update logs for this project. The top may contain a `Unreleased` section, gathering update logs for a future update during development.
33

4+
---
5+
## 4.3.1 - Unreleased
6+
7+
### Fixed
8+
* Velocity/Bungee: Fixed the `/maintenance schedule` command for single servers having swapped time arguments.
49
---
510
## 4.3.0 - September 17th 2024
611
### Changed

core-proxy/src/main/java/eu/kennytv/maintenance/core/proxy/command/subcommand/SingleScheduleTimerCommand.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import eu.kennytv.maintenance.core.runnable.MaintenanceRunnableBase;
2424
import eu.kennytv.maintenance.core.util.SenderInfo;
2525
import java.time.Duration;
26+
import java.util.Arrays;
2627
import java.util.Collections;
2728
import java.util.List;
2829

@@ -53,7 +54,7 @@ public void execute(final SenderInfo sender, final String[] args) {
5354
return;
5455
}
5556

56-
plugin.scheduleMaintenanceRunnable(duration, enableIn);
57+
plugin.scheduleMaintenanceRunnable(enableIn, duration);
5758
sender.send(getMessage(
5859
"scheduletimerStarted",
5960
"%TIME%", plugin.getRunnable().getTime(),

0 commit comments

Comments
 (0)