Add the removing of a jail via the ``/jail delete`` command.

This commit is contained in:
graywolf336
2014-02-13 11:26:42 -06:00
parent 950eb638b8
commit 78cc20c2c1
6 changed files with 75 additions and 0 deletions

View File

@ -73,6 +73,16 @@ public class JailManager {
if(n) plugin.getJailIO().saveJail(jail);
}
/**
* Removes a {@link Jail}.
*
* @param name of the jail to remove
*/
public void removeJail(String name) {
this.jails.remove(name);
plugin.getJailIO().removeJail(name);
}
/**
* Gets a jail by the given name.
*