Setting up my Towny Server

Discussion in 'Bukkit Help' started by jcan89, May 9, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    jcan89

    I'm just going to use this thread to post any bugs or help request I have while setting up my server. I'm trying to add the least amount of thread traffic to this forum. I'll try to keep track of my issues and solutions to, possibly, help other users.

    Issue #1 - Setting up build permissions [SOLVED] -ZeroZX4
    Issue #2 - Disabling access to /plugin command [UNSOLVED]
    Issue #3 - Allowing users access to Multiverse portals [UNSOLVED]

    -----
    I have a new bukkit server up and running. This is my first server. I think I have a fairly good grasp on how bukkit works and how to use/install plugins. I have come to a problem that I haven't been able to quite figure out. Basically it has to do with my server's build/destroy permissions.

    Before I get into the problem, here's some info on my server's ranks, and their ideal permissions:

    [Lowest to Highest]
    Guest - Default user : Only has access to chat, rules and "ServerSigns" plugin.
    Worker - Can use the "Jobs" plugin. I do not want them to be able to use any of the /job commands, for example the /job join & /jobs leave commands (They need to click a sign at a Job Center, which cost money to use). Has access to certain portals, created using the "Multiverse" plugin. Workers should only be able to build and destroy in a world called "The Skylands". Workers also need access to "iConomy" so they can send/receive money and use shops, and use "Towny" commands such as looking up the towns and top ranking list.
    Residents - Same basic rank as a Worker, but with the extra ability to join a town and build/destroy on their plots.
    Mayor - An upgraded Resident, that can start their own town.
    King - "Towny" nation owner. Upgrade from Mayor.
    VIP - Ignore this rank
    Moderator - Has permission to build/destroy almost anywhere. Can use some "WorldEdit" commands. All the permissions of lower ranks.
    Admin - Administrator. Has complete command access.
    Owner - Me. Just a title.

    My problem: I keep having issues with build/destroy permission, users either can't build on their land or they can build everywhere. It's never quite right.

    My plugin list:
    [ModifyWorld is red because I am working on it and just booted the server up to take this picture. It is no longer red, after a reload.]
    [​IMG]

    My permission file (PermissionsEX):

    Code:
    groups:
      Owner:
        prefix: '[&3Owner&f]&3'
        inheritance:
        - Admin
        options:
          rank: '0'
      Admin:
        prefix: '[&cAdmin&f]'
        permissions:
        - -vanish.lightningbarrage
        - -vanish.explode
        - worldguard.stack.illegitimate
        - '*'
        inheritance:
        - Moderator
        options:
          rank: '1'
      Moderator:
        prefix: '[&5Mod&f]'
        permissions:
        - showcase.admin
        - essentials.fly
        - essentials.give
        - essentials.getpos
        - essentials.getpos.others
        - essentials.ignore
        - essentials.whois
        - essentials.ban
        - essentials.clearinventory.others
        - essentials.tp
        - essentials.tp.others
        - essentials.tphere
        - essentials.warp.*
        - jobs.*
        - magicbookshelf.*
        - modifyworld.*
        - iConomy.bank.list
        - iConomy.rank
        - showcase.*
        - towny.nation.*
        - towny.town.*
        - towny.chat.mod
        - towny.cheat.bypass
        - worldedit.*
        inheritance:
        - Mayor
        options:
          rank: '2'
      VIP:
        prefix: '[&6VIP&f]'
        permissions:
        - essentials.fly
        - essentials.tp
        - essentials.warp.*
        - mobdisguise.mob.chicken
        - modifyworld.*
        - towny.cheat.bypass
        inheritance:
        - Mayor
        options:
          rank: '3'
      Mayor:
        prefix: '[&9Mayor&f]'
        permissions:
        - towny.claimed.owntown.*
        - -towny.town.claim.outpost
        - towny.town.*
        inheritance:
        - Resident
        options:
          rank: '10'
      Resident:
        prefix: '[&aResident&f]'
        permissions:
        - essentials.build
        - modifyworld.blocks.place.*
        - -modifyworld.blocks.destroy.bedrock
        - modifyworld.blocks.destroy.*
        - modifyworld.blocks.interact.*
        - showcase.basic
        - showcase.finite
        - towny.town.resident
        - towny.town.spawn.*
        - -towny.town.plot.clear
        - -towny.town.plot.toggle
        - towny.town.plot
        - towny.chat.town
        - towny.chat.nation
        inheritance:
        - Worker
        options:
          rank: '20'
      Worker:
        prefix: '[&2Worker&f]'
        permissions:
        - essentials.kit.tools
        - essentials.afk
        - essentials.compass
        - essentials.mail
        - essentials.motd
        - essentials.msg
        - essentials.rules
        - essentials.spawn
        - essentials.sethome
        - essentials.home
        - essentials.tpa
        - essentials.tpahere
        - essentials.tpaccept
        - essentials.tpdeny
        - essentials.warp
        - essentials.warp.list
        - magicbookshelf.withdraw
        - magicbookshelf.lock
        - magicbookshelf.store
        - modifyworld.blocks.interact.*
        - modifyworld.blocks.place.*
        - modifyworld.blocks.break.*
        - modifyworld.items.pickup.*
        - modifyworld.items.drop.*
        - modifyworld.damage.take.*
        - modifyworld.mobtarget.*
        - modifyworld.interact.*
        - -modifyworld.damage.deal.animal.wolf.*
        - -modifyworld.damage.deal.animal.ocelot.*
        - modifyworld.tame.animal.wolf
        - modifyworld.tame.animal.ocelot
        - modifyworld.damage.deal.*
        - modifyworld.usebeds
        - modifyworld.bucket.empty.water
        - modifyworld.bucket.fill.water
        - modifyworld.bucket.fill.lava
        - modifyworld.bucket.fill.air
        - jobs.use
        - iConomy.access
        - iConomy.bank.access
        - iConomy.bank.deposit
        - iConomy.bank.join
        - iConomy.bank.leave
        - iConomy.bank.main
        - iConomy.bank.main.change
        - iConomy.bank.main.set
        - iConomy.bank.main.view
        - iConomy.bank.transfer
        - iConomy.bank.withdraw
        - iConomy.list
        - iConomy.payment
        - showcase.buy.finite
        - showcase.buy.infinite
        - towny.top
        inheritance:
        - Guest
        options:
          rank: '30'
      Guest:
        default: true
        prefix: '[&7Guest&f]'
        permissions:
        - towny.chat.general
        - modifyworld.chat
        options:
          rank: '999'
    
    Like I said before, this server is new and I haven't played with bukkit before. So excuse any ignorance. I hit this wall at a bad time, because I will be starting back at my job, so I won't have all the time I did to work on this. I would like to get this server up and running, more or less by itself before I get to busy to work on it.
    Any and all help is greatly appreciated! Thanks fellow bukkiteers!

    Just thought of it...I'd like to block the /plugin, /pl command from users below Moderator.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 25, 2016
  2. Offline

    ZeroZX4

    remember this 4 things

    1st this will give permission
    - permission

    2nd this will take away/restrict permission
    - -permission

    3rd this give all permissions
    - permission.*

    4th pex read from top to bottom so what is given above cant be taken below
    for example if you wanna use modifyworld to let users chat but block everything else for them than this is correct way
    - modifyworld.chat
    - -modifyworld.*


    and this is bad
    - -modifyworld.*
    - modifyworld.chat

    cause 1st you take out all modifyworld permission and below it you try to give them back that wont work

    now as the build permission this is how you can restrict someone from building
    Code:
    groups:
      Noob:
        default: true
        prefix: '&6'
        suffix: ''
        permissions:
        - authme.player.*
        options:
          build: flase
      builder:
        default: true
        prefix: '&6'
        suffix: ''
        permissions:
        - authme.player.*
        - essentials.gamemode
        options:
          build: true
    so or you just give build: false to groups which should not be able to buildor you do that + give build:true to all groups which should be able to build < which you dont need to do cause building in pex by default is true so everyone without build: false will be able to build
     
  3. Offline

    jcan89

    Thanks for the quick response. I didn't know you could use "build: true" under "options:".

    I do understand the "top-down" order that PEX uses to lookup if a user is permitted or not (even though I might have messed up a few in my code), for example I want users to be able to kill mobs, but not tamed animals. I think I used the right order in my permissions file...it works correctly on the server, at least.

    So should I give the "build: true" option to users above Guest? If so how do I limit the Workers to only building in "The Skylands"?
     
  4. Offline

    ZeroZX4

    so loook

    pex read this way ▼
    this is
    TOP
    z
    z
    z
    z
    z
    z
    z
    this is
    BOTTOM

    and zzzzzz is permissions

    and now look

    if you 1st give permission

    - essentials.afk
    than you cant take it below

    - -essentials.*

    so in other this will allow user to go afk but will take out all other permissions of essentials

    - essentials.afk
    - -essentials.*


    and this will take away ALL essentials permissions no matter what essentials permission you will put below

    so as you see it is difference what permission is above and what i below

    - -essentials.*
    - essentials.afk
    - essentials.home
    - essentials.warp
    - essentials.tp
    - essentials.gamemode
    - essentials.mail


    in other words all

    - -permission.*
    should be at bottom

    and all
    - -permission.somethig

    should be on top of permissions list got it now ?

    ow i readed wrong you did understand that hahaahahaha

    about modifyworld do you know that to use material name you need to set this to true in modifywirld config ?

    use-material-names: true



    and why dont you use worldguard + worldedit ?

    here is quick tutorial i made how you can protect your whole town and create in it small plots for your users
    (if you dont want to create that big plot to create town region protection than skip the part with parenting)


    world guard + world edit from start to end

    have 1 empty slot in action slot

    now type
    //wand
    so selecting tool will appear

    select with left and right click area/cuboid
    there is no difference which will be 1st left or right click

    //expand vert
    to stretch/rise size of selection from bedrock to sky (you dont need to do it if you protect deep and high enough)

    /region define NAME
    example
    /region define plot
    and puff area is protected no 1 except ops and users with
    - worldguard.*
    will be able to build there


    /region addmember NICK
    /region addowner NICK
    /region removemember NICK
    to add or remove someone to build in that region or to set owner


    now parent children system

    you now know how to make plots so you make 2 plots

    1 called hmm lets say zeroplot < a small plot for me where i can build in your server
    you need to
    /region addmember ZeroX4
    so i can build there

    now you make big plot called town < for example can be called anything else and it need to cover zeroplot so zeroplot is insinde twon plot

    now after you created it i wont be able to build in town plot area as well as in zeroplot cause you need to set parent and child

    /region setparent CHILD PARENT
    example
    /region setparent zeroplot town

    now i can build in zeroplot but i cant build outside of it in town plot

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 25, 2016
  5. Offline

    jcan89

    Thanks Zero. No worries about the previous post, I'm sure this place gets more ignorance then even I can supply.

    I think I got it working. I removed towny, modifyworld and worldguard plugins..at least temporarily. Then I used the build: true/false option to turn building OFF for the Guests. I've been playing around with it a bit now, added Towny back, and I think it is handling things correctly now...will update when I can confirm everything.

    I am reading through your "tutorial" right now...

    BTW, nice texture pack! Though, it made my computer cry trying to run that much detail. xP

    Can a forum moderator, or someone change the title of this post? I haven't seen the option to edit it. I'd like to change it to "Setting up my Towny Server". Thanks, if this gets done. - nvm, i figured this one out!


    I ran into an issue when trying to setup a portal between two of my worlds, using "Multiverse-Portals". I want anyone who is Worker and above to be able to use two portals "portal_to_skylands" and "portal_from_skylands".
    I tried just adding multiverse.portal.access.[theportalnames] for each portal, under the Worker permissions. This didn't work, and neither did adding the nodes under individual user permissions. I finally had to add the multiverse.portal.access.* node under each individual that I was having use the portals. There has to be a better solution, because this just will not work for me.

    Another issue that I'd like to figure out is how to allow, users Worker and above, the permission to build/destroy in the entire world "skylands", except the spawn area. Since I am running Towny, I created a town at the spawn and now users cannot build/destroy there, but they cannot build anywhere else without the towny.wild.build.*, and towny.wild.destroy.* nodes added to their group. This obviously is a problem because the permission is carried over to each world, and I don't want users editing the wilderness in my mainworld.

    Like I've stated before, any help is GREATLY appreciated.
    Thanks,
    jcan

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 25, 2016
  6. Offline

    SCanfield

    Have you figured out the way to disable /plugins? I am wanting the same for my server...
     
  7. Offline

    jcan89

  8. Offline

    ZeroZX4

    Code:
    groups:
      Noob:
        default: true
        prefix: '&6'
        suffix: ''
        permissions:
        - authme.player.*
        - essentials.gamemode
        - modifyworld.chat
        options:
          rank: '300'
        worlds:
          world_nether:
            permissions:
            - essentials.tp
    whit this users can only can use /tp command in world_nether
    but still you need to watch out what permission you give above if i put
    - essentials.tp
    in general permissions of the group than per world permission would make no sense


    as for multiverse i think you need this to be ture in your config for permissions to work

    enforceaccess: true

    but why you dont try myworlds ?
     
  9. Offline

    Chimney64

    Ok to let people through the portals do
    /mvp config enforceportalaccess false
    To disable /plugins command go to the config in your perms folder
    in (whatever perm plugin u use) and take out bukkit.plugins from default
     
Thread Status:
Not open for further replies.

Share This Page