exchange coins icon

exchange coins -----

Économie dynamique pour votre serveur Minecraft



Enhanced Dynamic Currency Conversion System


Description:

This Skript script implements an advanced dynamic conversion system between two types of currency: "coins" (managed by CoinsEngine) and "money" (standard economy system). The conversion rate fluctuates automatically based on time and exchanges, offering a more realistic and balanced economy.

Key Features:
  • Dynamic conversion rate that changes over time
  • Commands for players and administrators
  • Ability to exchange for oneself or another player
  • Player balance verification via CoinsEngine
  • Automatic rate updates and announcements
  • Number formatting for better readability
  • Tab completion for easier command usage
  • Detailed debug messages to facilitate troubleshooting
Main Commands:
  • /monnaie taux: Displays the current conversion rate
  • /monnaie echange [amount] [player]: Exchanges the specified number of coins for money Usage: /monnaie echange [player] Formula: money obtained = coins * (45 - current_rate)
  • /monnaie admin settaux [rate]: Allows admins to set the conversion rate manually
  • /monnaie admin mode [fixed|dynamic]: Allows admins to switch between fixed and dynamic rate modes
Balance Verification:

The checkBalance() and checkBalanceForOther() functions verify the player's balance via CoinsEngine before performing the exchange.
They also handle the execution of the exchange if the balance is sufficient.

Auxiliary Functions:
  • formatNumber(): Formats numbers to always display two decimal places
  • getTauxConversion(): Calculates and returns the current conversion rate
  • updateTauxConversion(): Updates the conversion rate after an exchange
Automatic Features:
  • Broadcasts the current conversion rate every 5 minutes
  • Gradually decreases the rate over time when not in use
  • Increases the rate slightly after each exchange
Permissions:
  • monnaie.admin: Required for administrative commands
  • coins.admin: Used internally for balance verification
Requirements:
  • Skript
  • CoinsEngine
  • An economy management plugin compatible with "eco" commands
Important Notes:
  • The script uses detailed debug messages, sent to the console
  • The conversion rate is limited between 15.00 and 30.00
  • Administrators can switch between dynamic and fixed rate modes
  • The script depends on CoinsEngine for coin management
  • Ensure that permissions are properly configured for the script to function correctly
This enhanced script offers a flexible and balanced solution for managing a dual currency system on your Minecraft server, automatically adapting to the server's economic activity while allowing administrative control over the conversion rate.
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