Skip to content

Commit

Permalink
Update GPListener.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Baktus79 committed Apr 15, 2021
1 parent 7c80dc9 commit 2817b88
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package no.vestlandetmc.BanFromClaim.listener;

import org.bukkit.Bukkit;
import java.util.UUID;

import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
Expand All @@ -22,10 +22,11 @@ public class GPListener implements Listener {
public void onPlayerEnterClaim(PlayerMoveEvent e) {
final Location locFrom = e.getFrom();
final Location locTo = e.getTo();

if(locFrom.getBlock().equals(locTo.getBlock())) { return; }

final Player player = e.getPlayer();

final Location loc = e.getTo();
final Claim claim = GriefPrevention.instance.dataStore.getClaimAt(locTo, true, null);
final UUID ownerUUID = claim.ownerID;
boolean hasAttacked = false;
Expand Down

0 comments on commit 2817b88

Please sign in to comment.