Skip to content

Configuration

Miroslav Vasilev edited this page Dec 13, 2020 · 8 revisions

Example Configuration

Here is an example configuration for the AtherysTowns plugin

economy-enabled=false
max-residents-to-display=25
min-residents-to-create-town=3
nation {
    generate-roles=true
    max-nation-name-size=25
    nation-default-role=citizen
    nation-leader-role=leader
    roles {
        citizen {
            name=Citizen
            nation-permissions=[
                "atherystowns.nation.deposit",
                "atherystowns.nation.chat"
            ]
        }
        leader {
            name=Leader
            nation-permissions=[
                "atherystowns.nation.invite",
                "atherystowns.nation.kick",
                "atherystowns.nation.permission",
                "atherystowns.nation.role",
                "atherystowns.nation.withdraw",
                "atherystowns.nation.deposit",
                "atherystowns.nation.chat",
                "atherystowns.nation.add_ally",
                "atherystowns.nation.add_enemy",
                "atherystowns.nation.add_neutral"
            ]
        }
    }
}
nation-chat-prefix="&f[&eN&f]&r"
raid {
    town-raid-boss-bar-distance=20
    town-raid-cooldown="1m"
    town-raid-cost=500.0
    town-raid-damage-per-spawn=50
    town-raid-distance-between-points=150
    town-raid-duration="1m"
    town-raid-health=500.0
    town-raid-max-creation-distance=500
    town-raid-min-creation-distance=20
    town-raid-skin-uuid=b1759db2-3b7f-4d5d-9155-70aca6e94cba
    town-raid-spawn-radius=450
}
respawn-in-town=true
taxes {
    area-oversize-tax-amount=10
    area-tax-amount=10
    base-tax-amount=100
    inactive-resident-duration="14d"
    max-nation-multiplier=1.0
    max-tax-failures-before-ruin=1
    min-nation-multiplier=0.1
    resident-tax-amount=5
    tax-collection-interval="1m"
    tax-timer-interval-minutes=1
}
town {
    default-town-max-size=4096
    generate-roles=true
    local-transactions=false
    max-town-name-size=25
    plot-max-area=1024
    plot-min-side=16
    roles {
        mayor {
            name=Mayor
            town-permissions=[
                "atherystowns.town.ruin",
                "atherystowns.town.raid.start",
                "atherystowns.town.raid.cancel",
                "atherystowns.town.invite",
                "atherystowns.town.kick",
                "atherystowns.town.plot.claim",
                "atherystowns.town.plot.unclaim",
                "atherystowns.town.plot.grant",
                "atherystowns.town.permission",
                "atherystowns.town.withdraw",
                "atherystowns.town.deposit",
                "atherystowns.town.nation",
                "atherystowns.town.name",
                "atherystowns.town.description",
                "atherystowns.town.motd",
                "atherystowns.town.color",
                "atherystowns.town.joinable",
                "atherystowns.town.setspawn",
                "atherystowns.town.pvp",
                "atherystowns.town.role",
                "atherystowns.town.leader",
                "atherystowns.town.chat"
            ]
            world-permissions=[
                "atherystowns.world.build",
                "atherystowns.world.destroy",
                "atherystowns.world.damage.nonplayers",
                "atherystowns.world.damage.players",
                "atherystowns.world.interact.tile",
                "atherystowns.world.interact.doors",
                "atherystowns.world.interact.redstone",
                "atherystowns.world.interact.entities",
                "atherystowns.world.spawn.entities"
            ]
        }
        resident {
            name=Resident
            town-permissions=[
                "atherystowns.town.deposit",
                "atherystowns.town.chat"
            ]
            world-permissions=[
                "atherystowns.world.build",
                "atherystowns.world.destroy",
                "atherystowns.world.damage.nonplayers",
                "atherystowns.world.damage.players",
                "atherystowns.world.interact.tile",
                "atherystowns.world.interact.doors",
                "atherystowns.world.interact.redstone",
                "atherystowns.world.interact.entities",
                "atherystowns.world.spawn.entities"
            ]
        }
    }
    town-default-role=resident
    town-leader-role=mayor
    town-spawn-cooldown-minutes=0
    town-spawn-warmup-seconds=0
    default-plot-permissions = [
        { 
          context = "atherys:town" 
          world-permission = "atherystowns.world.interact.redstone" 
        },
        { 
          context = "atherys:ally" 
          world-permission = "atherystowns.world.interact.tile" 
        }
    ]
}
town-chat-prefix="&f[&bT&f]&r"