mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-26 10:44:42 +02:00
Add flag info header and footer
This commit is contained in:
@ -365,6 +365,7 @@ import java.util.Map;
|
|||||||
}
|
}
|
||||||
final PlotFlag<?, ?> plotFlag = getFlag(player, args[0]);
|
final PlotFlag<?, ?> plotFlag = getFlag(player, args[0]);
|
||||||
if (plotFlag != null) {
|
if (plotFlag != null) {
|
||||||
|
Captions.FLAG_INFO_HEADER.send(player);
|
||||||
// Flag name
|
// Flag name
|
||||||
new PlotMessage(Captions.FLAG_INFO_NAME.getTranslated())
|
new PlotMessage(Captions.FLAG_INFO_NAME.getTranslated())
|
||||||
.color(Captions.FLAG_INFO_COLOR_KEY.getTranslated()).text(plotFlag.getName())
|
.color(Captions.FLAG_INFO_COLOR_KEY.getTranslated()).text(plotFlag.getName())
|
||||||
@ -391,6 +392,8 @@ import java.util.Map;
|
|||||||
new PlotMessage(Captions.FLAG_INFO_DEFAULT_VALUE.getTranslated())
|
new PlotMessage(Captions.FLAG_INFO_DEFAULT_VALUE.getTranslated())
|
||||||
.color(Captions.FLAG_INFO_COLOR_KEY.getTranslated()).text(defaultValue)
|
.color(Captions.FLAG_INFO_COLOR_KEY.getTranslated()).text(defaultValue)
|
||||||
.color(Captions.FLAG_INFO_COLOR_VALUE.getTranslated()).send(player);
|
.color(Captions.FLAG_INFO_COLOR_VALUE.getTranslated()).send(player);
|
||||||
|
// Footer
|
||||||
|
Captions.FLAG_INFO_FOOTER.send(player);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -536,6 +536,8 @@ public enum Captions implements Caption {
|
|||||||
FLAG_PARSE_EXCEPTION("$2Failed to parse flag '%s', value '%s': %s", "Flag"),
|
FLAG_PARSE_EXCEPTION("$2Failed to parse flag '%s', value '%s': %s", "Flag"),
|
||||||
//</editor-fold>
|
//</editor-fold>
|
||||||
//<editor-fold desc="Flag">
|
//<editor-fold desc="Flag">
|
||||||
|
FLAG_INFO_HEADER("$3&m---------&r $1Plot² Flags $3&m---------", "Flag"),
|
||||||
|
FLAG_INFO_FOOTER("$3&m---------&r $1Plot² Flags $3&m---------", "Flag"),
|
||||||
FLAG_INFO_COLOR_KEY("$1", "Flag"),
|
FLAG_INFO_COLOR_KEY("$1", "Flag"),
|
||||||
FLAG_INFO_COLOR_VALUE("$2", "Flag"),
|
FLAG_INFO_COLOR_VALUE("$2", "Flag"),
|
||||||
FLAG_INFO_NAME("Name: ", "Flag"),
|
FLAG_INFO_NAME("Name: ", "Flag"),
|
||||||
|
Reference in New Issue
Block a user