|
|
@ -14,6 +14,7 @@ import engine.gameManager.ChatManager; |
|
|
|
import engine.objects.AbstractGameObject; |
|
|
|
import engine.objects.AbstractGameObject; |
|
|
|
import engine.objects.Item; |
|
|
|
import engine.objects.Item; |
|
|
|
import engine.objects.PlayerCharacter; |
|
|
|
import engine.objects.PlayerCharacter; |
|
|
|
|
|
|
|
import engine.server.MBServerStatics; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @author Eighty |
|
|
|
* @author Eighty |
|
|
@ -46,10 +47,10 @@ public class AddGoldCmd extends AbstractDevCmd { |
|
|
|
throwbackError(pc, "Quantity must be a number, " + words[0] + " is invalid"); |
|
|
|
throwbackError(pc, "Quantity must be a number, " + words[0] + " is invalid"); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
if (amt < 1 || amt > 10000000) { |
|
|
|
if (amt < 1 || amt > MBServerStatics.PLAYER_GOLD_LIMIT) { |
|
|
|
throwbackError(pc, "Quantity must be between 1 and 10000000 (10 million)"); |
|
|
|
throwbackError(pc, "Quantity must be between 1 and " + MBServerStatics.PLAYER_GOLD_LIMIT); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} else if ((curAmt + amt) > 10000000) { |
|
|
|
} else if ((curAmt + amt) > MBServerStatics.PLAYER_GOLD_LIMIT) { |
|
|
|
throwbackError(pc, "This would place your inventory over 10,000,000 gold."); |
|
|
|
throwbackError(pc, "This would place your inventory over 10,000,000 gold."); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|