Skip to content

Instantly share code, notes, and snippets.

@FormallyMyles
Created July 9, 2016 13:29
Show Gist options
  • Save FormallyMyles/d892a90a77303f86415e834b4b0797a0 to your computer and use it in GitHub Desktop.
Save FormallyMyles/d892a90a77303f86415e834b4b0797a0 to your computer and use it in GitHub Desktop.
Changes for ViaVersion API - Using isPorted
The API now ports all players so that we can send bossbars to 1.9+
This code:
if (ViaVersion.getInstance().isPorted(p)) {
}
Should now be:
if (ViaVersion.getInstance().getPlayerVersion(p) > 47) { // Higher than 1.8
}
This fixes any issues when using 1.9+ only features like boss bars.
@MylesDev
Copy link

MylesDev commented Jul 9, 2016

<3 Myles/ViaVersion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment