add info on user
This commit is contained in:
parent
2341c0e2ee
commit
22fd7a0a8e
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue