Список изменений
DealOrNoDeal v1.7.0
Added
- Papermc support
Tax System
- Added a new admin command /dond tax money
to set a monetary fee for entering the game. (Requires Vault).
Ticket System
-
Added admin command /dond ticket setprice
to set the purchase price for a game ticket. -
Added player command /dond ticket buy, allowing players to purchase a ticket (a paper item with a custom name and lore) using money from Vault.
-
Added admin command /dond edit owner <name|clear>, allowing money from ticket sales to be automatically deposited into the specified "owner's" account if they are online.
Cooldown System
-
Added admin command /dond edit gametime
to configure a cooldown period that players must wait before they can play again. -
Created a new file cooldowns.yml to store data on each player's last playtime.
Changed
Core change in /dond start :
-
The game start logic has been completely overhauled to incorporate the new systems with the following priority:
-
Cooldown: The plugin first checks if the player is on cooldown. If they are, the game is blocked, and both the player and the admin are sent a message with the remaining time (in H/M/S format).
-
Ticket: If the player is not on cooldown, the plugin checks their inventory for a valid ticket. If one is found, 1 ticket is consumed, and the monetary tax is skipped.
-
Tax (Money): If the player does not have a ticket and a tax is configured (/dond tax), the money is taken from the player and transferred directly to the admin who executed the /dond start command.

