xp updater: add seasonal worlds to wom
This commit is contained in:
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user