Get value of player current region id?

In rpgmaker VX ace, you can use $game_player.region_id to return a value of the player current region id.


What's the java version of this command  for RMMV? 


I tried $gameParty.regionId() and it is not a function 🙁
$gamePlayer.regionId() should work nicely.
Here is a handy little common event that solves that:


http://blog.rpgmakerweb.com/tutorials/tutorial-using-regionid-in-events/
$gamePlayer.regionId() should work nicely.

Of course! Why am I so dumb? 


Thanks for the solution!
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/get-value-of-player-current-region-id.66355/