Compare commits

..

No commits in common. "73cfb772b1a5f7529a89917d4d61816aff946f13" and "fb2bbb70d41aa9e8a9f1a0b971b3fd5073adf2f6" have entirely different histories.

4 changed files with 7 additions and 7 deletions

View File

@ -44,7 +44,7 @@ public class AbilityMob implements Runnable {
if (mob.isDead()) {
cancelTask();
if (Config.SETTINGS.DEBUG) {
log.info("DEBUG: Entity died, cancelling ability task");
log.debug("Entity died, cancelling ability task");
}
return;
}

View File

@ -43,7 +43,7 @@ public class AbilityThread {
return;
}
if (tasksMap.containsKey(identifier)) {
log.info("DEBUG: Already scheduled task with identifier {}, skipping", identifier);
log.debug("Already scheduled task with identifier {}, skipping", identifier);
return;
}
Future<?> future = executorService.submit(() -> {

View File

@ -30,7 +30,7 @@ public class Spawn extends SubCommand {
@Override
public boolean onCommand(CommandSender commandSender, String[] args) {
if (args.length != 3 && args.length != 7) {
log.info("DEBUG: Invalid argument length: {} expected 2 or 6", args.length);
log.debug("Invalid argument length: {} expected 2 or 6", args.length);
return false;
}
Optional<MobType> optionalMobType = MobTypes.MOB_TYPES.get(args[1]);
@ -43,7 +43,7 @@ public class Spawn extends SubCommand {
try {
entityType = EntityType.valueOf(args[2]);
} catch (IllegalArgumentException e) {
log.info("DEBUG: Invalid mob type {}", args[2]);
log.debug("Invalid mob type {}", args[2]);
return false;
}
if (!entityType.isSpawnable() || !isMob(entityType)) {
@ -66,7 +66,7 @@ public class Spawn extends SubCommand {
} else if (args.length == 7) {
return getLocation(args);
} else {
log.info("DEBUG: Expected player with argument length of 2");
log.debug("Expected player with argument length of 2");
return Optional.empty();
}
}
@ -82,7 +82,7 @@ public class Spawn extends SubCommand {
double z = Double.parseDouble(args[6]);
return Optional.of(new Location(world, x, y, z));
} catch (NumberFormatException e) {
log.info("DEBUG: Invalid coordinates x: {}, y: {}, z: {}", args[4], args[5], args[6]);
log.debug("Invalid coordinates x: {}, y: {}, z: {}", args[4], args[5], args[6]);
return Optional.empty();
}
}

View File

@ -16,7 +16,7 @@ public class SpawnableTargetBlock {
while (iter.hasNext()) {
Block block = iter.next();
if (isSpawnable(block)) {
return Optional.of(block.getLocation().add(0, 1, 0));
return Optional.of(block.getLocation());
}
}
return Optional.empty();