onPlayerPlaceBlueprint Event

The official Rising World Soundtrack is available!
You can also get the Soundtrack on Steam
  • Hi red51


    In the new version, if it's not too much hassle can we get some methods in order to see how many resources a blueprint costs?


    Something like...


    Code
    onPlayerPlaceBlueprint(PlayerPlaceBlueprintEvent event){
    int lumber = event.getLumberResources();
    int stone = event.getStoneResources();
    int iron_rods = event.getIronRodResources();
    // etc etc.
    }


    :monocle:

  • I will put that on our todo-list :) This wasn't implemented in the Java version because this information wasn't available yet (the server which triggered the event didn't even know how much stone or lumber was required for that blueprint) :saint:

    But we need to add this information anyway for survival mode (so players can no longer place blueprints "for free").


    Not sure about individual methods though (like event.getIronRodResources() etc) :thinking: There are so many potential items that could be required, so maybe we find a more abstract way to expose the resources in the API.

Participate now!

Don’t have an account yet? Create a new account now and be part of our community!