Jump to content

How to use methods World class not Worlds class?


Pegasus

Recommended Posts

1 hour ago, Pegasus said:


It's deprecated, you shouldn't use it, and it doesn't make any sense to create a World instance yourself. To determine if a world is PVP it just checks the activity String that you provide.

Like mentioned in the other post you should use the widgets from the world switcher, or find a different solution.

 

Link to comment
Share on other sites

TL: We have an actual World hook which that class used to represent. When the world switcher came out I only wanted to maintain one form of world hopping, not both the login screen and world switcher. I decided to not use the world hook and only use the world switcher, as this seems more preferable. There were also issues with scripters not understanding that the world accessor was only available when you were completely logged out - which lead to a lot of confusion because all the other API methods were available only when logged in. Since then I moved to have the script only execute when you are completely logged in, which makes this impossible anyways.

TLDR: I use that class internally, it could just be re-written as a private inner class that API users can't access.

Link to comment
Share on other sites

  • Alek locked this topic
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...