diff --git a/src/main/java/com/graywolf336/jail/command/commands/JailCommand.java b/src/main/java/com/graywolf336/jail/command/commands/JailCommand.java index ea3ef65..1259d3d 100644 --- a/src/main/java/com/graywolf336/jail/command/commands/JailCommand.java +++ b/src/main/java/com/graywolf336/jail/command/commands/JailCommand.java @@ -13,7 +13,7 @@ import com.graywolf336.jail.command.CommandInfo; needsPlayer = false, pattern = "jail|j", permission = "jail.command.jail", - usage = "/jail [p:name] (t:time) (j:Jail name) (c:Cell name) (r:Reason) (m:Muted)" + usage = "/jail [p:name] (t:time) (j:Jail name) (c:Cell name) (m:Muted) (r:Reason)" ) public class JailCommand implements Command { @@ -26,7 +26,7 @@ public class JailCommand implements Command { if(s.startsWith("p:")) { player = s.substring(2); }else if(s.startsWith("t:")) { - Integer.parseInt(s.substring(2)); + time = Integer.parseInt(s.substring(2)); }else if(s.startsWith("j:")) { jail = s.substring(2); }else if(s.startsWith("c:")) { @@ -42,10 +42,10 @@ public class JailCommand implements Command { //Player is not online if(p == null) { - sender.sendMessage(player + " is offline."); + sender.sendMessage(player + " is offline and will be jailed for " + time + " minutes in the jail " + jail + " and will be muted: " + muted + "."); }else { //Player *is* online - sender.sendMessage(player + " is online."); + sender.sendMessage(player + " is offline and will be jailed for " + time + " minutes in the jail " + jail + " and will be muted: " + muted + "."); } return true; diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 4894c4c..076f3a1 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -15,7 +15,7 @@ commands: description: Remove existing jail zone jail: description: Jail specified player for specified amount of time. - usage: /jail [p:player] (t:time) (j:jail) (c:cell) (r:reason) (m:muted) + usage: /jail [p:name] (t:time) (j:Jail name) (c:Cell name) (m:Muted) (r:Reason) unjail: description: Release a player from jail. unjailforce: