Addition of PC points admin commands.

This commit is contained in:
mobius
2015-01-29 20:50:25 +00:00
parent 02b43ae09e
commit f9acd64eb8
8 changed files with 302 additions and 11 deletions

View File

@@ -30,6 +30,10 @@ public class PcCafePointsManager
{
private static PcCafePointsManager _instance;
public PcCafePointsManager()
{
}
public static PcCafePointsManager getInstance()
{
if (_instance == null)
@@ -39,10 +43,6 @@ public class PcCafePointsManager
return _instance;
}
public PcCafePointsManager()
{
}
public void givePcCafePoint(final L2PcInstance player, final long givedexp)
{
if (!Config.PC_BANG_ENABLED)
@@ -74,8 +74,6 @@ public class PcCafePointsManager
_points = Rnd.get(_points / 2, _points);
}
@SuppressWarnings("unused")
boolean doublepoint = false;
SystemMessage sm = null;
if (_points > 0)
{
@@ -83,7 +81,6 @@ public class PcCafePointsManager
{
_points *= 2;
sm = SystemMessage.getSystemMessage(SystemMessageId.DOUBLE_POINTS_YOU_EARNED_S1_PC_POINT_S);
doublepoint = true;
}
else
{

View File

@@ -14173,11 +14173,11 @@ public final class L2PcInstance extends L2Playable
}
public void setPcBangPoints(final int i)
public void setPcBangPoints(final int count)
{
if (i < 200000)
if (count < 200000)
{
_pcBangPoints = i;
_pcBangPoints = count;
}
else
{