forked from Upstream/mmocore
Removed <message_empty_...> user feedback on empty config message
This commit is contained in:
parent
8a8ec67f14
commit
3231a69bf3
@ -147,7 +147,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>fr.phoenixdevt</groupId>
|
<groupId>fr.phoenixdevt</groupId>
|
||||||
<artifactId>Profile-API</artifactId>
|
<artifactId>Profile-API</artifactId>
|
||||||
<version>1.1-SNAPSHOT</version>
|
<version>1.1</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
<optional>true</optional>
|
<optional>true</optional>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
@ -49,16 +49,16 @@ public class ConfigMessage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Useful for things like indicators or specific lore lines which are
|
* Useful for things like indicators or specific lore lines
|
||||||
* string tags not requiring more than one string object. If the
|
* which are string tags not requiring more than one string
|
||||||
* message is empty, an error string is returned. Either way,
|
* object. An empty return value is accepted as some features
|
||||||
* the returned value is non null for better user feedback.
|
* do require the ability to fully remove text.
|
||||||
*
|
*
|
||||||
* @return First line of message, if it exists.
|
* @return First line of message, if it exists.
|
||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
public String asLine() {
|
public String asLine() {
|
||||||
return lines.isEmpty() ? "<message_empty_" + key + ">" : lines.get(0);
|
return lines.isEmpty() ? "" : lines.get(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
|
Loading…
Reference in New Issue
Block a user