Skip to content

Commit

Permalink
4.3.0 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
kennytv committed Sep 17, 2024
1 parent 10c661e commit 69b4336
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ This file contains update logs for this project. The top may contain a `Unreleas
### Changed
* Added alternative player count and player list hover message for when endtimers are running, similar to the existing ping messages setting. They are disabled by default and can be found in their `player-count-message` and `player-list-hover-message` config sections
* All timer commands now accept durations like `2h30m`, `1h30m5s`, or `90s`. The default behavior without units will still be in minutes
* The language defaults will not automatically update, you might want to manually update the command help strings or just delete your language file
* The language defaults will *not* automatically update the command help messages
* Slightly reorganized the configuration file (it will be automatically migrated on startup, but new sections will be slapped at the bottom of the file)
* The `fallback` field now also null values next to an empty array for disabling the feature
* The `fallback` field now also accepts null values next to an empty array for disabling the feature
* Updated language files from [Crowdin](https://crowdin.com/translate/maintenance)

### Fixed
Expand Down
5 changes: 4 additions & 1 deletion core/src/main/java/eu/kennytv/maintenance/core/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Random;
import java.util.Set;
Expand Down Expand Up @@ -248,7 +249,9 @@ private void updatePluginDirectory() {
// All plugin identifiers were changed to 'Maintenance' ('maintenance' for Sponge and Velocity) in 3.0.5
String oldDirName = "Maintenance" + plugin.getServerType();
if (plugin.getServerType() == ServerType.SPONGE || plugin.getServerType() == ServerType.VELOCITY) {
oldDirName = oldDirName.toLowerCase();
oldDirName = oldDirName.toLowerCase(Locale.ROOT);
} else if (plugin.getServerType() == ServerType.SPIGOT) {
oldDirName = "MaintenanceSpigot";
}

final File oldDir = new File(plugin.getDataFolder().getParentFile(), oldDirName);
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
projectVersion=4.3.0-SNAPSHOT
projectVersion=4.3.0

# Gradle properties
org.gradle.daemon=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public final class MaintenancePaperPlugin extends MaintenancePlugin {
pm.registerEvents(new ServerInfoPacketListener(this, plugin, settings), plugin);
} else {
pm.registerEvents(new ServerListPingListener(this, settings), plugin);
getLogger().warning("To use this plugin on Spigot to its full extend, you need the plugin ProtocolLib!");
getLogger().warning("To use this plugin on Spigot to its full extent, you need the plugin ProtocolLib!");
}

continueLastEndtimer();
Expand Down

0 comments on commit 69b4336

Please sign in to comment.