Jump to content

Shop Money Bank System

Pending 2.4.25

Chriz
  • in Shop
Chriz

Posted

Hey guys,

I’m currently using almost all of Mevent’s plugins. Right now, I’m having an issue with the shop. I also have the BankSystem and Economics installed on my server. The problem is that when I buy something in the shop, money is only deducted from my Economics balance (USD); I can’t seem to switch it so that it deducts cash or funds from the bank account instead.

  "Economy": {
    "Type (Plugin/Item)": "Plugin",
    "Plugin name": "BankSystem",
    "Balance add hook": "Deposit",
    "Balance remove hook": "Withdraw",
    "Balance show hook": "Balance",
    "ShortName": "scrap",
    "Display Name (empty - default)": "",
    "Skin": 0,
    "Title": {
      "Message": "Economics",
      "Use localized messages?": false,
      "Localized messages": {
        "en": "Economics",
        "fr": "Economics"

  • Curator
Mevent

Posted

Hey! So the issue is the hook names. BankSystem doesnt expose Deposit, Withdraw and Balance to other plugins, its API is named different. In your Economy block set Balance add hook to API_BankSystemDeposit, Balance remove hook to API_BankSystemWithdraw, and Balance show hook to API_BankSystemBalance. Save and reload Shop and itll pull from the bank now. Also that Title still says Economics, thats just the label shown in the shop currency tab, rename it to Bank so it stops looking like its using Economics.
 

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.7m
Total downloads
Customers
11.5k
Customers served
Files Sold
163.9k
Total sales
Payments
3.5m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.