[BREAKING] Change up cell selection.
In the PrisonerManager you can now provide either AnyCell or NoCell and it'll select a cell or not based upon the provided one. This is breaking because it changes the required types in the methods and the new cells don't have anything implemented and throw exceptions.
This commit is contained in:
@ -19,6 +19,7 @@ import com.graywolf336.jail.command.commands.jewels.Jailing;
|
||||
import com.graywolf336.jail.enums.Lang;
|
||||
import com.graywolf336.jail.enums.Settings;
|
||||
import com.graywolf336.jail.events.PrePrisonerJailedEvent;
|
||||
import com.graywolf336.jail.interfaces.ICell;
|
||||
import com.lexicalscope.jewel.cli.ArgumentValidationException;
|
||||
import com.lexicalscope.jewel.cli.CliFactory;
|
||||
|
||||
@ -126,7 +127,7 @@ public class JailCommand implements Command {
|
||||
return true;
|
||||
}
|
||||
|
||||
Cell c = null;
|
||||
ICell c = null;
|
||||
//Check if the cell is defined
|
||||
if(params.isCell()) {
|
||||
//Check if it is a valid cell
|
||||
|
Reference in New Issue
Block a user