Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Checks if player is in a claim or not
- *
- * @param player
- * @param coords
- * @return
- */
- Boolean check(Player player, Location coords) {
- if(GriefPrevention.instance == null) {
- System.out.println("GriefPrevention.instance is null!");
- } else if(GriefPrevention.instance.dataStore == null) {
- System.out.println("GriefPrevention.instance.dataStore is null!");
- } else if(coords == null) {
- System.out.println("coords is null!");
- }
- me.ryanhamshire.GriefPrevention.Claim claim = GriefPrevention.instance.dataStore.getClaimAt(coords, true, null);
- if (claim != null) {
- return true;
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment