You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: COMMANDS.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,27 @@ The following table outlines each command, its usage, aliases, and permissions r
46
46
|`heal`|`N/A`|`perplayerkit.heal`|
47
47
|`repair`|`N/A`|`perplayerkit.repair`|
48
48
49
+
## Regear Command Details
50
+
51
+
The regear system allows players to restock items from their loaded kit. The behavior of the `/rg` and `/regear` commands can be configured independently:
52
+
53
+
### Modes
54
+
55
+
**Command Mode**: Directly restocks whitelisted items from the player's loaded kit
56
+
- Cooldown applies between uses
57
+
- Damage timer prevents regearing while in combat
58
+
- Only whitelisted items are restocked
59
+
60
+
**Shulker Mode**: Gives the player a regear shulker box
61
+
- Player places the shulker on the ground to open a special interface
62
+
- Player clicks the regear shell inside to trigger the restock
63
+
- Cooldown applies between command uses
64
+
- Damage timer prevents regearing while in combat
65
+
66
+
### Configuration
67
+
68
+
Both `/rg` and `/regear` can use different modes. See **CONFIG.md** → **Regear Command** for configuration options (`rg-mode` and `regear-mode`).
69
+
49
70
## Permissions
50
71
51
72
The following table outlines each top-level permission and the sub-permissions it grants.
Copy file name to clipboardExpand all lines: CONFIG.md
+49-7Lines changed: 49 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -203,11 +203,12 @@ anti-exploit:
203
203
204
204
### **Regear Command**
205
205
206
-
Allows customization of the regear command which is used on some servers in various competition formats.
206
+
Allows customization of the regear commands which are used on some servers in various competition formats. The `/rg` and `/regear` commands can be configured independently to use different modes.
207
207
208
208
```yaml
209
209
regear:
210
-
mode: "command" #OPTIONS: command, shulker
210
+
rg-mode: "command" #OPTIONS: command, shulker - Behavior for /rg command
211
+
regear-mode: "command" #OPTIONS: command, shulker - Behavior for /regear command
211
212
command-cooldown: 5 #command cooldown in seconds. recommended to be low or 0 if using shulker mode.
212
213
damage-timer: 5 #time in seconds to wait after taking damage before players can regear
213
214
allow-while-using-elytra: true #set false to block regearing command while using elytra
@@ -224,8 +225,27 @@ regear:
224
225
- OBSIDIAN
225
226
- GLOWSTONE
226
227
- RESPAWN_ANCHOR
228
+
```
229
+
230
+
#### Regear Mode Options:
231
+
232
+
- **command**: Directly restocks items from the player's loaded kit (only whitelisted items are restocked)
233
+
- **shulker**: Gives the player a physical regear shulker box that they can place and interact with
broadcast-kit-messages: true #broadcasts when a player loads a kit or enderchest
273
+
252
274
broadcast-on-player-action: true #broadcasts when a player uses a kit, copies a kit, etc.
253
-
275
+
254
276
send-update-message-on-join: true #sends a message to players with perplayerkit.admin when they join the server if a new version is available
255
-
277
+
256
278
old-death-drops: false #makes it so players drop items in a condensed area rather than spreading out when they die
257
279
```
280
+
281
+
#### Feature Flag Descriptions:
282
+
283
+
**Kit Loading Features:**
284
+
- **rekit-on-respawn**: Automatically loads the player's last used kit when they respawn after death
285
+
- **rekit-on-kill**: Automatically loads the player's last used kit when they kill another player
286
+
- **broadcast-kit-messages**: Controls whether broadcast messages are sent when players load kits or enderchesets (e.g., "Player loaded a kit"). When set to `false`, these specific kit-loading broadcast messages are suppressed
287
+
288
+
**Action Broadcast Features:**
289
+
- **broadcast-on-player-action**: Controls whether broadcast messages are sent for other player actions like copying kits, repairing gear, opening kit room, etc. This does NOT affect kit loading messages (controlled by `broadcast-kit-messages`)
290
+
291
+
**Health/Hunger Features:**
292
+
- **set-health-on-kit-load**: Sets player health to full when loading a kit
293
+
- **set-hunger-on-kit-load**: Sets player hunger to full when loading a kit
294
+
- **set-saturation-on-kit-load**: Sets player saturation to full when loading a kit
295
+
- **remove-potion-effects-on-kit-load**: Removes all potion effects when loading a kit
296
+
- **heal-on-enderchest-load**: Sets player health to full when loading an enderchest
297
+
- **feed-on-enderchest-load**: Sets player hunger to full when loading an enderchest
298
+
- **set-saturation-on-enderchest-load**: Sets player saturation to full when loading an enderchest
299
+
- **remove-potion-effects-on-enderchest-load**: Removes all potion effects when loading an enderchest
BroadcastManager.get().sendComponentMessage(player, MiniMessage.miniMessage().deserialize("<red>Your inventory is full, can't give you a regear shulker!"));
0 commit comments