Code (YAML):
# Command64 v1.2.0 by @tbm00
# https://github.com/tbm00/Command64/
# By default, all modules are disabled.
# You should configure each section to your own liking.
# The predefined config is there to give you and idea of what
# you can do when using this plugin with other plugins, like
# EssentialsX, LuckPerms, MythicMobs, a crate plugin, and more.
# -----------------------------------cronSchedule--------------------------------------- #
# consoleCommand gets scheduled by the entry's cron expression.
#
# Use https://crontab.guru/ for help.
# -------------------------------------------------------------------------------------- #
cronSchedule:
enabled
: false
taskEntries
:
# - "m h dom mon dow consoleCommand"
-
"0 0 */1 * * say This command is triggered at midnight!"
-
"0,*/10 11-14 * * * say This command is triggered every 10 minutes between 11:00 AM and 2:59 PM!"
# -----------------------------------rewardSystem--------------------------------------- #
# This module gives players the ability redeem pending rewards (commands).
#
# 1st) Admins/Console add rewardEntries to a player's pending queue
# by using `/cmd reward <rewardName> <username> [argument]`.
# 2nd) Players redeem rewards (in-order, unless there are skips due to full inv) by using `/redeemreward`.
# -- If the player has no pending rewards, they will be sent noPendingRewardMessage.
# -- Else if the the player has inventory space, the first rewardEntry's consoleCommands
# in the player's pending queue will be run.
# -- Else if there is no pending reward without an invCheck, they will be sent noInvSpaceMessage.
# -- Else the first rewardEntry's consoleCommands that doesn't have a invCheck will be run.
#
# Optional Arguments:
# <player> == player who is rewarded
# <argument> == string included as running command's argument (underscores convert to spaces)
# -------------------------------------------------------------------------------------- #
rewardSystem:
enabled
: false
saveDataInterval
: 60
# save data to json every X minutes, -1 to only save on shutdown
newRewardMessage
:
"&8[&fRewards&8] &aYou just received a reward, claim it with &2/redeemreward&a!"
pendingRewardsJoinMessage:
message
:
"&8[&fRewards&8] &aYou have reward(s) to claim! &2/redeemreward"
tickDelay
: 300
redeemMessages:
noRewardMessage
:
"&8[&fRewards&8] &cYou don't have any pending rewards!"
noInvSpaceMessage
:
"&8[&fRewards&8] &cYou don't have enough inventory space for your reward!"
rewardedMessage
:
"&8[&fRewards&8] &aYou redeemed a reward!"
rewardEntries:
'1'
:
# Usage: `/cmd reward cratekey <player>`
name
:
"cratekey"
consoleCommands
:
-
"crates givekey Crate <player>"
invCheck
: true
'2'
:
# Usage: `/cmd reward money <player> 1000`
name
:
"money"
consoleCommands
:
-
"eco give <player> <argument>"
invCheck
: false
# Add/remove entries as needed
# --------------------------------joinCommandEntries------------------------------------ #
# consoleCommands get triggered when a player (whose checkPerm==checkPermValue)
# connects to the server.
#
# Optional Argument:
# <player> == player who joined
# -------------------------------------------------------------------------------------- #
joinCommandEntries:
enabled
: false
'1':
enabled
: false
checkPerm
:
"group.particlebase"
checkPermValue
: false
tickDelay
: 10
consoleCommands
:
-
"pp reset <player>"
'2':
enabled
: false
checkPerm
:
"group.donor1"
checkPermValue
: true
tickDelay
: 10
consoleCommands
:
-
"say Welcome back to the server <player>!"
'3':
enabled
: false
checkPerm
:
"group.donor1"
checkPermValue
: false
tickDelay
: 10
consoleCommands
:
-
"say <player>, why haven't you donated?"
-
"say Gimme yo money!"
# Add/remove entries as needed
# ------------------------------customCommandEntries------------------------------------ #
# consoleCommands get triggered when the console or a player (whose usePerm==userPermVaue)
# uses the associated customCommand.
#
# You can run any customCommand with a delay by using the "-d" command flag.
# i.e. "/cmd -d 1200 stop" to stop the server in 1 minute,
# You can add an invCheck to any customCommandEntry, that confirms ARGUMENT or SENDER has
# one spot avaliable in their inventory before running the consoleCommands. If they don't,
# any defined backup commands will run. Use this module on any customCommandEntry:
# invCheck:
# checkIfSpaceBeforeRun: true
# checkOnPlayer: "ARGUMENT"
# ifNoSpaceConsoleCommands:
# - "msg <argument> &4You do not have space in your inventory..."
#
# Optional Arguments:
# <player> == player who used the command
# <argument> == string included as running command's argument (underscores DON'T convert to spaces)
# <argument2> == string included as running command's argument (underscores convert to spaces)
# -------------------------------------------------------------------------------------- #
customCommandEntries:
enabled
: false
'1'
:
# Usage: "/cmd save"
enabled
: false
usePerm
:
"command64.mod"
usePermValue
: true
customCommand
:
"save"
consoleCommands
:
-
"say <player> is saving the server!"
-
"save-all"
'2'
:
# Usage: "/cmd stop"
enabled
: false
usePerm
:
"command64.admin"
usePermValue
: true
customCommand
:
"stop"
consoleCommands
:
-
"say <player> is stopping the server!"
-
"stop"
'3'
:
# Usage: "/cmd promotedonor <argument>" i.e. "/cmd promotedonor Notch"
enabled
: false
usePerm
:
"command64.admin"
usePermValue
: true
customCommand
:
"promotedonor"
consoleCommands
:
-
"lp user <argument> promote donor"
-
"say <argument> donated to the server and was promoted by <player>!"
'4'
:
# Usage: "/cmd consolemsg <argument> <argument2>" i.e. "/cmd consolemsg Notch hi_underscores_convert_to_spaces"
enabled
: false
usePerm
:
"command64.admin"
usePermValue
: true
customCommand
:
"consolemsg"
consoleCommands
:
-
"msg <argument> <argument2>"
'5'
:
# Usage: "/cmd invSpaceCheckLoop <argument>" i.e. "/cmd invSpaceCheckLoop Notch"
enabled
: false
usePerm
:
"command64.mod"
usePermValue
: true
customCommand
:
"invSpaceCheckLoop"
consoleCommands
:
-
"msg <player> <argument> has space for an item!"
invCheck:
checkIfSpaceBeforeRun
: true
checkOnPlayer
:
"ARGUMENT"
ifNoSpaceConsoleCommands
:
-
"msg <player> <argument> has a full inventory! Checking again in 2 minutes..."
-
"cmd -d 2400 invSpaceCheckLoop <argument>"
# 2 minute delay
'6'
:
# Usage "/cmd boss-fight-start"
enabled
: false
usePerm
:
"command64.mod"
usePermValue
: true
customCommand
:
"boss-fight-start"
consoleCommands
:
-
"mm mobs spawn BossMinion -t world,-677,46,727"
-
"mm mobs spawn BossMinion -t world,-667,46,726"
-
"mm mobs spawn BossMinion -t world,-677,52,727"
-
"mm mobs spawn BossMinion -t world,-667,52,726"
-
"mm mobs spawn BossMinion -t world,-672,52,732"
-
"mm mobs spawn BossMinion -t world,-673,52,722"
-
"mm mobs spawn BossMob -t world,-672,36,727"
-
"broadcast &bBoss fight started!"
-
"cmd -d 1200 boss-fight-round2"
# 1 minute delay
'7'
:
# Intended Usage "/cmd -d <tickDelay> boss-fight-round2" i.e. "/cmd -d 1200 boss-fight-round2"
enabled
: false
usePerm
:
"command64.hide"
usePermValue
: true
customCommand
:
"boss-fight-round2"
consoleCommands
:
-
"mm mobs spawn BossMinion -t world,-677,36,727"
-
"mm mobs spawn BossMinion -t world,-667,36,726"
-
"mm mobs spawn BossMinion -t world,-672,46,732"
-
"mm mobs spawn BossMinion -t world,-673,46,722"
-
"mm mobs spawn BossMinion -t world,-677,52,727"
-
"mm mobs spawn BossMinion -t world,-667,52,726"
# Add/remove entries as needed
# ---------------------------------itemCommandEntries----------------------------------- #
# consoleCommands get triggered when a player (whose usePerm==userPermVaue)
# uses a custom item.
#
# Optional Argument:
# <player> == player who used the item
# -------------------------------------------------------------------------------------- #
itemCommandEntries:
enabled
: false
'1':
enabled
: false
givePerm
:
"command64.give.navigator"
givePermValue
: true
usePerm
:
"commandpanel.panel.menugui"
usePermValue
: true
consoleCommands
:
-
"cmd sudo <player> commandpanel_menugui"
key
:
"NAVIGATOR"
name
:
"&dServer Navigator"
item
:
"COMPASS"
glowing
: true
lore
:
-
"&5Opens the server's menu GUI"
'2':
enabled
: false
givePerm
:
"command64.give.adminpick"
givePermValue
: true
usePerm
:
"essentials.break"
usePermValue
: true
consoleCommands
:
-
"cmd sudo <player> break"
key
:
"ADMINPICK"
name
:
"&4Admin Pickaxe"
item
:
"GOLDEN_PICKAXE"
glowing
: true
lore
:
-
"&cBreaks bedrock"
# Add/remove entries as needed