Created
July 5, 2011 20:13
-
-
Save EdGruberman/1065810 to your computer and use it in GitHub Desktop.
getFrom/getTo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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