Add permission info
This commit is contained in:
@@ -76,7 +76,7 @@ public class RootCommandAddress extends ModifiableCommandAddress implements ICom
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void debugChildren(ModifiableCommandAddress address) {
|
public static void debugChildren(ModifiableCommandAddress address) {
|
||||||
Collection<String> keys = address.getChildrenMainKeys();
|
Collection<String> keys = address.getChildrenMainKeys();
|
||||||
for (String key : keys) {
|
for (String key : keys) {
|
||||||
ChildCommandAddress child = address.getChild(key);
|
ChildCommandAddress child = address.getChild(key);
|
||||||
|
|||||||
71
permissions.md
Normal file
71
permissions.md
Normal file
@@ -0,0 +1,71 @@
|
|||||||
|
# Permission Nodes
|
||||||
|
|
||||||
|
Node|Description
|
||||||
|
---|---
|
||||||
|
parcels.command.home | Access to `/p home` and aliases (example 1)
|
||||||
|
parcels.command.option.interact.gates | Access to `/p option interact gates` and aliases (example 2)
|
||||||
|
parcels.admin.bypass.ban | Ability to enter plots that listed a player as banned
|
||||||
|
parcels.admin.bypass.build | Ability to build anywhere
|
||||||
|
parcels.admin.bypass.gamemode | Be exempt from the world-specific gamemode enforcement
|
||||||
|
parcels.command.home.others | Ability to use `/p home` for plots other than your own
|
||||||
|
parcels.admin.manage | Admin rights. Required for staff commands and operations.
|
||||||
|
|
||||||
|
## All Commands
|
||||||
|
|
||||||
|
* parcel
|
||||||
|
* parcel goto
|
||||||
|
* parcel clear
|
||||||
|
* parcel goto_fake
|
||||||
|
* parcel claim
|
||||||
|
* parcel auto
|
||||||
|
* parcel tp
|
||||||
|
* parcel home
|
||||||
|
* parcel info
|
||||||
|
* parcel setbiome
|
||||||
|
* parcel ban
|
||||||
|
* parcel disallow
|
||||||
|
* parcel distrust
|
||||||
|
* parcel allow
|
||||||
|
* parcel unban
|
||||||
|
* parcel entrust
|
||||||
|
* parcel option
|
||||||
|
* parcel option interact
|
||||||
|
* parcel option interact buttons
|
||||||
|
* parcel option interact levers
|
||||||
|
* parcel option interact pressure_plates
|
||||||
|
* parcel option interact redstone
|
||||||
|
* parcel option interact containers
|
||||||
|
* parcel option interact gates
|
||||||
|
* parcel global
|
||||||
|
* parcel global ban
|
||||||
|
* parcel global disallow
|
||||||
|
* parcel global distrust
|
||||||
|
* parcel global allow
|
||||||
|
* parcel global unban
|
||||||
|
* parcel global entrust
|
||||||
|
* parcel global list
|
||||||
|
* parcel admin
|
||||||
|
* parcel admin swap
|
||||||
|
* parcel admin reset
|
||||||
|
* parcel admin setowner
|
||||||
|
* parcel admin dispose
|
||||||
|
* parcel admin update_all_owner_signs
|
||||||
|
* parcel admin global
|
||||||
|
* parcel admin global ban
|
||||||
|
* parcel admin global disallow
|
||||||
|
* parcel admin global distrust
|
||||||
|
* parcel admin global allow
|
||||||
|
* parcel admin global unban
|
||||||
|
* parcel admin global entrust
|
||||||
|
* parcel admin global list
|
||||||
|
* parcel debug
|
||||||
|
* parcel debug permissions
|
||||||
|
* parcel debug reloadoptions
|
||||||
|
* parcel debug privilege
|
||||||
|
* parcel debug complete_jobs
|
||||||
|
* parcel debug jobs
|
||||||
|
* parcel debug tpworld
|
||||||
|
* parcel debug make_mess
|
||||||
|
* parcel debug hasperm
|
||||||
|
* parcel debug message
|
||||||
|
* parcel debug directionality
|
||||||
@@ -64,7 +64,9 @@ fun getParcelCommands(plugin: ParcelsPlugin): ICommandDispatcher = CommandBuilde
|
|||||||
}
|
}
|
||||||
|
|
||||||
generateHelpAndSyntaxCommands(parcelsAddress)
|
generateHelpAndSyntaxCommands(parcelsAddress)
|
||||||
}.getDispatcher()
|
}.getDispatcher().also {
|
||||||
|
RootCommandAddress.debugChildren(it as ModifiableCommandAddress)
|
||||||
|
}
|
||||||
|
|
||||||
private inline fun CommandBuilder.group(name: String, vararg aliases: String, config: CommandBuilder.() -> Unit) {
|
private inline fun CommandBuilder.group(name: String, vararg aliases: String, config: CommandBuilder.() -> Unit) {
|
||||||
group(name, *aliases)
|
group(name, *aliases)
|
||||||
|
|||||||
Reference in New Issue
Block a user