forked from RoinujNosde/SimpleClans
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
src/main/java/net/sacredlabyrinth/phaed/simpleclans/events/PreDisbandClanEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
package net.sacredlabyrinth.phaed.simpleclans.events; | ||
|
||
import net.sacredlabyrinth.phaed.simpleclans.Clan; | ||
import org.bukkit.Bukkit; | ||
import org.bukkit.command.CommandSender; | ||
import org.bukkit.event.Event; | ||
import org.bukkit.event.HandlerList; | ||
|
||
/** | ||
* @author ThiagoROX | ||
*/ | ||
public class PreDisbandClanEvent extends Event { | ||
|
||
private static final HandlerList handlers = new HandlerList(); | ||
private final CommandSender sender; | ||
private final Clan clan; | ||
private boolean cancelled; | ||
|
||
public PreDisbandClanEvent(CommandSender sender, Clan clan) { | ||
if (sender == null) { | ||
sender = Bukkit.getConsoleSender(); | ||
} | ||
this.sender = sender; | ||
this.clan = clan; | ||
} | ||
|
||
public Clan getClan() { | ||
return this.clan; | ||
} | ||
|
||
public CommandSender getSender() { | ||
return sender; | ||
} | ||
|
||
@Override | ||
public HandlerList getHandlers() { | ||
return handlers; | ||
} | ||
|
||
public static HandlerList getHandlerList() { | ||
return handlers; | ||
} | ||
|
||
public boolean isCancelled() { | ||
return cancelled; | ||
} | ||
|
||
public void setCancelled(boolean cancelled) { | ||
this.cancelled = cancelled; | ||
} | ||
} |