diff options
author | Pepich <benedikt.abel@yahoo.de> | 2017-03-10 15:46:49 +0100 |
---|---|---|
committer | Pepich <benedikt.abel@yahoo.de> | 2017-03-10 15:46:49 +0100 |
commit | f2631772d16064b49010a592840992419e192ee1 (patch) | |
tree | 0642fa53557ae09e5a656e09db40f73861aa7ccc | |
parent | becd57dcdfc9bf4d09e7930427b4a80b9cbe17f5 (diff) |
Updated documentation
-rw-r--r-- | src/com/redstoner/misc/Utils.java | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/com/redstoner/misc/Utils.java b/src/com/redstoner/misc/Utils.java index 8ffeea5..732c813 100644 --- a/src/com/redstoner/misc/Utils.java +++ b/src/com/redstoner/misc/Utils.java @@ -13,7 +13,7 @@ import net.md_5.bungee.api.ChatColor; /** The utils class containing utility functions. Those include but are not limited to sending formatted messages, broadcasts and more. * * @author Pepich */ -@Version(major = 1, minor = 2, revision = 9, compatible = 1) +@Version(major = 1, minor = 2, revision = 10, compatible = 1) public final class Utils { /** Hidden constructor. Do not instantiate UTILS classes! :) */ @@ -158,9 +158,9 @@ public final class Utils info(message); } - /** Prints an info message into console. + /** Prints an info message into console. Supports &x color codes. * - * @param message The message to be put into console. Prefixes are automatically generated. */ + * @param message The message to be put into console. Prefixes are automatically generated. Color defaults to grey. */ @Debugable public static void info(String message) { @@ -170,18 +170,21 @@ public final class Utils Bukkit.getConsoleSender().sendMessage(ChatColor.translateAlternateColorCodes('&', prefix + "§7" + message)); } + /** Prints a warning message into console. Supports &x color codes. + * + * @param message The message to be put into console. Prefixes are automatically generated. Color defaults to grey. */ @Debugable public static void warn(String message) { Debugger.notifyMethod(message); String classname = getCaller(); - String prefix = "§e[WARN]: §8[§2" + classname + "§8]: "; + String prefix = "§e[WARN]: §8[§e" + classname + "§8]: "; Bukkit.getConsoleSender().sendMessage(ChatColor.translateAlternateColorCodes('&', prefix + "§7" + message)); } /** Used to make an error output to console. Supports &x color codes. * - * @param message The message to be put into console. Prefixes are automatically generated. Color defaults to red if not specified otherwise. */ + * @param message The message to be put into console. Prefixes are automatically generated. Color defaults to red. */ @Debugable public static void error(String message) { |