add ability to withdraw your profits

This commit is contained in:
RedSparr0w
2019-11-23 12:38:41 +13:00
parent b920549af0
commit aa61fc5cbf
6 changed files with 49 additions and 11 deletions
@@ -554,6 +554,9 @@ public class ShopAssistant {
if (!playerOwnsShop) {
player.getItemAssistant().deleteItem2(currency, totalValue);
player.getActionSender().sendMessage("You bought " + amount + " " + itemName + " for " + totalValue + " " + ItemAssistant.getItemName(currency).toLowerCase() + "." );
// If it is a player owned shop, we need to give them the coins
if (ShopHandler.ShopSModifier[player.myShopId] == 0)
BotHandler.addCoins(shopID, totalValue);
} else {
player.getActionSender().sendMessage("You withdrew " + amount + " " + itemName + " from your store." );
}