Use PS instead of FLocation in a few places.

This commit is contained in:
Olof Larsson
2013-04-11 11:11:31 +02:00
parent 4cc36b8d96
commit 4a63d50cbb
22 changed files with 217 additions and 187 deletions

View File

@ -4,9 +4,10 @@ import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
import com.massivecraft.factions.FLocation;
import com.massivecraft.factions.Faction;
import com.massivecraft.factions.FPlayer;
import com.massivecraft.mcore.ps.PS;
import org.bukkit.entity.Player;
public class LandClaimEvent extends Event implements Cancellable
@ -27,8 +28,8 @@ public class LandClaimEvent extends Event implements Cancellable
@Override public boolean isCancelled() { return this.cancelled; }
@Override public void setCancelled(boolean cancelled) { this.cancelled = cancelled; }
private final FLocation location;
public FLocation getLocation() { return this.location; }
private final PS chunk;
public PS getChunk() { return this.chunk; }
private final Faction faction;
public Faction getFaction() { return this.faction; }
@ -45,10 +46,10 @@ public class LandClaimEvent extends Event implements Cancellable
// CONSTRUCT
// -------------------------------------------- //
public LandClaimEvent(FLocation location, Faction faction, FPlayer fplayer)
public LandClaimEvent(PS chunk, Faction faction, FPlayer fplayer)
{
this.cancelled = false;
this.location = location;
this.chunk = chunk.getChunk(true);
this.faction = faction;
this.fplayer = fplayer;
}

View File

@ -4,9 +4,10 @@ import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
import com.massivecraft.factions.FLocation;
import com.massivecraft.factions.Faction;
import com.massivecraft.factions.FPlayer;
import com.massivecraft.mcore.ps.PS;
import org.bukkit.entity.Player;
public class LandUnclaimEvent extends Event implements Cancellable
@ -27,8 +28,8 @@ public class LandUnclaimEvent extends Event implements Cancellable
@Override public boolean isCancelled() { return this.cancelled; }
@Override public void setCancelled(boolean cancelled) { this.cancelled = cancelled; }
private final FLocation location;
public FLocation getLocation() { return this.location; }
private final PS chunk;
public PS getChunk() { return this.chunk; }
private final Faction faction;
public Faction getFaction() { return this.faction; }
@ -45,10 +46,10 @@ public class LandUnclaimEvent extends Event implements Cancellable
// CONSTRUCT
// -------------------------------------------- //
public LandUnclaimEvent(FLocation location, Faction faction, FPlayer fplayer)
public LandUnclaimEvent(PS chunk, Faction faction, FPlayer fplayer)
{
this.cancelled = false;
this.location = location;
this.chunk = chunk.getChunk(true);
this.faction = faction;
this.fplayer = fplayer;
}