diff options
author | sowgro <tpoke.ferrari@gmail.com> | 2024-07-05 03:06:34 -0400 |
---|---|---|
committer | sowgro <tpoke.ferrari@gmail.com> | 2024-07-05 03:06:34 -0400 |
commit | ca576a1dd19247d1dc2ca294cce042a7a77ca296 (patch) | |
tree | c3d4b9e3b6c0d9224f83faa13e0bcb63d8463c55 /README.md | |
parent | c48825154e0741d3ca4ef52e00598d5372950d19 (diff) | |
download | LeaveCmd-ca576a1dd19247d1dc2ca294cce042a7a77ca296.tar.gz LeaveCmd-ca576a1dd19247d1dc2ca294cce042a7a77ca296.tar.bz2 LeaveCmd-ca576a1dd19247d1dc2ca294cce042a7a77ca296.zip |
Change to world substring matching
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 27 |
1 files changed, 13 insertions, 14 deletions
@@ -1,22 +1,21 @@ # LeaveCmd -Universal leave command for spigot 1.19 +Universal leave command for spigot 1.16+ Instead of players needing to remember /hg leave or /bw leave, they can just use /leave. The plugin decides what command to use based on the world the player is in. -## Commands: -- /leave -- /leavecmd reload +### Commands / Permissions -## Permissions: -- leaveCmd.leave -- leaveCmd.admin +| Command | Description | Permission | +|--------------------|------------------------|-------------------| +| `/leave` | Leave the current game | `leaveCmd.leave` | +| `/leavecmd reload` | Reload the config | `leavecmd.relaod` | -## Config: - commands: - //ex: "command" - //hg: "hungergames leave" - worlds: - //world: ex - //arena: hg +### Configuration +`/leave` will match against the first key that is a substring of the wold name. + +```yaml +commands: + "HG-": "hg leave" +``` |