BankPluginSystem[BPS]
作者:rebot | 分类:模组
Minecraft 版本: 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.20 1.20.1 1.20.2 1.20.3 1.20.4 1.20.5 1.20.6 1.21 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.21.6 1.21.7 1.21.8 1.21.9 1.21.10
平台: paper purpur spigot
BankPluginSystem – Minecraft Virtual Banking Plugin
BankPluginSystem is a powerful and user-friendly virtual banking system for Minecraft servers. It allows players to manage in-game currency securely and gives server administrators flexible tools to configure and control the economy. The plugin includes a complete API for integration with other plugins.
Features
- Balance Management: Deposit, withdraw, and check player balances.
- Player-to-Player Transfers: Securely transfer funds between players.
- Transaction History: Paginated transaction logs for easy tracking.
- Customizable Currency: Diamonds, emeralds, gold, and diamond ore.
- Administrative Tools: Set bank name, configure currency, reload plugin.
- Enhanced GUI: CustomModelData for polished visual appearance.
- Multi-Storage Support: YAML, SQLite, or MySQL.
- Chat-Based Input: Interactive prompts for deposits, withdrawals, and transfers.
- Notifications: Periodic updates via chat.
Commands
/bank– Open bank GUI/balance– Check current balance/deposit <amount>– Deposit currency from inventory/withdraw <amount>– Withdraw currency to inventory/transfer <player> <amount>– Transfer funds to another player/setcurrency <diamond|emerald|gold|diamond_ore>– Set server currency (admin only)/setbankname <new name>– Change bank name (admin only)/bank reload– Reload the plugin (admin only)/bhelp– Show help and commands
API Overview
BankPluginSystem provides a full API for plugin developers. Available methods include:
-
Balance Management:
getBalance(playerName)/getBalance(player)– Get a player’s current balance.setBalance(playerName, amount)/setBalance(player, amount)– Set a player’s balance directly.
-
Deposits and Withdrawals:
deposit(playerName, amount)/deposit(player, amount)– Add funds to a player’s account.withdraw(playerName, amount)/withdraw(player, amount)– Remove funds from a player’s account.
-
Transfers:
transfer(fromPlayerName, toPlayerName, amount)– Transfer funds between players by name.transfer(fromPlayer, toPlayer, amount)– Transfer funds between Player objects.transfer(fromPlayer, toPlayerName, amount)– Transfer from a Player object to a player by name.
-
Transaction History:
getTransactions(playerName, page)/getTransactions(player, page)– Retrieve paginated transaction records.
-
Currency and Bank Info:
getCurrency()– Get current currency as a string.getCurrencyEnum()– Get currency type as an enum.getBankName()– Get current bank name.getStorageType()– Get storage type in use (YAML, SQLite, MySQL).
请登录后举报
暂无评论,抢个沙发吧~