Code Cleanup/Added Configurable option to deny and remove homes in ANY factions land.

More Soon..
This commit is contained in:
Driftay
2019-02-10 23:57:45 -05:00
parent 3559a9f090
commit 5a37320397
125 changed files with 3676 additions and 3410 deletions

View File

@@ -11,9 +11,9 @@ import org.bukkit.event.Cancellable;
*/
public class FactionDisbandEvent extends FactionEvent implements Cancellable {
private boolean cancelled = false;
private final Player sender;
private final PlayerDisbandReason reason;
private boolean cancelled = false;
public FactionDisbandEvent(Player sender, String factionId, PlayerDisbandReason reason) {
super(Factions.getInstance().getFactionById(factionId));
@@ -30,10 +30,10 @@ public class FactionDisbandEvent extends FactionEvent implements Cancellable {
}
public PlayerDisbandReason getReason() {
return reason;
}
return reason;
}
@Override
@Override
public boolean isCancelled() {
return cancelled;
}
@@ -42,7 +42,7 @@ public class FactionDisbandEvent extends FactionEvent implements Cancellable {
public void setCancelled(boolean c) {
cancelled = c;
}
public enum PlayerDisbandReason {
COMMAND,
PLUGIN,

View File

@@ -1,9 +1,8 @@
package com.massivecraft.factions.event;
import org.bukkit.event.Cancellable;
import com.massivecraft.factions.FPlayer;
import com.massivecraft.factions.Faction;
import org.bukkit.event.Cancellable;
/**
* Event called when a player regenerate power.