Posts by Absalom

The next update will be available on Wednesday, December 18, in the early evening (GMT+1).

This update will not yet replace the Java version, instead it is the actual content update. We'll provide more information about the transition together with the update.

    I will also see about creating a /sethome where it will take your location and create you a spawn. You can teleport to those spots.


    /sethome [name] - Set a spawn point and give it a name.
    /home [name] - teleport to a home that you named.
    /listhomes - Lists all homes you have saved, along with their x,z coordinates.

    Tomorrow I will pump out a MOTD script (message of the day) for when players join the server. That one will be super easy, and you can list your server info and site info in there, as well as rules, etc. It will be a label in the center of the screen that displays for a time. Another command "/motd" will allow them to display it again in case they missed it.

    Carlzilla, upon next reboot, I have added you as an admin. You will have the area functionality access. I set up a protected area for Sleepless. They don't have /showareas access yet, so I put pillars on each corner of their area so they can see it. To do that, you have to add yourself as admin to their area. Stand in their area and type /addplayertoarea Admin Carlzilla


    You will have that access as soon as I reboot, probably in the morning when I wake up.

    If we are allowed to access ray tracing through Lua, I may also add a "/showareagui" which could have those commands as buttons along the right side of the screen. Then if you are looking at a player and select, for example, the "Put in prison" button, it will prompt you for an area name, or just assume there is only one "Prison" area, and teleport the player there while adding them to the area as a Prisoner.

    Carlzilla built us a prison! I have cloned the world to the test server (port 30700) and I have created an area around the prison. Guests cannot damage the prison and since the prison has a floor, they can't dig through. I put myself into the Prisoner group by typing in chat while standing in the prison area: "/addplayertoarea Prison Absalom", without the quotes. I was unable to leave the prison, even in fly mode, and unable to dig through the prison walls.


    Now I am going to add a proper database driven group system so that I can add groups on the fly at run time (right now they are defined in a file). Only administrators and moderators will have the ability to add players to groups for now. I am going to create a Warden group, and they will also be allowed to add players to the Prison group, and then teleport the players to the prison. Wardens will, of course, be responsible players and not abuse that power (most likely wardens will be moderators).


    In order to give the player the ability to leave again, two commands have to be executed:


    /removeplayerfromarea Absalom
    /addplayertoarea Guest Absalom


    You have to remove them from the Prisoner group, by removing them from the area, and then add them back to the Guest group, or they still won't be able to leave.

    I guess I could write a script that would have 3 functions, kick, ban, and prison.


    kick <time> [player name] - Kicks the player from the server for a given time.
    ban [player name] - Bans the player permanently.
    prison <time> [area name] [player name] - Teleports a player to a designated prison area for a given time (optional). When the player's time ends, they will be teleported to the world spawn.

    [LUA][AreaProtection] Terrain:8,0,3,8,56,4, Area: 6,0,1,11,57,15,8,1,3,12,35,12


    The values above line up with:


    Terrain being destroyed? (these are event children)
    chunkoffsetx = 8
    chunkoffsety = 0
    chunkoffsetz = 3


    blockpositionx = 8
    blockpositiony = 56
    blockpositionz = 4


    Area (these have been pre-stored when a player creates an area):


    value["startChunkpositionX"] = 6
    value["startChunkpositionY"] = 0
    value["startChunkpositionZ"] = 1
    value["startBlockpositionX"] = 11
    value["startBlockpositionY"] = 57
    value["startBlockpositionZ"] = 15
    value["endChunkpositionX"] = 8
    value["endChunkpositionY"] = 1
    value["endChunkpositionZ"] = 3
    value["endBlockpositionX"] = 12
    value["endBlockpositionY"] = 35
    value["endBlockpositionZ"] = 12



    The big question is, what really do the event variables represent? Is that the terrain block currently being destroyed or something else? From my understanding of the numbers above, they don't fall within the area limits (the block positions anyway), but I am only barely understanding chunk and block positions. I assume that chunks are terrain chunks and block positions are positions within those chunks.