Skip to content

Commit

Permalink
Fix missing option in *LoginListener
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre601 committed Jun 28, 2022
1 parent 3a3a813 commit 36feae7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public BungeeLoginListener(BungeeCore plugin){
@EventHandler(priority = EventPriority.LOWEST)
public void onLogin(PreLoginEvent event){
List<Integer> serverProtocols = plugin.getConfigHandler().getIntList("Protocol", "Versions");
List<String> kickMessage = plugin.getConfigHandler().getStringList("Messages", "Kick");
List<String> kickMessage = plugin.getConfigHandler().getStringList(false, "Messages", "Kick");

boolean majorOnly = plugin.getConfigHandler().getBoolean(false, "Protocol", "MajorOnly");
int userProtocol = event.getConnection().getVersion();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public VelocityLoginListener(VelocityCore plugin){
@Subscribe(order = PostOrder.FIRST)
public void onPreLogin(PreLoginEvent event){
List<Integer> serverProtocols = plugin.getConfigHandler().getIntList("Protocol", "Versions");
List<String> kickMessage = plugin.getConfigHandler().getStringList("Messages", "Kick");
List<String> kickMessage = plugin.getConfigHandler().getStringList(false, "Messages", "Kick");

boolean majorOnly = plugin.getConfigHandler().getBoolean(false, "Protocol", "MajorOnly");
int userProtocol = event.getConnection().getProtocolVersion().getProtocol();
Expand Down

0 comments on commit 36feae7

Please sign in to comment.