Compare commits
2 Commits
fb2bbb70d4
...
73cfb772b1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
73cfb772b1 | ||
|
|
941b7d0d8f |
|
|
@ -44,7 +44,7 @@ public class AbilityMob implements Runnable {
|
|||
if (mob.isDead()) {
|
||||
cancelTask();
|
||||
if (Config.SETTINGS.DEBUG) {
|
||||
log.debug("Entity died, cancelling ability task");
|
||||
log.info("DEBUG: Entity died, cancelling ability task");
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ public class AbilityThread {
|
|||
return;
|
||||
}
|
||||
if (tasksMap.containsKey(identifier)) {
|
||||
log.debug("Already scheduled task with identifier {}, skipping", identifier);
|
||||
log.info("DEBUG: Already scheduled task with identifier {}, skipping", identifier);
|
||||
return;
|
||||
}
|
||||
Future<?> future = executorService.submit(() -> {
|
||||
|
|
|
|||
|
|
@ -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.debug("Invalid argument length: {} expected 2 or 6", args.length);
|
||||
log.info("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.debug("Invalid mob type {}", args[2]);
|
||||
log.info("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.debug("Expected player with argument length of 2");
|
||||
log.info("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.debug("Invalid coordinates x: {}, y: {}, z: {}", args[4], args[5], args[6]);
|
||||
log.info("DEBUG: Invalid coordinates x: {}, y: {}, z: {}", args[4], args[5], args[6]);
|
||||
return Optional.empty();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ public class SpawnableTargetBlock {
|
|||
while (iter.hasNext()) {
|
||||
Block block = iter.next();
|
||||
if (isSpawnable(block)) {
|
||||
return Optional.of(block.getLocation());
|
||||
return Optional.of(block.getLocation().add(0, 1, 0));
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user