mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Fixed Sponge plugin user auths config loading (#445)
This commit is contained in:
parent
78f2d2c089
commit
697e478e04
1 changed files with 3 additions and 6 deletions
|
@ -26,17 +26,13 @@
|
||||||
package org.geysermc.platform.sponge;
|
package org.geysermc.platform.sponge;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
|
|
||||||
import ninja.leaping.configurate.ConfigurationNode;
|
import ninja.leaping.configurate.ConfigurationNode;
|
||||||
|
|
||||||
import org.geysermc.common.IGeyserConfiguration;
|
import org.geysermc.common.IGeyserConfiguration;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
import java.nio.file.Paths;
|
import java.nio.file.Paths;
|
||||||
import java.util.HashMap;
|
import java.util.*;
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
public class GeyserSpongeConfiguration implements IGeyserConfiguration {
|
public class GeyserSpongeConfiguration implements IGeyserConfiguration {
|
||||||
|
|
||||||
|
@ -60,7 +56,8 @@ public class GeyserSpongeConfiguration implements IGeyserConfiguration {
|
||||||
if (node.getNode("userAuths").getValue() == null)
|
if (node.getNode("userAuths").getValue() == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
for (String key : (List<String>) node.getNode("userAuths").getValue()) {
|
List<String> userAuths = new ArrayList<String>(((LinkedHashMap)node.getNode("userAuths").getValue()).keySet());
|
||||||
|
for (String key : userAuths) {
|
||||||
userAuthInfo.put(key, new SpongeUserAuthenticationInfo(key));
|
userAuthInfo.put(key, new SpongeUserAuthenticationInfo(key));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue