Commands
This plugin requires no permission configuration by default, server owners can use it out of the box (hot-loading the plugin may make the default permissions invalid). For the many types mentioned below that you do not know, use tab completion on lower versions, 1.12+ reminds you automatically.
Permissions
| Permission | Purpose | Default Owner |
|---|---|---|
| playerTask.addDemand | Add task objectives | op |
| playerTask.addReward | Add task rewards | op |
| playerTask.addShop | Add task coin shop items | op |
| playerTask.open | Open daily task GUI | true |
| playerTask.shop | Open task coin shop GUI | true |
| playerTask.create | Create tasks | op |
| playerTask.view | Manage tasks | op |
| playerTask.getToday | Immediately get today's tasks | op |
| playerTask.delToday | Clear today's task list and all players' tasks (1.4.1+) | op |
| playerTask.reload | Reload configuration | op |
| playerTask.addNpcTask | Bind a task to an NPC as a permanent task (1.6.0+) | op |
| playerTask.edit | Edit tasks (1.7.1+) | op |
| playerTask.convert | Convert data source | op |
| playerTask.setRarity | Edit task rarity (1.8.7+) | op |
| playerTask.changeItem | Generate task scrolls (1.9.0+) | op |
| playerTask.setDescription | Add task descriptions (1.9.7+) | op |
| playerTask.coin | Operate player task coins (1.13.2+) | op |
| playerTask.openNpc | Open the task list bound to an NPC (2.0.1+) | op |
| playerTask.setEnableCommand | Set commands executed when claiming permanent tasks (2.1.3+) | op |
| playerTask.openMeNpcTask | Open own claimed permanent task list (2.1.3+) | op |
| playerTask.addGlobalTask | Add global task activities (3.0.0+) | op |
| playerTask.openGlobal | View global tasks (3.0.0+) | true |
| playerTask.import | Import tasks from import.yml (2.10.0+) | op |
| playerTask.export | Export tasks to a config file (3.0.0+) | op |
| playerTask.battlePass | Open the battle pass GUI (4.0.0+) | op |
| playerTask.bpExp | Operate player battle pass exp (4.0.0+) | op |
Commands (Administrator):
| Command | Purpose |
|---|---|
/plk addDemand [objective type] [quantity] (description) | Add task objective (requires holding corresponding item in main hand) |
/plk addReward [reward type] [quantity] (description) | Add task reward (if reward type is item, requires holding corresponding item in main hand) |
/plk addShop [type] [price] | Add task coin shop item reward (type: one-time purchase: once; unlimited purchase: infinite) |
/plk create [task name] (task type) (task rarity) | Use GUI to create tasks (recommended) |
/plk view [type] | Use GUI to view and manage, types: list tasks, demand task objectives, reward task rewards, npc permanent tasks, shop shop, global global tasks, e.g.: /plk view list |
/plk getToday | Immediately execute once the get today's tasks program |
/plk delToday | Clear today's task list and all players' tasks (1.4.1+) |
/plk reload | Reload configuration |
/plk addNpcTask [task id] [npcId] [permanent task] [completable times] [cooldown] (prerequisite task id) | Bind a task to an NPC as a permanent task (1.6.0+) |
/plk edit [task id] (task type) (task rarity) (task name) | Use GUI to edit tasks; optional args directly change type, rarity and name (1.7.1+) |
/plk convert [type] | Convert data source, type mysql or sqlite |
/plk setRarity [task id] [rarity] | Edit task rarity (1.8.7+) |
/plk changeItem [task id] (player name) | Generate task scrolls (1.9.0+) |
/plk setDescription [task id] [task description] | Add task description (1.9.7+) |
/plk coin [type] (player name) (quantity) | Operate player task coins; give/set/take take a player name and quantity, giveAll/setAll/takeAll only a quantity, look only a player name (1.13.2+) |
/plk openNpc [npcId] | Open the task list bound to an NPC (2.0.1+) |
/plk setEnableCommand [task ID] [command] | Set commands executed when claiming permanent tasks (2.1.3+) |
/plk openMeNpcTask | Open own claimed permanent task list (2.1.3+) |
/plk addGlobalTask [task id] (start time) (end time) | Add a global task activity, time format yyyy-MM-dd or yyyy-MM-dd_HH:mm:ss (3.0.0+) |
/plk openGlobal | Open the global task GUI (3.0.0+) |
/plk export | Export all tasks to export.yml, same format as import.yml (3.0.0+) |
/plk import | Import tasks from import.yml (2.10.0+) |
/plk bpExp [type] (player name) (quantity) | Operate player battle pass exp, same arg rules as /plk coin (4.0.0+) |
[] Required () Optional
Commands (Players):
| Command | Purpose |
|---|---|
/plk open | Open daily task GUI |
/plk shop | Open task coin shop GUI |
/plk battlePass | Open the battle pass GUI (4.0.0+) |
Currently supported task objective types are as follows
| Type | Description |
|---|---|
| craftItem | Crafting |
| blockBreak | Breaking (crops count as harvesting) |
| Fish | Fishing |
| Interact | Placing |
| kill | Killing MM monsters |
| consume | Consuming items |
| killNormal | Killing normal monsters |
| submit | Submitting items |
| killPlayer | Killing players (1.13.3+) |
| enchantment | Enchanting (1.13.3+) |
| shear | Shearing (2.1.0+) |
| breed | Breeding (2.4.5+) |
| tame | Taming (2.4.6+) |
| chat | Chatting (2.4.8+) |
| killMp | Killing Mp monsters (2.4.9+) |
| interaction | Interacting (2.6.0+) |
| command | Commands (2.6.0+) |
| custom | Custom, progress reported by addon plugins |
Currently supported task reward types are as follows
| Type | Description |
|---|---|
| vault | Coins |
| playerPoints | Points |
| coin | Task coins |
| itemStack | Items |
| command | Commands |
| battlePassExp | Battle pass exp (4.0.0+) |
| ply_currencyId | PlayerCurrency multi-currency |
Command type explanation
text
# Player executes command, 0 in the middle means execute as player identity, will fail if player has no permission
/plk addReward command 0 eco#give#${player}#666 This is description
# Player executes command, 1 in the middle means execute as op identity
/plk addReward command 1 eco#give#${player}#666 This is description
# Console executes command, 2 in the middle means console execution
/plk addReward command 2 eco#give#${player}#666 This is descriptionTask type explanation
Task types are divided into everyday (daily tasks), npc (permanent tasks), reel (scroll tasks), global (global tasks, 3.0.0+), not interchangeable
Task rarity
| Description | Rarity | Recommended task name color code |
|---|---|---|
| Normal task | normal | &f |
| Advanced task | advanced | &9 |
| Rare task | rare | &5 |
| Rarer task | rarer | &d |
| Epic task | epic | &e |
| Mythical task | mythical | &e&l |