Skip to content

Commit 1ed0bbe

Browse files
committed
Made the bypass message configurable
1 parent 1f3c2b5 commit 1ed0bbe

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>me.jaimemartz</groupId>
88
<artifactId>lobbybalancer</artifactId>
9-
<version>2.0.9.5</version>
9+
<version>2.0.9.6</version>
1010
<name>LobbyBalancer</name>
1111

1212
<properties>

src/main/java/me/jaimemartz/lobbybalancer/configuration/ConfigEntries.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public class ConfigEntries implements ConfigEntryHolder {
4747
public static final ConfigEntry<String> INVALID_INPUT_MESSAGE = new ConfigEntry<>(0, "settings.messages.invalid-input", null);
4848
public static final ConfigEntry<String> UNAVAILABLE_MESSAGE = new ConfigEntry<>(0, "settings.messages.unavailable-server", null);
4949
public static final ConfigEntry<String> KICK_MESSAGE = new ConfigEntry<>(0, "settings.messages.player-kicked", null);
50+
public static final ConfigEntry<String> BYPASS_MESAGE = new ConfigEntry<>(0, "settings.messages.player-bypass", null);
5051

5152
public static final ConfigEntry<String> CONFIG_VERSION = new ConfigEntry<>(0, "version", null);
5253
}

src/main/java/me/jaimemartz/lobbybalancer/listener/ServerConnectListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public void onConnect(ServerConnectEvent event) {
4444
}
4545

4646
if (player.hasPermission("lobbybalancer.bypass")) {
47-
msgr.send(ChatColor.RED + "You have not been moved because you have the lobbybalancer.bypass permission");
47+
msgr.send(ConfigEntries.BYPASS_MESAGE.get());
4848
return null;
4949
}
5050

src/main/resources/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ settings:
116116
invalid-input: '&cThis is an invalid input type for this command'
117117
unavailable-server: '&cThis command cannot be executed on this server'
118118
player-kicked: '&cYou have been kicked from &a{from} &cand you are being moved to &a{to}&c, reason: &a{reason}'
119+
player-bypass: '&cYou have not been moved because you have the lobbybalancer.bypass permission'
119120

120121
# Here you have an example of what you can do with the sections
121122
# The plugin will print out info telling you if your config is right or not

0 commit comments

Comments
 (0)