Remove last test and various changes
This commit is contained in:
parent
24ed74446b
commit
176fde313e
@ -194,7 +194,7 @@ public class JailManager {
|
|||||||
* @return True if a valid jail was found, false if no jail was found.
|
* @return True if a valid jail was found, false if no jail was found.
|
||||||
*/
|
*/
|
||||||
public boolean isValidJail(String name) {
|
public boolean isValidJail(String name) {
|
||||||
return this.jails.get(name.toLowerCase()) != null;
|
return this.jails.containsKey(name.toLowerCase());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -24,7 +24,7 @@ import com.graywolf336.jail.enums.Lang;
|
|||||||
permission = "jail.command.jailcheck",
|
permission = "jail.command.jailcheck",
|
||||||
usage = "/jail check [name]"
|
usage = "/jail check [name]"
|
||||||
)
|
)
|
||||||
public class JailCheckCommand implements Command{
|
public class JailCheckCommand implements Command {
|
||||||
|
|
||||||
// Checks the status of the specified prisoner
|
// Checks the status of the specified prisoner
|
||||||
public boolean execute(JailManager jm, CommandSender sender, String... args) {
|
public boolean execute(JailManager jm, CommandSender sender, String... args) {
|
||||||
|
@ -47,11 +47,6 @@ public class TestJailAPI {
|
|||||||
main = null;
|
main = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
public void testBuildNumber() {
|
|
||||||
assertSame("The build version from the api was not 0.", 0, JailsAPI.getBuildNumber());
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testManagersAreThere() {
|
public void testManagersAreThere() {
|
||||||
assertNotNull(main.getHandCuffManager());
|
assertNotNull(main.getHandCuffManager());
|
||||||
|
Loading…
Reference in New Issue
Block a user