Add the removing of a jail via the ``/jail delete
`` command.
This commit is contained in:
@ -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.
|
||||
*
|
||||
|
Reference in New Issue
Block a user