From c3ab3c1bd2a9ad7a12f005c5e9310482592f4915 Mon Sep 17 00:00:00 2001 From: Magnus Ulf Date: Wed, 3 Mar 2021 21:22:36 +0100 Subject: [PATCH] Bugfix regarding message when setting tax --- src/com/massivecraft/factions/Rel.java | 2 +- src/com/massivecraft/factions/cmd/CmdFactionsTaxSet.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/com/massivecraft/factions/Rel.java b/src/com/massivecraft/factions/Rel.java index cf645f46..0b87e9ea 100644 --- a/src/com/massivecraft/factions/Rel.java +++ b/src/com/massivecraft/factions/Rel.java @@ -40,7 +40,7 @@ public enum Rel implements Colorized, Named, MPerm.MPermable "your faction", "your faction", "your faction", "your faction", "Faction" ) { @Override public ChatColor getColor() { return MConf.get().colorMember; } }, - + // END OF LIST ; diff --git a/src/com/massivecraft/factions/cmd/CmdFactionsTaxSet.java b/src/com/massivecraft/factions/cmd/CmdFactionsTaxSet.java index a06e8315..74f79b4e 100644 --- a/src/com/massivecraft/factions/cmd/CmdFactionsTaxSet.java +++ b/src/com/massivecraft/factions/cmd/CmdFactionsTaxSet.java @@ -7,6 +7,7 @@ import com.massivecraft.factions.entity.Faction; import com.massivecraft.factions.entity.MConf; import com.massivecraft.factions.entity.MPerm; import com.massivecraft.factions.entity.MPlayer; +import com.massivecraft.factions.entity.MPlayerColl; import com.massivecraft.factions.entity.Rank; import com.massivecraft.massivecore.MassiveException; import com.massivecraft.massivecore.command.type.primitive.TypeDouble; @@ -53,7 +54,7 @@ public class CmdFactionsTaxSet extends FactionsCommand if ( ! MPerm.getPermTax().has(msender, faction, true)) return; Rank rank = faction.getRank(taxable); - MPlayer mplayer = MPlayer.get(taxable); + MPlayer mplayer = MPlayerColl.get().get(taxable, false); String name; if (Faction.IDENTIFIER_TAX_BASE.equalsIgnoreCase(taxable)) name = "Default";