Fixed Bug with Points
This commit is contained in:
parent
664d27a57c
commit
92d46f91f4
@ -37,10 +37,12 @@ public class CmdPointsAdd extends FCommand {
|
|||||||
public void perform() {
|
public void perform() {
|
||||||
Faction faction = Factions.getInstance().getByTag(args.get(0));
|
Faction faction = Factions.getInstance().getByTag(args.get(0));
|
||||||
|
|
||||||
|
if (faction == null) {
|
||||||
FPlayer fPlayer = this.argAsFPlayer(0);
|
FPlayer fPlayer = this.argAsFPlayer(0);
|
||||||
if (fPlayer != null) {
|
if (fPlayer != null) {
|
||||||
faction = fPlayer.getFaction();
|
faction = fPlayer.getFaction();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (faction == null || faction.isWilderness()) {
|
if (faction == null || faction.isWilderness()) {
|
||||||
fme.msg(TL.COMMAND_POINTS_FAILURE.toString().replace("{faction}", args.get(0)));
|
fme.msg(TL.COMMAND_POINTS_FAILURE.toString().replace("{faction}", args.get(0)));
|
||||||
|
Loading…
Reference in New Issue
Block a user