Skip to content

Instantly share code, notes, and snippets.

@EdGruberman
Created July 5, 2011 20:13
Show Gist options
  • Save EdGruberman/1065810 to your computer and use it in GitHub Desktop.
Save EdGruberman/1065810 to your computer and use it in GitHub Desktop.
getFrom/getTo
@Override
public void onPlayerMove(PlayerMoveEvent event) {
if (event.isCancelled()) return;
Block from = event.getFrom().getBlock();
Block to = event.getTo().getBlock();
if (from.equals(to)) return;
this.main.checkCrossings(event.getPlayer(), from, to);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment