Nothing major, just tiny little bits and pieces.
This commit is contained in:
		| @@ -13,7 +13,7 @@ import com.graywolf336.jail.command.CommandInfo; | |||||||
| 		needsPlayer = false, | 		needsPlayer = false, | ||||||
| 		pattern = "jail|j", | 		pattern = "jail|j", | ||||||
| 		permission = "jail.command.jail", | 		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 { | public class JailCommand implements Command { | ||||||
|  |  | ||||||
| @@ -26,7 +26,7 @@ public class JailCommand implements Command { | |||||||
| 			if(s.startsWith("p:")) { | 			if(s.startsWith("p:")) { | ||||||
| 				player = s.substring(2); | 				player = s.substring(2); | ||||||
| 			}else if(s.startsWith("t:")) { | 			}else if(s.startsWith("t:")) { | ||||||
| 				Integer.parseInt(s.substring(2)); | 				time = Integer.parseInt(s.substring(2)); | ||||||
| 			}else if(s.startsWith("j:")) { | 			}else if(s.startsWith("j:")) { | ||||||
| 				jail = s.substring(2); | 				jail = s.substring(2); | ||||||
| 			}else if(s.startsWith("c:")) { | 			}else if(s.startsWith("c:")) { | ||||||
| @@ -42,10 +42,10 @@ public class JailCommand implements Command { | |||||||
| 		 | 		 | ||||||
| 		//Player is not online | 		//Player is not online | ||||||
| 		if(p == null) { | 		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 { | 		}else { | ||||||
| 			//Player *is* online | 			//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; | 		return true; | ||||||
|   | |||||||
| @@ -15,7 +15,7 @@ commands: | |||||||
|         description: Remove existing jail zone |         description: Remove existing jail zone | ||||||
|     jail: |     jail: | ||||||
|         description: Jail specified player for specified amount of time. |         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: |     unjail: | ||||||
|         description: Release a player from jail. |         description: Release a player from jail. | ||||||
|     unjailforce: |     unjailforce: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 graywolf336
					graywolf336