Made the bypass message configurable

This commit is contained in:
Jaime Martinez Rincon 2017-04-23 18:47:57 +02:00
parent 1f3c2b5094
commit 1ed0bbed77
4 changed files with 4 additions and 2 deletions

View File

@ -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>

View File

@ -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);
}

View File

@ -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;
}

View File

@ -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