Speedgot
exchange coins
-----
Économie dynamique pour votre serveur Minecraft
Download Now
3.2 KB .sk
Overview
Updates (
--
)
Reviews (
---
)
Version History
Discussion
Enhanced Dynamic Currency Exchange System
Differences between the new code and the old code:
Command structure:
New: Uses a single /monnaie command with subcommands (rate, exchange, admin).
Old: Uses a specific /monnaie exchange command.
Conversion rate:
New: Dynamic rate that fluctuates with time and exchanges.
Old: Fixed rate of 24.
Additional functions:
New: Adds formatNumber(), getTauxConversion(), updateTauxConversion().
Old: Doesn't have these functions.
Exchange for other players:
New: Allows exchanging for oneself or for another player.
Old: Exchange only for oneself.
Administrative commands:
New: Includes admin commands to set the rate.
Old: No administrative commands.
Calculation of money obtained:
New: Uses a complex formula based on the dynamic rate.
Old: Simple multiplication by the fixed rate.
Initialization and management of global variables:
New: Initializes {taux_conversion} and {dernier_echange} on load.
Old: No initialization of global variables.
Automatic announcements:
New: Broadcasts the rate every 5 minutes.
Old: No automatic announcements.
Tab completion:
New: Includes a tab completion function for commands.
Old: No tab completion.
checkBalanceForOther function:
New: Adds a function to check the balance when exchanging for another player.
Old: Doesn't exist.
Error handling and debugging:
New: More debug messages and error handling.
Old: Less detailed in terms of debugging.
The new code is more complete, flexible, and offers more features for managing a dual currency system on a Minecraft server.
----------
,
Jul 25, 2024
View on SpigotMC
Resource Information
Author:
----------
Total Downloads:
82
First Release:
Jul 25, 2024
Last Update:
Jul 25, 2024
Category:
---------------
All-Time Rating:
0 ratings
Version
-----
Released:
--------------------
Downloads:
------
Version Rating:
----------------------
--
ratings