From 60693026efbfce36dcba19c3570653858b7370de Mon Sep 17 00:00:00 2001 From: Ruakij Date: Mon, 8 Mar 2021 17:42:29 +0100 Subject: [PATCH] Fixed byName not working --- src/eu/ruekov/ruakij/forceServer/listener/PostLogin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/eu/ruekov/ruakij/forceServer/listener/PostLogin.java b/src/eu/ruekov/ruakij/forceServer/listener/PostLogin.java index 91bddea..3a8fe24 100644 --- a/src/eu/ruekov/ruakij/forceServer/listener/PostLogin.java +++ b/src/eu/ruekov/ruakij/forceServer/listener/PostLogin.java @@ -20,7 +20,7 @@ public class PostLogin implements Listener { // byUUID String forcedTargetServer = Main.forceServerByUUID.get(p.getUniqueId().toString()); // byName - if(forcedTargetServer == null) Main.forceServerByName.get(p.getName()); + if(forcedTargetServer == null) forcedTargetServer = Main.forceServerByName.get(p.getName()); // byPermission if(forcedTargetServer == null) { for(String permission : Main.forceServerByPermission.keySet()) {