mirror of
https://github.com/BGHDDevelopment/PlayerBalancer.git
synced 2024-11-23 11:15:30 +01:00
Fixed a little mistake (because c+p)
This commit is contained in:
parent
1db26e83da
commit
866d5b60fd
@ -42,7 +42,7 @@ public class ConfigEntries implements ConfigEntryHolder {
|
||||
public static final ConfigEntry<Boolean> SERVERS_UPDATE = new ConfigEntry<>(0, "settings.servers-update", false);
|
||||
|
||||
public static final ConfigEntry<String> CONNECTING_MESSAGE = new ConfigEntry<>(0, "settings.messages.connecting-server", null);
|
||||
public static final ConfigEntry<String> CONNECTED_MESSAGE = new ConfigEntry<>(0, "settings.messages.connecting-server", null);
|
||||
public static final ConfigEntry<String> CONNECTED_MESSAGE = new ConfigEntry<>(0, "settings.messages.connected-server", null);
|
||||
public static final ConfigEntry<String> FAILURE_MESSAGE = new ConfigEntry<>(0, "settings.messages.misc-failure", null);
|
||||
public static final ConfigEntry<String> UNKNOWN_SECTION_MESSAGE = new ConfigEntry<>(0, "settings.messages.unknown-section", null);
|
||||
public static final ConfigEntry<String> INVALID_INPUT_MESSAGE = new ConfigEntry<>(0, "settings.messages.invalid-input", null);
|
||||
|
@ -35,8 +35,10 @@ public abstract class ConnectionIntent {
|
||||
ServerInfo target = this.fetchServer(plugin, player, section, provider, servers);
|
||||
if (target != null) {
|
||||
this.connect(target);
|
||||
|
||||
//todo only send this if the above method returns true
|
||||
MessageUtils.send(player, ConfigEntries.CONNECTED_MESSAGE.get(),
|
||||
(str) -> str.replace("{target}", target.getName())
|
||||
(str) -> str.replace("{server}", target.getName())
|
||||
);
|
||||
} else {
|
||||
MessageUtils.send(player, ConfigEntries.FAILURE_MESSAGE.get());
|
||||
|
Loading…
Reference in New Issue
Block a user