From 6ef1091a3a8dec145baf10c0221002dd2cba6ca7 Mon Sep 17 00:00:00 2001 From: Dmitrii Date: Thu, 16 Apr 2026 16:10:19 +0300 Subject: [PATCH] refactor: remove prefix from PVP_BAN message and adjust code indentation --- .../git/yawaflua/tech/messages/Messages.java | 61 ++++++++++--------- 1 file changed, 31 insertions(+), 30 deletions(-) diff --git a/src/main/java/git/yawaflua/tech/messages/Messages.java b/src/main/java/git/yawaflua/tech/messages/Messages.java index 7840170..d2028e9 100644 --- a/src/main/java/git/yawaflua/tech/messages/Messages.java +++ b/src/main/java/git/yawaflua/tech/messages/Messages.java @@ -5,41 +5,42 @@ import net.kyori.adventure.text.minimessage.MiniMessage; public class Messages { - private static final MiniMessage MM = MiniMessage.miniMessage(); + private static final MiniMessage MM = MiniMessage.miniMessage(); - public static Component parse(String text) { - return MM.deserialize(text); - } + public static Component parse(String text) { + return MM.deserialize(text); + } - public static final String PREFIX = "[PixelTalk] "; - public static final String NO_PERMISSION = PREFIX + "U cant use this command."; - public static final String ONLY_PLAYERS = PREFIX + "This command is only for players."; + public static final String PREFIX = "[PixelTalk] "; + public static final String NO_PERMISSION = PREFIX + "U cant use this command."; + public static final String ONLY_PLAYERS = PREFIX + "This command is only for players."; - public static final String REGISTRATION_START = PREFIX + "Welcome! Let's fill your profile."; - public static final String QUESTION_LANGUAGE = PREFIX - + "Step 1: What language do you prefer? Write it in chat (for example: Русский, English, עברית, العربية)."; - public static final String QUESTION_INTERESTS = PREFIX - + "Step 2: Tell us about your interests (favorite games, hobbies, etc.)."; - public static final String QUESTION_AGE = PREFIX - + "Step 3: Enter your age (a number between 6 and 18)."; + public static final String REGISTRATION_START = PREFIX + "Welcome! Let's fill your profile."; + public static final String QUESTION_LANGUAGE = PREFIX + + "Step 1: What language do you prefer? Write it in chat (for example: Русский, English, עברית, العربية)."; + public static final String QUESTION_INTERESTS = PREFIX + + "Step 2: Tell us about your interests (favorite games, hobbies, etc.)."; + public static final String QUESTION_AGE = PREFIX + + "Step 3: Enter your age (a number between 6 and 18)."; - public static final String ERROR_AGE_FORMAT = PREFIX + "Please enter a valid number."; - public static final String ERROR_AGE_RANGE = PREFIX + "Age must be between 6 and 18."; + public static final String ERROR_AGE_FORMAT = PREFIX + "Please enter a valid number."; + public static final String ERROR_AGE_RANGE = PREFIX + "Age must be between 6 and 18."; - public static final String REGISTRATION_COMPLETE = PREFIX - + "Thank you! Your profile has been saved. Now you can communicate."; + public static final String REGISTRATION_COMPLETE = PREFIX + + "Thank you! Your profile has been saved. Now you can communicate."; - public static final String PROFANITY_WARNING = PREFIX - + "Warning! Profanity is prohibited. You have been deducted points."; - public static final String PVP_WARNING = PREFIX - + "Warning! Attacking other players is prohibited. You have been deducted points. If you`re points falls to 0 you are take ban"; - public static final String PVP_BAN = PREFIX + "You have been banned for attacking other players."; - public static final String POINTS_ADDED = "+ points"; - public static final String POINTS_REMOVED = "- points"; + public static final String PROFANITY_WARNING = PREFIX + + "Warning! Profanity is prohibited. You have been deducted points."; + public static final String PVP_WARNING = PREFIX + + "Warning! Attacking other players is prohibited. You have been deducted points. If you`re points falls to 0 you are take ban"; + public static final String PVP_BAN = "You have been banned for attacking other players."; + public static final String POINTS_ADDED = "+ points"; + public static final String POINTS_REMOVED = "- points"; - public static final String REPORT_USAGE = PREFIX + "Usage: /report "; - public static final String REPORT_PLAYER_NOT_FOUND = PREFIX + "Player not found."; - public static final String REPORT_SENT = PREFIX + "Report sent successfully."; - public static final String REPORT_COOLDOWN = PREFIX + "Wait "; - public static final String REPORT_NOTIFICATION_OP = "[REPORT] reported . Reason: "; + public static final String REPORT_USAGE = PREFIX + "Usage: /report "; + public static final String REPORT_PLAYER_NOT_FOUND = PREFIX + "Player not found."; + public static final String REPORT_SENT = PREFIX + "Report sent successfully."; + public static final String REPORT_COOLDOWN = PREFIX + + "Wait "; + public static final String REPORT_NOTIFICATION_OP = "[REPORT] reported . Reason: "; }