Daily and monthly rewards, depending on the day of the week. Available for PocketMine-MP 5.0 servers
Daily and monthly rewards, depending on the day of the week. With these rewards you can make your server one of the most fun. Available for PocketMine-MP 5.0 servers
Here I leave a tutorial of the plugin: BetterRewards
Main menu
You can choose the type of reward you want to receive
![]()
Daily rewards menu
Select the day of the week to receive your reward with just one click
![]()
Monthly rewards menu
Receive your monthly reward with this menu
![]()
Inventory editing menu
Here you can edit the inventory of the objects to receive. It will only work when the
custom-inventory
option istrue
.![]()
# ____ _ _ ____ _
# | __ ) ___ | |_ | |_ ___ _ __ | _ \ ___ __ __ __ _ _ __ __| | ___
# | _ \ / _ \ | __| | __| / _ \ | '__| | |_) | / _ \ \ \ /\ / / / _` | | '__| / _` | / __|
# | |_) | | __/ | |_ | |_ | __/ | | | _ < | __/ \ V V / | (_| | | | | (_| | \__ \
# |____/ \___| \__| \__| \___| |_| |_| \_\ \___| \_/\_/ \__,_| |_| \__,_| |___/
# by fernanAcM
# Daily and monthly rewards, depending on the day of the week. Available for PocketMine-MP 5.0 servers
# DO NOT TOUCH
config-version: "2.0.1"
# Languages
# "eng", // English
# "spa", // Spanish
# "ger", // German
# "frc", // French
# "indo", // Indonesian
# "portg", // Portuguese
# "vie" // Vietnamese
language: eng
# Prefix plugin
Prefix: "&l&f[&bBetterRewards&f]&8ยป&r "
# Providers
database:
# The database type. "sqlite" and "mysql" are supported.
type: sqlite
# Edit these settings only if you choose "sqlite".
sqlite:
# The file name of the database in the plugin data folder.
# You can also put an absolute path here.
file: data.sqlite
# Edit these settings only if you choose "mysql".
mysql:
host: 127.0.0.1
# Avoid using the "root" user for security reasons.
username: root
password: ""
schema: your_schema
# The maximum number of simultaneous SQL queries
# Recommended: 1 for sqlite, 2 for MySQL. You may want to further increase this value if your MySQL connection is very slow.
worker-limit: 1
# Settings for daily and monthly rewards.
Reward:
# Here are the rewards with commands, you can add
# as many as you can.
# Use {PLAYER} to identify the player
# (Rewards for custom inventories)
# Only works if the (custom-inventory) option
# is enabled. But if not, implement the commands in:
# weekly-normal-content: []
monday-commands:
- "give {PLAYER} apple 24"
- "give {PLAYER} iron_sword 1"
tuesday-commands:
- "give {PLAYER} apple 24"
- "give {PLAYER} iron_pickaxe 1"
wednesday-commands:
- "give {PLAYER} apple 24"
- "give {PLAYER} diamond_sword 1"
thursday-commands:
- "give {PLAYER} apple 24"
- "give {PLAYER} stone 12"
friday-commands:
- "give {PLAYER} apple 24"
- "give {PLAYER} wool 13"
saturday-commands:
- "give {PLAYER} apple 24"
- "give {PLAYER} iron_block 1"
sunday-commands:
- "give {PLAYER} apple 24"
- "give {PLAYER} book 1"
# (General rewards)
weekly-commands:
- "give {PLAYER} golden_apple 4"
- "give {PLAYER} stone 12"
monthly-commands:
- "give {PLAYER} apple 24"
- "give {PLAYER} diamond 33"
# This for rewards with custom items.
# It only works if the (custom-inventory) option is disabled.
# Follow this example for custom items:
# ONLY WORKS WITH THESE:
# weekly-normal-content []
# monthly-normal-content: []
# NOTE: Use "&" as a replacement for the minecraft color code
# weekly-normal-content:
# items:
# - item: "diamond"
# count: 23
# name: "A diamond!"
# lore:
# - "This diamond is very valuable"
# - "Careful not to lose it!"
# enchantments:
# - "sharpness:3"
# - "fire_aspect:1"
#
# // It also works like this
#
# - item: "1:0"
# count: 32
# name: "A stone!"
# lore: []
# enchantments:
# - "protection:3"
weekly-normal-content:
items:
- item: "1:0"
count: 16
name: "&r&cA stone!"
lore:
- "&r&bBy:&a fernanACM"
enchantments:
- "protection:3"
monthly-normal-content:
items:
- item: "stone"
count: 16
name: "&r&aA stone!"
lore: []
enchantments:
- "protection:1"
Settings:
inventory:
# With this enabled, you will be able to customize
# your inventory for a weekly or monthly reward. Use /betterrewards edit
custom-inventory: false
# Here you can put the items to receive your daily and
# monthly reward. It only works if the (custom-inventory) option is enabled.
# RECOMMENDATION:
# If you put 3 and you have 10 items in the custom inventory, you will only receive 3 random
# items that are in the inventory, if you want them to have all the items, put the number of
# items that are in the custom inventory.
# You can put /betterrewards count <inventory type>
# weekly
monday-items-to-receive: 4
tuesday-items-to-receive: 2
wednesday-items-to-receive: 4
thursday-items-to-receive: 5
friday-items-to-receive: 1
saturday-items-to-receive: 6
sunday-items-to-receive: 5
# monthly
monthly-items-to-receive: 5
# TimeMode
TimeMode:
years: "{YEAR} year(s)"
months: "{MONTH} month(s)"
days: "{DAY} day(s)"
hours: "{HOUR} hour(s)"
minutes: "{MINUTE} minute(s)"
seconds: "{SECOND} second(s)"
# Change the name of day
Days:
monday: Monday
tuesday: Tuesday
wednesday: Wednesday
thursday: Thursday
friday: Friday
saturday: Saturday
sunday: Sunday
Create items from here, this will work if the option:
custom-inventory
is set tofalse
.
# Example:
# weekly-normal-content:
# items:
# - item: "id"
# count: 16
# name: "Name for the item"
# lore:
# - "Lore for the item"
# - "fernanACM"
# enchantments:
# - "enchantment:level"
weekly-normal-content:
items:
- item: "1:0"
count: 16
name: "&r&cA stone!"
lore: []
enchantments:
- "protection:3"
- item: "wood"
count: 1
name: "&r&eA plank of wood"
lore: []
enchantments: []
Command | Description |
---|---|
/betterrewards | Open the main menu |
/betterrewards diary | Open daily rewards menu |
/betterrewards monthly | Open monthly rewards menu |
/betterrewards edit | Open inventory editing menu |
/betterrewards count | Count inventory items |
Permission | Description |
---|---|
betterrewards.cmd.acm: | Executing the command |
betterrewards.diary.acm | Diary |
betterrewards.monthly.acm | Monthly |
betterrewards.edit.acm | Edit |
Language | Translated by |
---|---|
English | fernanACM |
Spanish | fernanACM |
Indonesian | BetterRewards |
German | GamerMJay |
French | BetterRewards |
Portuguese | BetterRewards |
Vietnamese | NhanAZ |
Redes | Tag | Link |
---|---|---|
YouTube | fernanACM | YouTube |
Discord | fernanACM#5078 | Discord |
GitHub | fernanACM | GitHub |
Poggit | fernanACM | Poggit |
Authors | Github | Lib |
---|---|---|
Vecnavium | Vecnavium | FormsUI |
CortexPE | CortexPE | Commando |
Muqsit | Muqsit | SimplePacketHandler |
Muqsit | Muqsit | InvMenu |
DaPigGuy | DaPigGuy | libPiggyUpdateChecker |
Poggit | Poggit | libasynql |
jacob3105 | Thanks for your help in the libasynql implementation |