Skip to content

Commit

Permalink
Added UUID support with player name as secondary. (#374)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitchell Cook authored and wizjany committed Jan 21, 2018
1 parent 95b88ea commit 0f72811
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Empty file modified gradlew 100644 → 100755
Empty file.
Expand Up @@ -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(':');
Expand Down

0 comments on commit 0f72811

Please sign in to comment.