Add more unit tests

This commit is contained in:
William committed 2023-03-22 00:31:02 +00:00
1 parent 8923b44c92
commit 0d358989dc
8 files changed
+368 -18

No files matched your search

@@ -170,7 +170,7 @@ public abstract class Node implements Executable {
}
protected Optional<Teleportable> resolveTeleportable(@NotNull CommandUser executor, @NotNull String[] args) {
protected Optional<Teleportable> resolveTeleporter(@NotNull CommandUser executor, @NotNull String[] args) {
return parseStringArg(args, 0).map(Teleportable::username)
.or(() -> executor instanceof Teleportable ? Optional.of((Teleportable) executor) : Optional.empty());
}