Code Cleanup/Added Configurable option to deny and remove homes in ANY factions land.
More Soon..
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user