Permalink
Browse files

Added UUID support with player name as secondary. (#374)

  • Loading branch information...
Mishyy authored and wizjany committed Jan 21, 2018
1 parent 95b88ea commit 0f72811bfcd96617dd37081345525fd67531d497
View
0 gradlew 100644 → 100755
No changes.
@@ -175,7 +175,11 @@ public void onPlayerLogin(PlayerLoginEvent event) {
Player player = event.getPlayer();
ConfigurationManager cfg = plugin.getGlobalStateManager();
String hostKey = cfg.hostKeys.get(player.getName().toLowerCase());
String hostKey = cfg.hostKeys.get(player.getUniqueId().toString());
if (hostKey == null) {
hostKey = cfg.hostKeys.get(player.getName().toLowerCase());
}
if (hostKey != null) {
String hostname = event.getHostname();
int colonIndex = hostname.indexOf(':');

0 comments on commit 0f72811

Please sign in to comment.