NanoPromoCode
为什么你需要这个插件?在某个阶段,你将需要与内容创作者合作,以吸引玩家加入你的服务器。该插件允许你为每位创作者创建专属的促销代码(promo code),并追踪其促销代码被使用的次数。这样你就可以有效地了解哪位创作者对服务器玩家群体的影响力最大,同时鼓励新玩家通过输入促销代码来获取奖励,从而加入服务器。
命令:
/promo <promo-code> - 使用促销代码,无需任何权限。
/promo add <promo-code> - 用于创建促销代码,需要 nano.add.promo 权限。
/promo refresh <nickname> - 用于让某位玩家再次使用一次促销代码,需要 nano.refresh.stats.promo 权限。
配置文件:
# 连接到 MySQL 数据库
Database:
Address: '127.0.0.1'
Port: '3306'
Database: 'database_name'
Username: 'database_username'
Password: 'database_password'
# 你可以使用命令和占位符:%player%
promo-rewards:
- 'give %player% diamond 64'
config.yml 用于提供 MySQL 数据库信息以及作为奖励执行给玩家的命令(基本上是任何命令,支持无限数量的命令,你可以利用命令来实现各种各样的奖励方式)。
语言:
# 您可以使用颜色代码来更改消息的颜色。
# 部分消息包含占位符,您可以选择性地使用它们。
only-player-usage-warning: "&c只有玩家才能使用此命令!"
incorrect-promo-code-warning: "&c您应使用正确的促销码!"
refresh-promo-code-permission-warning: "&c您没有权限刷新促销码!"
refresh-promo-code-name-warning: "&c您必须指定要刷新促销码的玩家名称。"
promo-code-successfully-refreshed: "&a该玩家的促销码已成功刷新:"
unable-to-refresh-promo-code: "&c无法为该玩家刷新促销码:"
add-promo-code-permission-warning: "&c您没有权限添加促销码!"
add-promo-code-no-code-warning: "&c请提供要添加的促销码。"
add-promo-code-success: "&a促销码 %promo_code% 已成功创建!"
add-promo-code-already-exist-warning: "&c此促销码已存在!"
add-promo-code-error: "&c创建促销码时发生错误。请稍后重试。"
promo-code-does-not-exist: "&c您输入的促销码不存在。"
promo-code-activated: "&a您已成功激活促销码!"
promo-code-already-used: "&c您已使用该促销码!"
promo-code-activation-error: "&c处理促销码时发生错误。请稍后重试。"
language.yml 允许你对插件进行本地化。默认语言是纯正甜美的英文。
NanoPromoCode
Why do you need this plugin? At some point you gonna work with content creators to attract audience to your server. This plugin lets you create a promo code for each creator and keep track of how many times their promo code has been used. That is how you can effectively get to know which creator has the biggest impact on the server playerbase and also encourage new players to join the server (to get the reward by using the promo code).
Commands:
- /promo <promo-code> - use the promo code, doesn't require any permission.
- /promo add <promo-code> - is used to create a promo code, requires nano.add.promo permission.
- /promo refresh <nickname> - is used to let the player use the promo code one more time, requires nano.refresh.stats.promo permission.
Config:
# Connection to the MySQL database
Database:
Address: '127.0.0.1'
Port: '3306'
Database: 'database_name'
Username: 'database_username'
Password: 'database_password'
# You can use commands and placeholder: %player%
promo-rewards:
- 'give %player% diamond 64'
config.yml is used to provide MySQL database info and commands that gonna be executed as a reward for the player (basically any commands, unlimited amount of commands, there are unlimited options with commands how to reward the player).
Language:
# You can use color codes to change color of the messages.
# Some messages have placeholders, you can use them optionally.
only-player-usage-warning: "&cOnly players can use this command!"
incorrect-promo-code-warning: "&cYou should use correct promo code!"
refresh-promo-code-permission-warning: "&cYou don't have permission to refresh promo codes!"
refresh-promo-code-name-warning: "&cYou have to specify name of the player to refresh the promo code."
promo-code-successfully-refreshed: "&aPromo code successfully refreshed for player:"
unable-to-refresh-promo-code: "&cUnable to refresh promo code for player:"
add-promo-code-permission-warning: "&cYou don't have permission to add promo codes!"
add-promo-code-no-code-warning: "&cPlease provide a promo code to add."
add-promo-code-success: "&aPromo code %promo_code% has been created successfully!"
add-promo-code-already-exist-warning: "&cThis promo code already exists!"
add-promo-code-error: "&cAn error occurred while creating the promo code. Please try again."
promo-code-does-not-exist: "&cThe promo code you entered does not exist."
promo-code-activated: "&aYou successfully activated the promo code!"
promo-code-already-used: "&cYou have already used the promo code!"
promo-code-activation-error: "&cAn error occurred while processing the promo code. Please try again."
language.yml lets you localize the plugin. Default language is pure & sweet english.
评论 0
登录后参与评分
还没有评论,来抢沙发吧