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:
graywolf336
2015-05-29 16:56:02 -05:00
parent ea50ecea6b
commit d3d4572ca4
7 changed files with 81 additions and 4 deletions

View File

@ -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)"
)

View File

@ -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)"
)

View File

@ -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)"
)

View File

@ -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]"
)