diff --git a/src/main/java/net/tiagofar78/prisonescape/managers/ConfigManager.java b/src/main/java/net/tiagofar78/prisonescape/managers/ConfigManager.java index 7d496f0e..8e630dc7 100644 --- a/src/main/java/net/tiagofar78/prisonescape/managers/ConfigManager.java +++ b/src/main/java/net/tiagofar78/prisonescape/managers/ConfigManager.java @@ -260,7 +260,7 @@ public int getDelayBetweenAnnouncements() { } public List getAvailableLanguages() { - return _availableLanguages; + return new ArrayList<>(_availableLanguages); } public String getDefaultLanguage() { diff --git a/src/main/java/net/tiagofar78/prisonescape/managers/MessageLanguageManager.java b/src/main/java/net/tiagofar78/prisonescape/managers/MessageLanguageManager.java index 365750c0..1bf9509c 100644 --- a/src/main/java/net/tiagofar78/prisonescape/managers/MessageLanguageManager.java +++ b/src/main/java/net/tiagofar78/prisonescape/managers/MessageLanguageManager.java @@ -532,7 +532,7 @@ public String getPlayerWasNeverInGameMessage() { // ######################################## public List getUsage() { - return _usageMessage; + return new ArrayList<>(_usageMessage); } public String getStartCommandUsage() {