Creation a CreationPlayer with the jailname and cellname.

This commit is contained in:
graywolf336 2013-12-09 14:45:24 -06:00
parent d85b2db190
commit b5133842c0
2 changed files with 2 additions and 5 deletions

View File

@ -248,7 +248,7 @@ public class JailManager {
if(isCreatingACell(player)) {
return false;
}else {
this.cellCreators.put(player.toLowerCase(), new CreationPlayer(cellName));
this.cellCreators.put(player.toLowerCase(), new CreationPlayer(jailName, cellName));
return true;
}
}

View File

@ -5,7 +5,6 @@ import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import com.graywolf336.jail.JailManager;
import com.graywolf336.jail.beans.Cell;
import com.graywolf336.jail.beans.Jail;
import com.graywolf336.jail.command.Command;
import com.graywolf336.jail.command.CommandInfo;
@ -46,10 +45,8 @@ public class CellCreateCommand implements Command {
//If they didn't provide a cell name, let's provide one ourself.
if(cell.isEmpty()) cell = "cell_n" + (j.getCellCount() + 1);
Cell c = j.getCell(cell);
//No cell found
if(c == null) {
if(j.getCell(cell) == null) {
if(jm.addCreatingCell(name, jail, cell)) {
jm.getCellCreationSteps().startStepping(player);
}else {