Compare commits
2
Commits
fb2bbb70d4
...
73cfb772b1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
73cfb772b1 | ||
|
|
941b7d0d8f |
@@ -44,7 +44,7 @@ public class AbilityMob implements Runnable {
|
|||||||
if (mob.isDead()) {
|
if (mob.isDead()) {
|
||||||
cancelTask();
|
cancelTask();
|
||||||
if (Config.SETTINGS.DEBUG) {
|
if (Config.SETTINGS.DEBUG) {
|
||||||
log.debug("Entity died, cancelling ability task");
|
log.info("DEBUG: Entity died, cancelling ability task");
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ public class AbilityThread {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (tasksMap.containsKey(identifier)) {
|
if (tasksMap.containsKey(identifier)) {
|
||||||
log.debug("Already scheduled task with identifier {}, skipping", identifier);
|
log.info("DEBUG: Already scheduled task with identifier {}, skipping", identifier);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Future<?> future = executorService.submit(() -> {
|
Future<?> future = executorService.submit(() -> {
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ public class Spawn extends SubCommand {
|
|||||||
@Override
|
@Override
|
||||||
public boolean onCommand(CommandSender commandSender, String[] args) {
|
public boolean onCommand(CommandSender commandSender, String[] args) {
|
||||||
if (args.length != 3 && args.length != 7) {
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
Optional<MobType> optionalMobType = MobTypes.MOB_TYPES.get(args[1]);
|
Optional<MobType> optionalMobType = MobTypes.MOB_TYPES.get(args[1]);
|
||||||
@@ -43,7 +43,7 @@ public class Spawn extends SubCommand {
|
|||||||
try {
|
try {
|
||||||
entityType = EntityType.valueOf(args[2]);
|
entityType = EntityType.valueOf(args[2]);
|
||||||
} catch (IllegalArgumentException e) {
|
} catch (IllegalArgumentException e) {
|
||||||
log.debug("Invalid mob type {}", args[2]);
|
log.info("DEBUG: Invalid mob type {}", args[2]);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!entityType.isSpawnable() || !isMob(entityType)) {
|
if (!entityType.isSpawnable() || !isMob(entityType)) {
|
||||||
@@ -66,7 +66,7 @@ public class Spawn extends SubCommand {
|
|||||||
} else if (args.length == 7) {
|
} else if (args.length == 7) {
|
||||||
return getLocation(args);
|
return getLocation(args);
|
||||||
} else {
|
} else {
|
||||||
log.debug("Expected player with argument length of 2");
|
log.info("DEBUG: Expected player with argument length of 2");
|
||||||
return Optional.empty();
|
return Optional.empty();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -82,7 +82,7 @@ public class Spawn extends SubCommand {
|
|||||||
double z = Double.parseDouble(args[6]);
|
double z = Double.parseDouble(args[6]);
|
||||||
return Optional.of(new Location(world, x, y, z));
|
return Optional.of(new Location(world, x, y, z));
|
||||||
} catch (NumberFormatException e) {
|
} 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();
|
return Optional.empty();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ public class SpawnableTargetBlock {
|
|||||||
while (iter.hasNext()) {
|
while (iter.hasNext()) {
|
||||||
Block block = iter.next();
|
Block block = iter.next();
|
||||||
if (isSpawnable(block)) {
|
if (isSpawnable(block)) {
|
||||||
return Optional.of(block.getLocation());
|
return Optional.of(block.getLocation().add(0, 1, 0));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return Optional.empty();
|
return Optional.empty();
|
||||||
|
|||||||
Reference in New Issue
Block a user