Posts by yahwho

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

    Hmmm I'm getting PVE is not allowed message when hitting NPCs (like a cow)?


    The admin.json file within permissions:

    Code
    "general" : {
        "pve": true,
        "pvp": true
    }

    The event onPlayerEnterVehicleEvent


    Java
    event.getVehicle().getPassenger(i)


    Returns null values. So even though the console states:


    Code
    Passengers (Vehicle 9390639): (0) Yahwho


    So if you try to grab the passenger Player object you get null.


    Java
    if(player == null){
        System.out.println("Name of passenger: is null");
    }
    [Java] Name of passenger: is null

    Hi Red,


    My plugin protects players doors from being opened and closed via the PlayerObjectInteractionEvent.


    However, this does mean that all doors, be them locked or unlocked are unoperable by players who do not "own" the land.


    I would like to make this so that players can open unlocked doors to explore builds.


    IWith that in mind I've noticed that the event.getObject().getInfo() will return a 0 if the door is unlocked or a 1 if it is locked. (This return type is a Long - not sure why?)


    Anyway, the main stumbling block is that this method (PlayerObjectInteractionEvent) isn't called if the player holds down the action key to access the objects radial menu - so anyone can lock or unlock a door.


    Is there a method that is called when these kinds of radial menus are opened? I can't seem to find one? Maybe one does not exist!


    Maybe we need a new method to check if a door/chest is locked or not? One that is invoked *before* the radial menu pops up.



    (In addition I have noticed a small bug you may want to fix. When a door is flipped to enable "double doors", one of the doors radial menu is the wrong way round ("open" and "close" are the wrong way round.) See below:


    This is incredibly sad news.


    My thoughts and deepest condolences are with Juggernaut's family, friends, and loved ones during this difficult time.


    He was a true gentleman who brought so much to the community, and his presence will be dearly missed by all who had the privilege of knowing him.


    Rest in peace, Juggernaut.

    I just use the built in RW scheduler. It shuts down on time, it just doesn't restart.


    Unfortunately I've gone downhill fast today with a cold so I can't really look into it more at the moment... :(

    Hi Red,


    Now that we have Seasons can we get a method to set the day?


    Code
    Server.setGameTime(hour, min); //exists
    Server.setDay(day);            //we need :)

    red51 not sure what I did but I ifnally got it to work. What I did was use my steam ID instead of anonymous ... also reset steamguard for steamCMD for that pc as i change PW recently .. and that seems to have done the trick.


    thank you so much for the update and your time.

    Hi,


    Just to mention, updating the regular way worked fine on my server (Windows server) but on my workstation (Windows desktop) I have the same issue as Juggernaut

    I am logging in as anonymous. I will try my Steam account now...

    Just though I would let you know, as this has not happened to me either before.


    Edit: yes using a non-anonymous account worked on workstation.

    Lovely update red51 and thanks for fixing the API null returns so quickly. :D


    Really love that the leaves change colour with the seasons! Really adds to the immersiveness.


    Big thanks to you and KingG for all your hard work. :thumbup:


    Hopefully you won't have too many more bugs to iron out before a well deservered Yuletime break!

    It's evt.getPlayer().getName() that the plugin uses.


    But there is also a database write afterwards.


    So I'm also seeing a MySQLIntegrityConstraintViolationException which is saying the PlayerUID cannot be null.


    Which implies to me that the player object is null.

    Hmm... do you mean the event object is null?


    The console records who has joined the server. So it says something like:


    [Java] OnPlayerConnectEvent: Yahwho is connecting....

    it now says (with a lot of java error code)

    [Java] OnPlayerConnectEvent: null is connecting....