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 | Daily task GUI | op |
| playerTask.shop | Task coin shop GUI | op |
| 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 | Add NPC tasks (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 | Command to open corresponding NPC task list (2.0.1+) | op |
| playerTask.setEnableCommand | Set commands executed when claiming NPC tasks (2.1.3+) | op |
| playerTask.openMeNpcTask | Open own claimed NPC task list (2.1.3+) | 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, 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) | Add NPC tasks (1.6.0+) |
/plk edit [task id] | Use GUI to edit tasks (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 coin quantity (1.13.2) |
/plk openNpc [npcId] | Command to open corresponding NPC task list (2.0.1+) |
/plk setEnableCommand [task ID] [command] | Set commands executed when claiming NPC tasks (2.1.3+) |
/plk openMeNpcTask | Open own claimed NPC task list (2.1.3+) |
[] Required () Optional
Commands (Players):
| Command | Purpose |
|---|---|
/plk open | Open daily task GUI |
/plk shop | Open task coin shop GUI |
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+) |
Currently supported task reward types are as follows
| Type | Description |
|---|---|
| vault | Coins |
| playerPoints | Points |
| coin | Task coins |
| itemStack | Items |
| command | Commands |
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) and npc (NPC tasks), not interchangeable
Task rarity
| Description | Rarity | Recommended task name color code |
|---|---|---|
| Normal task | normal | &f |
| Advanced task | advanced | &1 |
| Rare task | rare | &5 |
| Rarer task | rarer | &d |
| Epic task | epic | &e |
| Mythical task | mythical | &e&l |