Reduced queries for storing clan values.
This commit is contained in:
@@ -189,7 +189,7 @@ public class AdminPledge implements IAdminCommandHandler
|
||||
try
|
||||
{
|
||||
final int points = Integer.parseInt(param);
|
||||
clan.addReputationScore(points, true);
|
||||
clan.addReputationScore(points);
|
||||
BuilderUtil.sendSysMessage(activeChar, "You " + (points > 0 ? "add " : "remove ") + Math.abs(points) + " points " + (points > 0 ? "to " : "from ") + clan.getName() + "'s reputation. Their current score is " + clan.getReputationScore());
|
||||
}
|
||||
catch (Exception e)
|
||||
|
@@ -52,7 +52,7 @@ public class GiveClanReputation extends AbstractEffect
|
||||
return;
|
||||
}
|
||||
|
||||
effector.getActingPlayer().getClan().addReputationScore(_reputation, true);
|
||||
effector.getActingPlayer().getClan().addReputationScore(_reputation);
|
||||
|
||||
for (ClanMember member : effector.getActingPlayer().getClan().getMembers())
|
||||
{
|
||||
|
Reference in New Issue
Block a user