Advertisement
deseven

GP event data fix

May 21st, 2012
452
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.43 KB | None | 0 0
  1. PlayerEventHandler.java:600
  2.  
  3. Material clickedBlockType = clickedBlock.getType();
  4.        
  5. if (clickedBlockType == null) {
  6.     Claim claim = this.dataStore.getClaimAt(clickedBlock.getLocation(), false, null);
  7.     if (claim != null) {
  8.         String noAccessReason = claim.allowAccess(player);
  9.         if (noAccessReason != null) {
  10.             event.setCancelled(true);
  11.             GriefPrevention.sendMessage(player, TextMode.Err, noAccessReason);
  12.         }
  13.     }
  14.     return;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement