mirror of
https://github.com/BGHDDevelopment/PlayerBalancer.git
synced 2025-02-17 04:31:45 +01:00
Made the bypass message configurable
This commit is contained in:
parent
1f3c2b5094
commit
1ed0bbed77
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>me.jaimemartz</groupId>
|
||||
<artifactId>lobbybalancer</artifactId>
|
||||
<version>2.0.9.5</version>
|
||||
<version>2.0.9.6</version>
|
||||
<name>LobbyBalancer</name>
|
||||
|
||||
<properties>
|
||||
|
@ -47,6 +47,7 @@ public class ConfigEntries implements ConfigEntryHolder {
|
||||
public static final ConfigEntry<String> INVALID_INPUT_MESSAGE = new ConfigEntry<>(0, "settings.messages.invalid-input", null);
|
||||
public static final ConfigEntry<String> UNAVAILABLE_MESSAGE = new ConfigEntry<>(0, "settings.messages.unavailable-server", null);
|
||||
public static final ConfigEntry<String> KICK_MESSAGE = new ConfigEntry<>(0, "settings.messages.player-kicked", null);
|
||||
public static final ConfigEntry<String> BYPASS_MESAGE = new ConfigEntry<>(0, "settings.messages.player-bypass", null);
|
||||
|
||||
public static final ConfigEntry<String> CONFIG_VERSION = new ConfigEntry<>(0, "version", null);
|
||||
}
|
||||
|
@ -44,7 +44,7 @@ public class ServerConnectListener implements Listener {
|
||||
}
|
||||
|
||||
if (player.hasPermission("lobbybalancer.bypass")) {
|
||||
msgr.send(ChatColor.RED + "You have not been moved because you have the lobbybalancer.bypass permission");
|
||||
msgr.send(ConfigEntries.BYPASS_MESAGE.get());
|
||||
return null;
|
||||
}
|
||||
|
||||
|
@ -116,6 +116,7 @@ settings:
|
||||
invalid-input: '&cThis is an invalid input type for this command'
|
||||
unavailable-server: '&cThis command cannot be executed on this server'
|
||||
player-kicked: '&cYou have been kicked from &a{from} &cand you are being moved to &a{to}&c, reason: &a{reason}'
|
||||
player-bypass: '&cYou have not been moved because you have the lobbybalancer.bypass permission'
|
||||
|
||||
# Here you have an example of what you can do with the sections
|
||||
# The plugin will print out info telling you if your config is right or not
|
||||
|
Loading…
Reference in New Issue
Block a user