1.2.1
Compatibility
Changes
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
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:ND76NcgJ:EDnTiHQV"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:ND76NcgJ:EDnTiHQV"
}

