Posts by yahwho

    OK I think may have it.


    Just need to create 6 if statements and flesh out the code. :thumbsup:



    I'm assuming player is in none-creative mode (max stack 64)

    Within the onPlayerPlaceBlock event there is:


    Code
    event.isMultiplePlacement()
    event.getMultiplePlacementDirection();
    event.getMultiplePlacementCount();

    It would be really useful to be able to get the end x, y, z chunk position.



    Currently I'm struggling to understand how I can get this ?( and not from lack of trying. . . ( I shall continue my testing 8o )


    Yup I'm running around spawning some now.


    Yes a simple plugin might suffice for now.


    The API calls get a +1 from me!

    Hi folk!


    So, on a multiplayer server you have loads of people killing the NPCs particularly around the initial spawn point.


    Could someone clarify what mechanism spawns new NPCs?


    There appears to be a distinct lack of them around the initial spawn point now. :( One player mentioned that they've only seen 1 npc (a pig) in 24 hours! =O

    hi guys, I've already written that part of the program using the UID for owner and friend. So I'll have to leave it as it is (far too much on my plate to rewrite code that already works). I was just trying to work out how someone could easily remove a friend.


    Min, you're probably right not to include the UID string in the output. Maybe have an extra field in case the users wants to see this like:


    /list friends showuid


    :thumbup:

    General question but why do you want to implement an in-server friend list? Isn't the steam one sufficient? I understand that standalone users cannot benefit from the steam one but still think it is too much effort with no real benefit for most users.


    Hi Minotorious,


    I'm writing a chunk protection program.


    My `Friends` database consists of (ID, OwnerUID, FriendUID) - very similar to the same as what you've suggested.


    Your point 2 sounds good to list the friends and then possibly have a "shortcut ID" created on the fly to remove the friend from the list, rather than the user having to type in the whole UID.


    Something like,


    /list friends


    8023098235768907230572 last known name Bob (ID: 1)
    8237592385682375872387 last known name Jane (ID: 2)


    /remove friend 2



    CHEERS!