Work on the commands help and usage, sync with the wiki pages.
This commit is contained in:
parent
c7ea8e44e5
commit
34acf4bbaa
@ -1,4 +1,4 @@
|
||||
[Jail 3.0](http://ci.graywolf336.com/job/Jail/) - [JavaDoc](http://ci.graywolf336.com/job/Jail/javadoc)
|
||||
[Jail 3.0](http://ci.graywolf336.com/job/Jail/) - [JavaDoc](http://ci.graywolf336.com/job/Jail/javadoc) - [Wiki](https://github.com/graywolf336/Jail/wiki)
|
||||
====
|
||||
This plugins adds Jail to your Minecraft server. Admins can define several jails and then jail/unjail people, can be on a time basis. This plugin also offers wide variety of protections, this way players won't escape out of jail.
|
||||
|
||||
|
@ -15,7 +15,7 @@ import com.graywolf336.jail.enums.Lang;
|
||||
needsPlayer = false,
|
||||
pattern = "check",
|
||||
permission = "jail.command.jailcheck",
|
||||
usage = "/jail check <playername>"
|
||||
usage = "/jail check [name]"
|
||||
)
|
||||
public class JailCheckCommand implements Command{
|
||||
|
||||
|
@ -10,7 +10,7 @@ import com.graywolf336.jail.enums.Confirmation;
|
||||
import com.graywolf336.jail.enums.Lang;
|
||||
|
||||
@CommandInfo(
|
||||
maxArgs = 1,
|
||||
maxArgs = 2,
|
||||
minimumArgs = 0,
|
||||
needsPlayer = false,
|
||||
pattern = "clear|clearforce",
|
||||
|
@ -15,7 +15,7 @@ import com.graywolf336.jail.enums.Lang;
|
||||
needsPlayer = false,
|
||||
pattern = "deletecell|dc",
|
||||
permission = "jail.command.jaildeletecell",
|
||||
usage = "/jail deletecell <jail> <cell>"
|
||||
usage = "/jail deletecell [jail] [cell]"
|
||||
)
|
||||
public class JailDeleteCellCommand implements Command {
|
||||
public boolean execute(JailManager jm, CommandSender sender, String... args) throws Exception {
|
||||
|
@ -15,7 +15,7 @@ import com.graywolf336.jail.enums.Lang;
|
||||
needsPlayer = false,
|
||||
pattern = "deletecells|dcs",
|
||||
permission = "jail.command.jaildeletecell",
|
||||
usage = "/jail deletecells <jail>"
|
||||
usage = "/jail deletecells [jail]"
|
||||
)
|
||||
public class JailDeleteCellsCommand implements Command {
|
||||
public boolean execute(JailManager jm, CommandSender sender, String... args) throws Exception {
|
||||
|
@ -15,7 +15,7 @@ import com.graywolf336.jail.enums.Lang;
|
||||
needsPlayer = false,
|
||||
pattern = "delete|d",
|
||||
permission = "jail.command.jaildelete",
|
||||
usage = "/jail delete <jail>"
|
||||
usage = "/jail delete [jail]"
|
||||
)
|
||||
public class JailDeleteCommand implements Command {
|
||||
public boolean execute(JailManager jm, CommandSender sender, String... args) throws Exception {
|
||||
|
@ -16,7 +16,7 @@ import com.graywolf336.jail.enums.Lang;
|
||||
needsPlayer = false,
|
||||
pattern = "listcells|lc",
|
||||
permission = "jail.command.jaillistcell",
|
||||
usage = "/jail listcells <jail>"
|
||||
usage = "/jail listcells [jail]"
|
||||
)
|
||||
public class JailListCellsCommand implements Command {
|
||||
@Override
|
||||
|
@ -18,7 +18,7 @@ import com.graywolf336.jail.enums.Lang;
|
||||
needsPlayer = false,
|
||||
pattern = "list|l",
|
||||
permission = "jail.command.jaillist",
|
||||
usage = "/jail list <jail>"
|
||||
usage = "/jail list (jail)"
|
||||
)
|
||||
public class JailListCommand implements Command {
|
||||
public boolean execute(JailManager jm, CommandSender sender, String... args) {
|
||||
|
@ -13,7 +13,7 @@ import com.graywolf336.jail.enums.Lang;
|
||||
needsPlayer = false,
|
||||
pattern = "mute|m",
|
||||
permission = "jail.command.jailmute",
|
||||
usage = "/jail mute <player>"
|
||||
usage = "/jail mute [name]"
|
||||
)
|
||||
public class JailMuteCommand implements Command {
|
||||
public boolean execute(JailManager jm, CommandSender sender, String... args) throws Exception {
|
||||
|
@ -20,7 +20,7 @@ import com.graywolf336.jail.enums.Settings;
|
||||
needsPlayer = true,
|
||||
pattern = "pay",
|
||||
permission = "jail.usercmd.jailpay",
|
||||
usage = "/jail pay <amount> <player>"
|
||||
usage = "/jail pay (amount) (name)"
|
||||
)
|
||||
public class JailPayCommand implements Command {
|
||||
public boolean execute(JailManager jm, CommandSender sender, String... args) throws Exception {
|
||||
|
@ -13,9 +13,9 @@ import com.graywolf336.jail.enums.Lang;
|
||||
maxArgs = 2,
|
||||
minimumArgs = 1,
|
||||
needsPlayer = false,
|
||||
pattern = "reload|r",
|
||||
pattern = "record|r",
|
||||
permission = "jail.command.jailrecord",
|
||||
usage = "/jail record <username> <display>"
|
||||
usage = "/jail record [name] (display)"
|
||||
)
|
||||
public class JailRecordCommand implements Command {
|
||||
public boolean execute(JailManager jm, CommandSender sender, String... args) {
|
||||
|
@ -12,7 +12,7 @@ import com.graywolf336.jail.enums.Lang;
|
||||
maxArgs = 0,
|
||||
minimumArgs = 0,
|
||||
needsPlayer = false,
|
||||
pattern = "reload|r",
|
||||
pattern = "reload",
|
||||
permission = "jail.command.jailreload",
|
||||
usage = "/jail reload"
|
||||
)
|
||||
@ -29,7 +29,7 @@ public class JailReloadCommand implements Command {
|
||||
|
||||
sender.sendMessage(Lang.PLUGINRELOADED.get());
|
||||
}catch (Exception e) {
|
||||
sender.sendMessage(ChatColor.RED + e.getMessage());
|
||||
sender.sendMessage(ChatColor.RED + "Failed to reload due to: " + e.getMessage());
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -15,7 +15,7 @@ import com.graywolf336.jail.enums.Lang;
|
||||
needsPlayer = false,
|
||||
pattern = "telein|teleportin",
|
||||
permission = "jail.command.jailtelein",
|
||||
usage = "/jail telein <jailname> (player)"
|
||||
usage = "/jail telein [jail] (name)"
|
||||
)
|
||||
public class JailTeleInCommand implements Command {
|
||||
public boolean execute(JailManager jm, CommandSender sender, String... args) throws Exception {
|
||||
|
@ -15,7 +15,7 @@ import com.graywolf336.jail.enums.Lang;
|
||||
needsPlayer = false,
|
||||
pattern = "teleout|teleportout",
|
||||
permission = "jail.command.jailteleout",
|
||||
usage = "/jail teleout <jailname> (player)"
|
||||
usage = "/jail teleout [jail] (name)"
|
||||
)
|
||||
public class JailTeleOutCommand implements Command {
|
||||
public boolean execute(JailManager jm, CommandSender sender, String... args) throws Exception {
|
||||
|
@ -15,7 +15,7 @@ import com.graywolf336.jail.enums.Lang;
|
||||
needsPlayer = false,
|
||||
pattern = "time|t",
|
||||
permission = "jail.command.jailtime",
|
||||
usage = "/jail time [add|remove|show] [player] <time>"
|
||||
usage = "/jail time [add|remove|show] [name] <time>"
|
||||
)
|
||||
public class JailTimeCommand implements Command {
|
||||
public boolean execute(JailManager jm, CommandSender sender, String... args) throws Exception {
|
||||
|
@ -17,7 +17,7 @@ import com.graywolf336.jail.enums.Lang;
|
||||
needsPlayer = false,
|
||||
pattern = "transferall|transall",
|
||||
permission = "jail.command.jailtransferall",
|
||||
usage = "/jail transferall oldjail targetjail"
|
||||
usage = "/jail transferall [current] [target]"
|
||||
)
|
||||
public class JailTransferAllCommand implements Command {
|
||||
public boolean execute(JailManager jm, CommandSender sender, String... args) throws Exception {
|
||||
|
@ -25,7 +25,7 @@ import com.lexicalscope.jewel.cli.CliFactory;
|
||||
needsPlayer = false,
|
||||
pattern = "transfer|trans",
|
||||
permission = "jail.command.jailtransfer",
|
||||
usage = "/jail transfer -p player -j jail -c cell"
|
||||
usage = "/jail transfer [-p player] (-j jail) (-c cell)"
|
||||
)
|
||||
public class JailTransferCommand implements Command {
|
||||
public boolean execute(JailManager jm, CommandSender sender, String... args) throws Exception {
|
||||
|
Loading…
Reference in New Issue
Block a user