Add close shop command

This commit is contained in:
RedSparr0w
2019-11-23 13:29:17 +13:00
parent aa61fc5cbf
commit 5a520fa316
14 changed files with 16 additions and 5 deletions
@@ -102,6 +102,13 @@ public class BotHandler
return null;
}
public static void closeShop(Client player){
Client shop = getPlayerShop(player);
if (shop == null) return;
shop.disconnected = true;
shop.logout(true);
}
public static void addCoins(int shop_id, int amount){
Client shop = getPlayerShop(shop_id);
if (shop == null) return;