Guest User

Untitled

a guest
Apr 2nd, 2013
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.65 KB | None | 0 0
  1.  
  2.     /**
  3.      * Checks if player is in a claim or not
  4.      *
  5.      * @param player
  6.      * @param coords
  7.      * @return
  8.      */
  9.     Boolean check(Player player, Location coords) {
  10.  
  11.         if(GriefPrevention.instance == null) {
  12.             System.out.println("GriefPrevention.instance is null!");
  13.         } else if(GriefPrevention.instance.dataStore == null) {
  14.             System.out.println("GriefPrevention.instance.dataStore is null!");
  15.         } else if(coords == null) {
  16.             System.out.println("coords is null!");
  17.         }
  18.        
  19.         me.ryanhamshire.GriefPrevention.Claim claim = GriefPrevention.instance.dataStore.getClaimAt(coords, true, null);
  20.         if (claim != null) {
  21.             return true;
  22.         }
  23.         return false;
  24.     }
Advertisement
Add Comment
Please, Sign In to add comment