2018-05-16 16:32:41 +00:00
|
|
|
#!/bin/bash
|
2018-06-17 23:02:49 +00:00
|
|
|
git rm --cached -rfq '*/*' ':!:.github/*' # Unstage everything in folders in case a plugin got removed
|
2018-05-16 16:32:41 +00:00
|
|
|
readarray -t plugins < plugins.txt # -t removes trailing newlines
|
|
|
|
for i in "${plugins[@]}"
|
|
|
|
do
|
Start with clean configs for v6 and go from there
- Applied some changes to the defaults
- Changes since v5:
-- Don't write the plugin list (I should work on an offline solution for this, read the plugin.yml from the jars?)
-- Disabled daily restarts for now, not sure if we'll need it
-- Disabled member component (we don't have member permissions yet)
-- Disabled /spawn component
-- Disabled the GeneralEventBroadcasterModule to ensure compatibility
-- Homes aren't changed even though we don't have the groups for it yet
-- Default world changed to "world"
-- Towny taxes are now percentage-based by default
-- Changed minimum distances to 4 times the default
-- Enabled Towny in new worlds by default but disabled ability to claim it (Towny commands will still work)
-- Made Dynmap render in high resolution (well, not in very low resolution anyway, it still uses a low resolution renderer for the flat map and we don't have the others)
- Towny settings are otherwise the same (block size 8 instead of 16 and all upkeep settings)
- Missing plugins since v5 update: ButtonPresents, ButtonWebsiteModule, LimitedCreative, MythicMobs, Plot2Dynmap, PlotSquared, ProtocolLib, Factions
2023-02-04 18:46:19 +00:00
|
|
|
if [ -d $i -a $i != "OpenInv" ]; then
|
2018-05-16 16:32:41 +00:00
|
|
|
find $i -name "config.yml" -exec git add -f '{}' \; # All files are ignored, need to force add
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
find . -path './Movecraft/types/*.craft' -exec git add -f '{}' \;
|
2019-09-21 16:34:41 +00:00
|
|
|
git add -f 'dynmap/configuration.txt' 'dynmap/worlds.txt' 'dynmap/templates/custom-normal-vlowres.txt' 'dynmap/templates/custom-nether-vlowres.txt' 'dynmap/templates/custom-the_end-vlowres.txt'
|
2018-05-23 14:27:02 +00:00
|
|
|
git add -f 'MythicMobs/*' ':!:MythicMobs/SavedData/*'
|
2022-04-23 16:36:42 +00:00
|
|
|
git add -f ':(glob)Jobs/*.yml' ':!:Jobs/furnaceBrewingStands.yml' ':!:Jobs/blockOwnerShips.yml'
|
2019-11-10 18:39:59 +00:00
|
|
|
git add -f 'Towny/settings/*' ':!:Towny/settings/*.rej' ':!:Towny/settings/english.yml'
|
2020-07-29 11:51:26 +00:00
|
|
|
git add -f 'PlotSquared/*' ':!:PlotSquared/*storage*' ':!:PlotSquared/translations*' ':!:PlotSquared/user_cache.db'
|
2019-09-21 15:50:17 +00:00
|
|
|
#git add -f 'PermissionsEx/permissions.yml'
|
2018-06-13 19:01:00 +00:00
|
|
|
git add -f 'Multiverse-Core/worlds.yml'
|
2018-06-13 23:09:47 +00:00
|
|
|
git add -f 'ServerRunner/config.yml' # Not a plugin
|
2018-06-19 11:02:15 +00:00
|
|
|
git add -f 'DungeonsXL/dungeons' 'DungeonsXL/scripts'
|
2020-07-29 11:51:26 +00:00
|
|
|
#git add -f ':(glob)TerrainControl/*' 'TerrainControl/worlds/world/*'
|
2018-07-01 16:22:50 +00:00
|
|
|
git add -f 'Server/*' # Files are hardlinked from one above
|
2020-07-26 19:46:16 +00:00
|
|
|
git add -f 'Factions/config'
|
2018-05-18 18:14:28 +00:00
|
|
|
|
2018-05-16 16:32:41 +00:00
|
|
|
git add -f update.sh download.sh
|
|
|
|
|
2022-04-23 16:36:42 +00:00
|
|
|
git commit -S && git push #sudo -H needed for GPG signing
|
2018-06-24 19:54:35 +00:00
|
|
|
|