Skip to content

Instantly share code, notes, and snippets.

@vemacs
Created April 18, 2014 20:07
Show Gist options
  • Select an option

  • Save vemacs/11062118 to your computer and use it in GitHub Desktop.

Select an option

Save vemacs/11062118 to your computer and use it in GitHub Desktop.
public boolean isForwarded(Player player) {
UUID uuid = player.getUniqueId();
UUID generatedId = UUID.nameUUIDFromBytes(("OfflinePlayer:"
+ player.getName()).getBytes(Charsets.UTF_8));
return !uuid.equals(generatedId);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment