Update from Git Manager GUI

This commit is contained in:
2026-02-27 00:44:25 +01:00
parent f74701ecbe
commit e718d06473
20 changed files with 3679 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
package de.fussball.plugin.utils;
import org.bukkit.ChatColor;
public class MessageUtil {
public static final String PREFIX = ChatColor.DARK_GRAY + "[" + ChatColor.YELLOW + "" + ChatColor.DARK_GRAY + "] " + ChatColor.GRAY;
public static final String ERROR_PREFIX = ChatColor.DARK_GRAY + "[" + ChatColor.RED + "" + ChatColor.DARK_GRAY + "] " + ChatColor.RED;
public static final String SUCCESS_PREFIX = ChatColor.DARK_GRAY + "[" + ChatColor.GREEN + "" + ChatColor.DARK_GRAY + "] " + ChatColor.GREEN;
public static final String WARN_PREFIX = ChatColor.DARK_GRAY + "[" + ChatColor.YELLOW + "!" + ChatColor.DARK_GRAY + "] " + ChatColor.YELLOW;
public static String error(String msg) {
return ERROR_PREFIX + msg;
}
public static String success(String msg) {
return SUCCESS_PREFIX + msg;
}
public static String warn(String msg) {
return WARN_PREFIX + msg;
}
public static String info(String msg) {
return PREFIX + msg;
}
public static String header(String title) {
return ChatColor.GRAY.toString() + ChatColor.STRIKETHROUGH + "-----------------" + ChatColor.RESET + " " + ChatColor.YELLOW + title + ChatColor.GRAY + " " + ChatColor.STRIKETHROUGH + "-----------------";
}
}