Check System Added and Massive Reformat
This commit is contained in:
@@ -10,7 +10,7 @@ public class CmdPoints extends FCommand {
|
||||
public CmdPointsSet cmdPointsSet = new CmdPointsSet();
|
||||
public CmdPointsAdd cmdPointsAdd = new CmdPointsAdd();
|
||||
|
||||
public CmdPoints(){
|
||||
public CmdPoints() {
|
||||
super();
|
||||
this.aliases.add("points");
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package com.massivecraft.factions.cmd.points;
|
||||
|
||||
import com.massivecraft.factions.FPlayer;
|
||||
import com.massivecraft.factions.FPlayers;
|
||||
import com.massivecraft.factions.Faction;
|
||||
import com.massivecraft.factions.Factions;
|
||||
import com.massivecraft.factions.cmd.FCommand;
|
||||
@@ -48,14 +47,14 @@ public class CmdPointsAdd extends FCommand {
|
||||
msg(TL.COMMAND_POINTS_FAILURE.toString().replace("{faction}", args.get(0)));
|
||||
return;
|
||||
}
|
||||
if(argAsInt(1) <= 0){
|
||||
if (argAsInt(1) <= 0) {
|
||||
msg(TL.COMMAND_POINTS_INSUFFICIENT);
|
||||
return;
|
||||
}
|
||||
|
||||
faction.setPoints(faction.getPoints() + argAsInt(1));
|
||||
|
||||
msg(TL.COMMAND_POINTS_SUCCESSFUL, argAsInt(1), faction.getTag(), faction.getPoints());
|
||||
msg(TL.COMMAND_POINTS_SUCCESSFUL, argAsInt(1), faction.getTag(), faction.getPoints());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ public class CmdPointsRemove extends FCommand {
|
||||
return;
|
||||
}
|
||||
|
||||
if(argAsInt(1) <= 0){
|
||||
if (argAsInt(1) <= 0) {
|
||||
msg(TL.COMMAND_POINTS_INSUFFICIENT);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ public class CmdPointsSet extends FCommand {
|
||||
return;
|
||||
}
|
||||
|
||||
if(argAsInt(1) < 0){
|
||||
if (argAsInt(1) < 0) {
|
||||
msg(TL.COMMAND_POINTS_INSUFFICIENT);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user