add info on user

This commit is contained in:
Johannes Frohnmeyer 2023-03-12 20:54:01 +01:00
parent 2341c0e2ee
commit 22fd7a0a8e
Signed by: Johannes
GPG Key ID: E76429612C2929F4
1 changed files with 5 additions and 1 deletions

View File

@ -10,6 +10,7 @@ import io.gitlab.jfronny.muscript.data.Scope;
import io.gitlab.jfronny.muscript.data.Script;
import io.gitlab.jfronny.muscript.data.dynamic.DNull;
import io.gitlab.jfronny.muscript.data.dynamic.Dynamic;
import io.gitlab.jfronny.muscript.data.dynamic.additional.DFinal;
import io.gitlab.jfronny.muscript.error.LocationalException;
import net.fabricmc.api.DedicatedServerModInitializer;
import net.fabricmc.fabric.api.command.v2.CommandRegistrationCallback;
@ -80,7 +81,10 @@ public class BetterWhitelistServer implements DedicatedServerModInitializer {
while (challenge.responses.isEmpty() && handler.isConnectionOpen() && i++ < 100) sleep(10);
if (!challenge.responses.isEmpty()) return challenge.responses.remove();
else throw new AssertFail("Took too long to respond");
});
}).set("user", Map.of(
"id", DFinal.of(gp.getId().toString()),
"name", DFinal.of(gp.getName())
));
FutureTask<?> future = new FutureTask<>(() -> {
try {