First stab at tab complete of jail commands, #77
Right now, the first option of the jail command completes and checks for proper permission and all that good stuff. Good way to get started with commands but that's all that has been completed right now. Plan is that the command interface will get a tabComplete method which all the classes that implement it will handle. Then if a tabComplete happens on that command we'll let the command handle it, so the command handlers don't get cluttered.
This commit is contained in:
@ -13,7 +13,7 @@ import com.graywolf336.jail.command.CommandInfo;
|
||||
maxArgs = 2,
|
||||
minimumArgs = 1,
|
||||
needsPlayer = true,
|
||||
pattern = "createcell|createcells|cellcreate|cellscreate|cc",
|
||||
pattern = "createcells|createcell|cellcreate|cellscreate|cc",
|
||||
permission = "jail.command.jailcreatecells",
|
||||
usage = "/jail createcell [jail] (cellname)"
|
||||
)
|
||||
|
@ -13,7 +13,7 @@ import com.graywolf336.jail.enums.Lang;
|
||||
maxArgs = 2,
|
||||
minimumArgs = 1,
|
||||
needsPlayer = false,
|
||||
pattern = "telein|teleportin",
|
||||
pattern = "teleportin|telein",
|
||||
permission = "jail.command.jailtelein",
|
||||
usage = "/jail telein [jail] (name)"
|
||||
)
|
||||
|
@ -13,7 +13,7 @@ import com.graywolf336.jail.enums.Lang;
|
||||
maxArgs = 2,
|
||||
minimumArgs = 1,
|
||||
needsPlayer = false,
|
||||
pattern = "teleout|teleportout",
|
||||
pattern = "teleportout|teleout",
|
||||
permission = "jail.command.jailteleout",
|
||||
usage = "/jail teleout [jail] (name)"
|
||||
)
|
||||
|
@ -15,7 +15,7 @@ import com.graywolf336.jail.enums.Lang;
|
||||
maxArgs = 2,
|
||||
minimumArgs = 2,
|
||||
needsPlayer = false,
|
||||
pattern = "transferall|transall",
|
||||
pattern = "transferall|transall|ta",
|
||||
permission = "jail.command.jailtransferall",
|
||||
usage = "/jail transferall [current] [target]"
|
||||
)
|
||||
|
Reference in New Issue
Block a user