1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Resolved Twisted League missing from WorldOverview API

Discussion in 'Developer Support' started by CuppaJava, Dec 26, 2019.

  1. CuppaJava

    CuppaJava cuppa.drink(java);

    Joined:
    Mar 13, 2018
    Messages:
    6,121
    Likes Received:
    1,378
    Added a few months ago (I think?), there's a new world type called twisted league that should have a filter like .isTwistedLeague() in WorldOverview like .isPVP(), isDeadman() etc have.

    A temporary workaround is
    Code (Text):
    1. "Twisted League".equals(world.getActivity())
    but it's still something that should be in the API for uniformity.

     
    #1 CuppaJava, Dec 26, 2019
    Last edited: Dec 26, 2019
  2. Best Answer:
    Post #3 by Cloud, Jan 11, 2020
  3. Savior

    Savior Java Warlord

    Joined:
    Nov 17, 2014
    Messages:
    4,906
    Likes Received:
    2,748
    There should be something like isSeasonal()
     
  4. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    This is exposed as WorldOverview#isLeague()
     

Share This Page

Loading...