mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-23 02:55:45 +01:00
Split auth server into separate method
This commit is contained in:
parent
28b0c4fdc3
commit
a18b55b5f7
@ -258,7 +258,7 @@ public class NMSImpl implements NMSBridge {
|
|||||||
.getAuthenticationService();
|
.getAuthenticationService();
|
||||||
|
|
||||||
URL url = HttpAuthenticationService
|
URL url = HttpAuthenticationService
|
||||||
.constantURL(Setting.AUTH_SERVER_URL.asString() + UUIDTypeAdapter.fromUUID(profile.getId()));
|
.constantURL(getAuthServerBaseUrl() + UUIDTypeAdapter.fromUUID(profile.getId()));
|
||||||
|
|
||||||
url = HttpAuthenticationService.concatenateURL(url, "unsigned=" + !requireSecure);
|
url = HttpAuthenticationService.concatenateURL(url, "unsigned=" + !requireSecure);
|
||||||
|
|
||||||
@ -274,6 +274,10 @@ public class NMSImpl implements NMSBridge {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getAuthServerBaseUrl() {
|
||||||
|
return Setting.AUTH_SERVER_URL.asString();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BossBar getBossBar(org.bukkit.entity.Entity entity) {
|
public BossBar getBossBar(org.bukkit.entity.Entity entity) {
|
||||||
BossBattleServer bserver = null;
|
BossBattleServer bserver = null;
|
||||||
|
@ -76,7 +76,7 @@ public class ProfileFetcher {
|
|||||||
if (request == null)
|
if (request == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
request.setResult(NMS.fillProfileProperties(profile, true), ProfileFetchResult.SUCCESS);
|
request.setResult(NMS.fillProfileProperties(profile, true), ProfileFetchResult.SUCCESS);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
if (Messaging.isDebugging()) {
|
if (Messaging.isDebugging()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user