- 20+ cryptocurrencies with realistic price simulation
- Physical wallet item system
- Real-time price updates with momentum algorithm
- EconomyAPI integration
- Beautiful UI forms
- Optimized performance
- Download the latest
.pharfrom Releases - Place in
plugins/folder - Restart server
- Configure in
currency.yml - Use
/tradeor/wallet
| Command | Description | Permission |
|---|---|---|
/trade |
Open trading interface | trade.use.cmd |
/wallet |
Get/access digital wallet | trade.use.cmd |
| author | Version | api |
|---|---|---|
Amirxd |
1.0.0 |
5.0.0 |
update_interval: 30
default_volatility: 3.0
save_interval_runs: 4
max_price_change_percent: 5.0bitcoin:
min: 100000
max: 1000000
start_price: 160000
volatility: 3.5
image: "none"$tradeSystem = TradeSystem::getTradeSystem();
$wallet = $tradeSystem->getWalletManager();
$currency = $tradeSystem->getCurrency();// Check wallet exists
if($wallet->walletExists($playerName)) {
// Get balance
$balance = $wallet->getCurrency($playerName, "bitcoin");
// Add currency
$wallet->addCurrency($playerName, "ethereum", 5.5);
// Remove currency
$wallet->TakeCurrency($playerName, "solana", 2.0);
}// Get currency info
$info = $currency->getCurrency("bitcoin");
$currentPrice = $info["price"];
// Update prices
$currency->updateAllPrices(5.0, true);
// Manually set price
$currency->setNewPrice("bitcoin", 200000);// Open trading interface
(new MainForm())->MainForm($player);
// Open wallet
(new MainForm())->WalletForm($player);// Programmatic buy/sell
$success = $mainForm->processTransaction($player, "bitcoin", 2.5, "buy");Wallet items can be detected via:
if($item->getNamedTag()->getTag("wallet") !== null) {
// This is a wallet item
}$currency->Currency["customcoin"] = [
"price" => 10000,
"old" => 10000,
"min" => 0,
"max" => 50000
];// Calculate total portfolio value
$walletData = $wallet->getWalletData($playerName);
$totalValue = 0;
foreach($walletData as $currency => $amount) {
if($currency === "money") {
$totalValue += $amount;
} else {
$price = $currency->getCurrency($currency)["price"] ?? 0;
$totalValue += ($amount * $price);
}
}Prices update using:
- Random fluctuation based on volatility
- Momentum from previous changes
- Min/max boundaries
- Configurable update intervals
- Prices not updating? Check
update_interval - Wallet issues? Verify EconomyAPI is installed
- Forms not showing? FormAPI required
MIT License
For complete code examples and advanced usage, refer to the source code.