
YuPay
YuPay is a modern, feature-rich payment and donation plugin designed for Minecraft servers (compatible with 1.8.x-1.26.x). It seamlessly integrates WeChat Pay and Alipay
86
0
Список изменений
YuPay 1.2 → 1.2.1 Changelog
🎉 Overview
This update focuses on feature enhancements and user experience improvements. It introduces a no‑reward donation mode, global blacklist, dynamic PAPI placeholders, in‑game configuration changes, and numerous hardcoded message cleanups, making the plugin more maintainable and flexible.
✨ New Features
1. No‑Reward Donation Mode (-n / --no-reward)
- Players can donate without receiving any economy or command rewards by adding
-nto the command, e.g.,/pay 100 -n. - Order identification: No‑reward orders have a
FREE_prefix in the order ID. - Use case: Pure support for the server without affecting game economy.
2. Global Blacklist
- Use the keyword
allto ban or unban all players at once. - Commands:
/yupay ban all [reason]– disables donations for everyone./yupay unban all– removes the global ban.
- Use case: Quickly stop all donations in case of emergencies.
3. Dynamic PAPI Placeholders
- New placeholders:
%yupay_top_<rank>_name%and%yupay_top_<rank>_amount%– supports both new (top_1_name) and old (top1_name) formats.%yupay_is_banned%%yupay_total_orders%,%yupay_success_orders%%yupay_orders_in_<time>%,%yupay_success_orders_in_<time>%,%yupay_amount_in_<time>%- Server‑wide equivalents:
%yupay_server_total_orders%,%yupay_server_success_orders%,%yupay_server_orders_in_<time>%,%yupay_server_success_orders_in_<time>%,%yupay_server_amount_in_<time>%
- All time placeholders accept milliseconds as
<time>.
4. Enhanced Dynamic Configuration Editing
- New configuration options
economy.enabledandcommands.enabled. /yupay setnow supports:economy-enabled true/false– toggle economy rewards.commands-enabled true/false– toggle command rewards.min-amount,max-amount,max-daily-amount– adjust amount limits on the fly.
- New
/yupay configcommand to view current configuration (admin only).
5. Message System Cleanup
- All hardcoded text has been moved to
messages.yml. - New message keys added:
pay-success-no-reward– success message for no‑reward donations.config-header,config-footer,config-line– config display interface.set-invalid-boolean– error for invalid boolean input.- Updated
ban-usageandunban-usageto includeall. - Database‑related logs now use consistent
db-*keys.
6. Database Enhancements
- New methods in
PaymentDAO:getOrderCountByUUID(),getOrderCountByUUIDInTime()getServerOrderCount(),getServerOrderCountInTime(),getServerAmountInTime()
🔧 Optimizations & Improvements
Code Structure
- Unified QR code generation into
QRCodeUtils. - Merged
MessageUtilsmethods intoMessageManager. - Streamlined no‑reward flag handling in
PayCommandandYupayCommand.
Version Compatibility
- Config version upgraded to 5.
- Messages version upgraded to 5.
- Vault is now a soft dependency (removed from
dependlist).
Logging
- Database operations now use centralized message keys.
- Blacklist actions log detailed information.
🐛 Bug Fixes
- Fixed no‑reward mode still triggering economy and command rewards.
- Fixed map QR code display issues on some server versions.
- Fixed global ban not preventing players from donating.
📋 Configuration Changes
New config.yml Options
economy:
# Whether economy rewards are enabled
enabled: true
commands:
# Whether command rewards are enabled
enabled: true
New messages.yml Keys
pay-success-no-reward: "&a&l✅ &fDonation successful! You chose no-reward mode and received no bonuses."
config-header: "&6&m⎯⎯⎯&r &e&l⚙ YuPay Configuration &6&m⎯⎯⎯&r"
config-footer: "&6&m⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯&r"
config-line: "&e{key}&7: &f{value}"
set-invalid-boolean: "&cPlease enter true or false"
📖 Upgrade Guide
Automatic Update
- Stop your server.
- Replace the JAR with
YuPay-1.2.1-SNAPSHOT.jar. - Start the server. The plugin will automatically update config files while preserving your custom values.
- Check the console log for confirmation.
Manual Update (if automatic fails)
- Back up your
config.ymlandmessages.yml. - Delete the old config files.
- Start the server to generate fresh configs.
- Restore your custom settings manually from the backups.
💬 Support
For any questions or feedback, join our community:
QQ Group: 1080918424
Version: 1.2.1-SNAPSHOT
Release Date: March 20, 2026
Файлы
Yupay-1.2.1.jar(1.70 MiB)
ОсновнойМетаданные
Канал релиза
Release
Номер версии
1.2.1
Загрузчики
BukkitFoliaPaperPurpurSpigot
Версии игры
1.8–1.21.11
Загрузок
5
Дата публикации
1 мес. назад