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
5 changed files
with
159 additions
and
28 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
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
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
47 changes: 47 additions & 0 deletions
47
src/main/java/net/sacredlabyrinth/phaed/simpleclans/events/PrePlayerKickedClanEvent.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,47 @@ | ||
package net.sacredlabyrinth.phaed.simpleclans.events; | ||
|
||
import net.sacredlabyrinth.phaed.simpleclans.Clan; | ||
import net.sacredlabyrinth.phaed.simpleclans.ClanPlayer; | ||
import org.bukkit.event.Event; | ||
import org.bukkit.event.HandlerList; | ||
|
||
/** | ||
* @author ThiagoROX | ||
*/ | ||
public class PrePlayerKickedClanEvent extends Event { | ||
|
||
private static final HandlerList handlers = new HandlerList(); | ||
private final Clan clan; | ||
private final ClanPlayer target; | ||
private boolean cancelled; | ||
|
||
public PrePlayerKickedClanEvent(Clan clan, ClanPlayer target) { | ||
this.clan = clan; | ||
this.target = target; | ||
} | ||
|
||
public Clan getClan() { | ||
return this.clan; | ||
} | ||
|
||
public ClanPlayer getClanPlayer() { | ||
return this.target; | ||
} | ||
|
||
@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; | ||
} | ||
} |
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