Option to disable Third-Party Support

Put Calls to other Plugins in try blocks
This commit is contained in:
Sn0wStorm
2014-05-06 23:19:25 +02:00
parent 0739b67157
commit cb773a3662
7 changed files with 186 additions and 34 deletions
+66
View File
@@ -279,6 +279,39 @@ public class ConfigUpdater {
} else {
addLines(index, lines);
}
// Add Plugin Support Settings
lines = new String[] {
"",
"",
"# -- Plugin Kompatiblität --",
"",
"# Andere Plugins (wenn installiert) nach Rechten zum öffnen von Fässern checken [true]",
"useWorldGuard: true",
"useLWC: true",
"useGriefPrevention: true",
"",
"# Änderungen an Fassinventaren mit LogBlock aufzeichen",
"useLogBlock: true",
"",
"",
""
};
index = indexOfStart("# -- Chat Veränderungs Einstellungen");
if (index == -1) {
index = indexOfStart("# words");
}
if (index == -1) {
index = indexOfStart("distortCommands");
if (index > 4) {
index -= 4;
}
}
if (index != -1) {
addLines(index, lines);
} else {
appendLines(lines);
}
}
// Updates en from 1.1 to 1.2
@@ -311,6 +344,39 @@ public class ConfigUpdater {
} else {
addLines(index, lines);
}
// Add Plugin Support Settings
lines = new String[] {
"",
"",
"# -- Plugin Compatibility --",
"",
"# Enable checking of other Plugins (if installed) for Barrel Permissions [true]",
"useWorldGuard: true",
"useLWC: true",
"useGriefPrevention: true",
"",
"# Enable the Logging of Barrel Inventories to LogBlock",
"useLogBlock: true",
"",
"",
""
};
index = indexOfStart("# -- Chat Distortion Settings");
if (index == -1) {
index = indexOfStart("# words");
}
if (index == -1) {
index = indexOfStart("distortCommands");
if (index > 4) {
index -= 4;
}
}
if (index != -1) {
addLines(index, lines);
} else {
appendLines(lines);
}
}
}