Greatly improves display of text

Makes output text configurable
Adds improved formatting and colors when displaying sign contents
Adds information about applied dye and glow status for signs
Properly cancels the default event when using the viewSign and viewSignRaw commands
This commit is contained in:
2024-04-21 21:26:16 +02:00
parent 6129eda989
commit e8c93baac4
12 changed files with 413 additions and 196 deletions

View File

@ -0,0 +1,52 @@
package net.knarcraft.placeholdersigns.config;
import net.knarcraft.knarlib.formatting.TranslatableMessage;
import org.jetbrains.annotations.NotNull;
/**
* Translatable plugin messages
*/
public enum PlaceholderSignMessage implements TranslatableMessage {
/**
* The message to display when waiting for a sign selection (edit)
*/
SUCCESS_CLICK_SIGN_TO_EDIT,
/**
* The message to display when waiting for a sign selection (view)
*/
SUCCESS_CLICK_SIGN_TO_VIEW,
/**
* The message displayed when a player tries to edit a waxed sign without the necessary permission
*/
ERROR_WAXED_NO_PERMISSION,
/**
* The message displayed when a sign line has been successfully changed
*/
SUCCESS_SIGN_CHANGED,
/**
* The format used when printing current sign lines
*/
SUCCESS_SIGN_CONTENTS,
/**
* The string displayed when a sign is confirmed to be glowing
*/
GLOWING_CONFIRM,
/**
* The string displayed when a sign is not glowing
*/
GLOWING_DENY,
;
@Override
public @NotNull TranslatableMessage[] getAllMessages() {
return PlaceholderSignMessage.values();
}
}