xp updater: add seasonal worlds to wom

This commit is contained in:
Adam
2022-01-05 15:46:48 -05:00
parent 1a88fcc57b
commit 0abe846028

View File

@@ -192,13 +192,13 @@ public class XpUpdaterPlugin extends Plugin
private void updateWom(String username, EnumSet<WorldType> worldTypes) private void updateWom(String username, EnumSet<WorldType> worldTypes)
{ {
if (config.wiseoldman() if (config.wiseoldman()
&& !worldTypes.contains(WorldType.SEASONAL)
&& !worldTypes.contains(WorldType.DEADMAN) && !worldTypes.contains(WorldType.DEADMAN)
&& !worldTypes.contains(WorldType.NOSAVE_MODE)) && !worldTypes.contains(WorldType.NOSAVE_MODE))
{ {
String host = worldTypes.contains(WorldType.SEASONAL) ? "seasonal.wiseoldman.net" : "wiseoldman.net";
HttpUrl url = new HttpUrl.Builder() HttpUrl url = new HttpUrl.Builder()
.scheme("https") .scheme("https")
.host("wiseoldman.net") .host(host)
.addPathSegment("api") .addPathSegment("api")
.addPathSegment("players") .addPathSegment("players")
.addPathSegment("track") .addPathSegment("track")