Rank rework
This makes an under the hood rank-rework. Nothing is changed from the player perspective.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package com.massivecraft.factions.event;
|
||||
|
||||
import com.massivecraft.factions.Rel;
|
||||
import com.massivecraft.factions.entity.Faction;
|
||||
import com.massivecraft.factions.entity.MPerm;
|
||||
import org.bukkit.command.CommandSender;
|
||||
@@ -26,8 +25,8 @@ public class EventFactionsPermChange extends EventFactionsAbstractSender
|
||||
private final MPerm perm;
|
||||
public MPerm getPerm() { return this.perm; }
|
||||
|
||||
private final Rel rel;
|
||||
public Rel getRel() { return this.rel; }
|
||||
private final MPerm.MPermable permable;
|
||||
public MPerm.MPermable getRel() { return this.permable; }
|
||||
|
||||
private boolean newValue;
|
||||
public boolean getNewValue() { return this.newValue; }
|
||||
@@ -37,12 +36,12 @@ public class EventFactionsPermChange extends EventFactionsAbstractSender
|
||||
// CONSTRUCT
|
||||
// -------------------------------------------- //
|
||||
|
||||
public EventFactionsPermChange(CommandSender sender, Faction faction, MPerm perm, Rel rel, boolean newValue)
|
||||
public EventFactionsPermChange(CommandSender sender, Faction faction, MPerm perm, MPerm.MPermable permable, boolean newValue)
|
||||
{
|
||||
super(sender);
|
||||
this.faction = faction;
|
||||
this.perm = perm;
|
||||
this.rel = rel;
|
||||
this.permable = permable;
|
||||
this.newValue = newValue;
|
||||
}
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
package com.massivecraft.factions.event;
|
||||
|
||||
import com.massivecraft.factions.Rel;
|
||||
import com.massivecraft.factions.entity.MPlayer;
|
||||
import com.massivecraft.factions.entity.Rank;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.event.HandlerList;
|
||||
|
||||
@@ -22,15 +22,15 @@ public class EventFactionsRankChange extends EventFactionsAbstractSender
|
||||
private final MPlayer mplayer;
|
||||
public MPlayer getMPlayer() { return this.mplayer; }
|
||||
|
||||
private Rel newRank;
|
||||
public Rel getNewRank() { return this.newRank; }
|
||||
public void setNewRank(Rel newRole) { this.newRank = newRole; }
|
||||
private Rank newRank;
|
||||
public Rank getNewRank() { return this.newRank; }
|
||||
public void setNewRank(Rank newRole) { this.newRank = newRole; }
|
||||
|
||||
// -------------------------------------------- //
|
||||
// CONSTRUCT
|
||||
// -------------------------------------------- //
|
||||
|
||||
public EventFactionsRankChange(CommandSender sender, MPlayer mplayer, Rel newRank)
|
||||
public EventFactionsRankChange(CommandSender sender, MPlayer mplayer, Rank newRank)
|
||||
{
|
||||
super(sender);
|
||||
this.mplayer = mplayer;
|
||||
|
Reference in New Issue
Block a user