Quick fix, but let's parse the jail command if no args.
This commit is contained in:
		@@ -30,6 +30,9 @@ public class JailHandler {
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	public void handleCommand(JailManager jm, CommandSender sender, String... args) {
 | 
						public void handleCommand(JailManager jm, CommandSender sender, String... args) {
 | 
				
			||||||
 | 
							if(args.length == 0) {
 | 
				
			||||||
 | 
								parseCommand(jm, sender, getMatches("jail").get(0), args);
 | 
				
			||||||
 | 
							}else {
 | 
				
			||||||
			JailFoundation foundation = new JailFoundation();
 | 
								JailFoundation foundation = new JailFoundation();
 | 
				
			||||||
			JCommander jc = new JCommander(foundation);
 | 
								JCommander jc = new JCommander(foundation);
 | 
				
			||||||
			
 | 
								
 | 
				
			||||||
@@ -54,6 +57,7 @@ public class JailHandler {
 | 
				
			|||||||
				parseCommand(jm, sender, getMatches("jail").get(0), args);
 | 
									parseCommand(jm, sender, getMatches("jail").get(0), args);
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	/**
 | 
						/**
 | 
				
			||||||
	 * Handles the given command and checks that the command is in valid form.
 | 
						 * Handles the given command and checks that the command is in valid form.
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user