Skip to content

Instantly share code, notes, and snippets.

@vemacs
Created April 18, 2014 20:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vemacs/11062118 to your computer and use it in GitHub Desktop.
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