Promote, kick, and admin command bugs fixed.
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
package com.massivecraft.factions.event;
|
||||
|
||||
import com.massivecraft.factions.FPlayer;
|
||||
import com.massivecraft.factions.Faction;
|
||||
import org.bukkit.event.HandlerList;
|
||||
|
||||
public class FPlayerEnteredFactionEvent extends FactionPlayerEvent {
|
||||
|
||||
private static final HandlerList handlers = new HandlerList();
|
||||
private FPlayer fPlayer;
|
||||
private Faction factionTo;
|
||||
private Faction factionFrom;
|
||||
|
||||
public FPlayerEnteredFactionEvent(Faction factionTo, Faction factionFrom, FPlayer fPlayer) {
|
||||
super(fPlayer.getFaction(), fPlayer);
|
||||
this.factionFrom = factionFrom;
|
||||
this.factionTo = factionTo;
|
||||
this.fPlayer = fPlayer;
|
||||
}
|
||||
|
||||
public static HandlerList getHandlerList() {
|
||||
return handlers;
|
||||
}
|
||||
|
||||
public HandlerList getHandlers() {
|
||||
return handlers;
|
||||
}
|
||||
|
||||
@Override
|
||||
public FPlayer getfPlayer() {
|
||||
return fPlayer;
|
||||
}
|
||||
|
||||
public Faction getFactionTo() {
|
||||
return factionTo;
|
||||
}
|
||||
|
||||
public Faction getFactionFrom() {
|
||||
return factionFrom;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.massivecraft.factions.event;
|
||||
|
||||
import com.massivecraft.factions.FPlayer;
|
||||
import org.bukkit.event.HandlerList;
|
||||
|
||||
public class FPlayerStoppedFlying extends FactionPlayerEvent {
|
||||
private static final HandlerList handlers = new HandlerList();
|
||||
private FPlayer fPlayer;
|
||||
|
||||
|
||||
public FPlayerStoppedFlying(FPlayer fPlayer) {
|
||||
super(fPlayer.getFaction(), fPlayer);
|
||||
this.fPlayer = fPlayer;
|
||||
}
|
||||
|
||||
public static HandlerList getHandlerList() {
|
||||
return handlers;
|
||||
}
|
||||
|
||||
@Override
|
||||
public FPlayer getfPlayer() {
|
||||
return fPlayer;
|
||||
}
|
||||
|
||||
public HandlerList getHandlers() {
|
||||
return handlers;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user