Files
Factions3/src/main/java/com/massivecraft/factions/event/EventFactionsPermChange.java

69 lines
1.7 KiB
Java

package com.massivecraft.factions.event;
import com.massivecraft.factions.entity.Faction;
import com.massivecraft.factions.entity.MPerm;
import org.bukkit.command.CommandSender;
import org.bukkit.event.HandlerList;
public class EventFactionsPermChange extends EventFactionsAbstractSender {
// -------------------------------------------- //
// REQUIRED EVENT CODE
// -------------------------------------------- //
private static final HandlerList handlers = new HandlerList();
@Override
public HandlerList getHandlers() {
return handlers;
}
public static HandlerList getHandlerList() {
return handlers;
}
// -------------------------------------------- //
// FIELDS
// -------------------------------------------- //
private final Faction faction;
public Faction getFaction() {
return this.faction;
}
private final MPerm perm;
public MPerm getPerm() {
return this.perm;
}
private final MPerm.MPermable permable;
public MPerm.MPermable getRel() {
return this.permable;
}
private boolean newValue;
public boolean getNewValue() {
return this.newValue;
}
public void setNewValue(boolean newValue) {
this.newValue = newValue;
}
// -------------------------------------------- //
// CONSTRUCT
// -------------------------------------------- //
public EventFactionsPermChange(CommandSender sender, Faction faction, MPerm perm, MPerm.MPermable permable, boolean newValue) {
super(sender);
this.faction = faction;
this.perm = perm;
this.permable = permable;
this.newValue = newValue;
}
}