From 3ee836517af0b1bf3f640f575f6c10311bd6bc82 Mon Sep 17 00:00:00 2001 From: Chromachine Date: Thu, 31 May 2018 22:33:22 +0000 Subject: [PATCH] Add townyperms.yml \#4 Small fix for pass remover --- .gitconfig | 2 +- Towny/settings/townyperms.yml | 98 +++++++++++++++++++++++++++++++++++ update.sh | 3 +- 3 files changed, 101 insertions(+), 2 deletions(-) create mode 100755 Towny/settings/townyperms.yml diff --git a/.gitconfig b/.gitconfig index 6eee01c..1764ce0 100755 --- a/.gitconfig +++ b/.gitconfig @@ -1,3 +1,3 @@ [filter "rempass"] smudge = cat - clean = sed -E --expression=\"s/(.* )pass(\\S*)\\\\: '.*'/\\1pass\\2: 'NOPE'/g\" + clean = sed -E --expression=\"s/(.*)pass(\\S*)\\\\: '.*'/\\1pass\\2: 'NOPE'/g\" diff --git a/Towny/settings/townyperms.yml b/Towny/settings/townyperms.yml new file mode 100755 index 0000000..189bb09 --- /dev/null +++ b/Towny/settings/townyperms.yml @@ -0,0 +1,98 @@ +# This file contains custom permission sets which will be assigned to your players +# depending on their current status. +# +# This is all managed by towny and pushed directly to CraftBukkits SuperPerms. +# These will be in addition to any you manually assign in your specific permission plugin. +# +# You may assign any Permission nodes here, including those from other plugins. +# You may also create any custom ranks you require. + + +# The 'nomad' permission set covers players not in any town +nomad: + - towny.command.towny.map + - towny.command.towny.prices + - towny.command.towny.tree + - towny.command.towny.time + - towny.command.towny.universe + - towny.command.towny.version + - towny.command.towny.war + - towny.command.town.new + - towny.command.town.join + - towny.command.town.list + - towny.command.plot.perm + - towny.command.nation.list + - towny.town.resident + - towny.town.spawn.public + - towny.chat.general + +# This section of permissions covers players who are members of a town. +towns: + default: + # 'default' is the permission set which is auto assigned to any normal town member + - towny.command.resident.* + - towny.command.plot.claim + - towny.command.plot.unclaim + - towny.command.plot.forsale + - towny.command.plot.notforsale + - towny.command.plot.toggle.* + - towny.command.plot.set.perm + - towny.command.plot.set.reset + - towny.command.town.online + - towny.command.town.leave + - towny.command.town.deposit + - towny.town.spawn.town + - towny.chat.town + mayor: + # Mayors get these permissions in addition to the default set. + - towny.tax_exempt + - towny.command.towny.top + - towny.command.town.* + - towny.command.plot.* + - towny.claimed.owntown.* + - towny.command.nation.new + + ranks: + # Ranks contain additional permissions residents will be + # granted if they are assigned that specific rank. + assistant: + - towny.tax_exempt + - towny.command.town.claim.* + - towny.command.town.add + - towny.command.plot.* + - towny.command.town.toggle.public + - towny.claimed.owntown.switch.* + # assistants are able to grant VIP and helper rank + - towny.command.town.rank.vip + - towny.command.town.rank.helper + helper: + - towny.claimed.townowned.switch.* + donator: + # Currently only an example rank holder with no extra permissions + vip: + - towny.cheat.bypass + # Sheriff rank is able to jail other town members. + sheriff: + - towny.command.town.toggle.jail + +# This section of permissions covers players who are members of any town in a nation. +nations: + default: + # All nation members get these permissions. + - towny.command.nation.online + - towny.command.nation.deposit + - towny.town.spawn.nation + - towny.town.spawn.ally + - towny.chat.nation + king: + # Kings get these permissions in addition to the default set. + - towny.command.nation.* + + ranks: + assistant: + - towny.command.nation.rank.helper + - towny.command.nation.add + - towny.command.nation.ally + - towny.command.nation enemy + helper: + - towny.command.nation.add \ No newline at end of file diff --git a/update.sh b/update.sh index cb1071e..46284e3 100755 --- a/update.sh +++ b/update.sh @@ -11,7 +11,8 @@ done find . -path './Movecraft/types/*.craft' -exec git add -f '{}' \; git add -f 'dynmap/configuration.txt' 'dynmap/worlds.txt' git add -f 'MythicMobs/*' ':!:MythicMobs/SavedData/*' -git add -f ':(glob)Jobs/*.yml' +git add -f ':(glob)Jobs/*.yml' ':!:Jobs/furnaceBrewingStands.yml' +git add -f 'Towny/settings/townyperms.yml' git add -f update.sh download.sh