New server questions

Discussion in 'Help and Support' started by RedEagle3, Oct 19, 2018.

  1. RedEagle3

    RedEagle3 Level 1

    Joined:
    Oct 19, 2018
    Messages:
    5
    Hello, I'm new to tShock and had a few questions about configuring the server.

    I'm looking to make a private server that's mostly vanilla, the only thing I want to be changed is for Admins to have the ability to lock regions, the reason I want this is so I can lock each players house and add only them to that region.

    I got a friend to help me test the region commands and I can successfully lock regions but even after I add them to the region they still cannot break blocks.

    The way I locked it was:
    /region set 1
    /region set 2
    /region define [name]
    /region protect [name] [bool]
    /region allow [player name] [region name]

    With the [Example] replaced with the actual values.
    I also noted that they had to create an account before I could add them to regions, is there any way to remove that requirement?

    Finally In the server config I have " "RegionProtectChests": true, ", but I would like to create a spawn area where chests are not locked in that region, but blocks still can't be broken or placed.
     
  2. Kojiro_S

    Kojiro_S Level 11

    Joined:
    Feb 16, 2014
    Messages:
    622
    In TShock's config file you can set a radius around the spawn that is not a region, but is still protected from changes (unless you have permissions to bypass said protection). You can set the world's spawn point by standing on the desired place and typing /setspawn, and the protected radius will extend from that point as its center.

    As for the original question, I'm afraid I don't really know what the issue is, but rather than giving access to regions manually you should try the plugin "House Regions", which uses regions to protect houses without having to rely on an admin.
     
  3. RedEagle3

    RedEagle3 Level 1

    Joined:
    Oct 19, 2018
    Messages:
    5
    I looked into that plugin before and from my understanding, anyone can create a house region.
    I feel like that could be abused in certain ways, for example making a region around the dungeon entrance and blocking it off.

    As for the spawn issue that should work, thanks!
     
  4. Kojiro_S

    Kojiro_S Level 11

    Joined:
    Feb 16, 2014
    Messages:
    622
    House Regions has an option that prevents setting a house... ahem... region, if there is an existing region overlapping it, even if it is unprotected. You can also define the Z index of the created h.regions, which means the region with the higher Z-value has its settings override the lower value ones.
    You can also override the region overlap restriction if the region underneath starts with an asterisk (ie. "*Housing").

    A setup that should work is having a normal, unprotected TShock region named "World" with a Z-index of 2 covering the whole map, a housing area (also unprotected) called "*Housing", with a Z-index of 3, and setting House Regions to give the created housing areas a Z-index of 4.
    You will not be able to build in "World" due to the overlapping regions' restriction. You will, however, be able to claim an area within "*Housing" due to it having an asterisk on front and having a bigger priority than "World".
     
    #4 Kojiro_S, Oct 20, 2018
    Last edited: Oct 20, 2018
  5. RedEagle3

    RedEagle3 Level 1

    Joined:
    Oct 19, 2018
    Messages:
    5
    Hmm, if I understand correctly they would only be able to build inside their region which is inside the housing "district" and not in the "world" region.
    That unfortunately won't work as it's a survival server and players need to be able to place blocks in the world, such as rope in caves or dirt to fill holes.
    I'm still confused why the normal TShock regions don't work though, if I add people to a region they should be able to break blocks, correct?
     
  6. Kojiro_S

    Kojiro_S Level 11

    Joined:
    Feb 16, 2014
    Messages:
    622
    As I said earlier, both the regions named "World" and "*Housing" are unprotected. This means anyone can modify them; they won't be able to create house regions on it, but they will still be able to place and destroy tiles.
    If you want a protected area within "World", you will have to create a region over the area you wish to protect and make sure that its Z-index is higher than World's, so the new region overrides its settings.
     
  7. RedEagle3

    RedEagle3 Level 1

    Joined:
    Oct 19, 2018
    Messages:
    5
    Oh, that makes sense, sorry for the misunderstanding!
    And thank you for the help!
     
  8. RedEagle3

    RedEagle3 Level 1

    Joined:
    Oct 19, 2018
    Messages:
    5
    A quick update: I got the plugin suggested and still had the same issue (Players added to regions can't do anything).
    To fix it I re-made the server and now I seem to have no issues with the default region commands.