Titles are now optional xD

Fixes #27
This commit is contained in:
Sauilitired 2014-11-02 20:03:43 +01:00
parent 82b17aeebf
commit 291c290f15
2 changed files with 3 additions and 2 deletions

View File

@ -1288,7 +1288,8 @@ public class PlotMain extends JavaPlugin {
"invincible", "invincible",
"instabreak", "instabreak",
"drop-protection", "drop-protection",
"forcefield" "forcefield",
"titles"
); );
List<String> intervalFlags = Arrays.asList( List<String> intervalFlags = Arrays.asList(
"feed", "feed",

View File

@ -176,7 +176,7 @@ public class PlotListener {
if(plot.settings.getFlag("weather") != null) { if(plot.settings.getFlag("weather") != null) {
player.setPlayerWeather(getWeatherType(plot.settings.getFlag("weather").getValue())); player.setPlayerWeather(getWeatherType(plot.settings.getFlag("weather").getValue()));
} }
if (Settings.TITLES && C.TITLE_ENTERED_PLOT.s().length() > 2) { if (booleanFlag(plot, "titles") && Settings.TITLES && C.TITLE_ENTERED_PLOT.s().length() > 2) {
String sTitleMain = C.TITLE_ENTERED_PLOT.s().replaceFirst("%s", plot.getDisplayName()); String sTitleMain = C.TITLE_ENTERED_PLOT.s().replaceFirst("%s", plot.getDisplayName());
String sTitleSub = C.TITLE_ENTERED_PLOT_SUB.s().replaceFirst("%s", getName(plot.owner)); String sTitleSub = C.TITLE_ENTERED_PLOT_SUB.s().replaceFirst("%s", getName(plot.owner));
ChatColor sTitleMainColor = ChatColor.valueOf(C.TITLE_ENTERED_PLOT_COLOR.s()); ChatColor sTitleMainColor = ChatColor.valueOf(C.TITLE_ENTERED_PLOT_COLOR.s());