summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPepich <benedikt.abel@yahoo.de>2017-05-05 10:51:44 +0200
committerPepich <benedikt.abel@yahoo.de>2017-05-05 10:51:44 +0200
commitdb6ac8ed385f1a4322f6a5381e0ba8aa43d0c41a (patch)
tree3b9de806e4530c514dbee1905308587b13a5db2c
parent7f5994c4860ccdb48bde83c4fa52e0293692cb62 (diff)
Added option to change "module-header-name"
-rw-r--r--src/com/redstoner/misc/Utils.java14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/com/redstoner/misc/Utils.java b/src/com/redstoner/misc/Utils.java
index 10cb395..1ee7a27 100644
--- a/src/com/redstoner/misc/Utils.java
+++ b/src/com/redstoner/misc/Utils.java
@@ -16,7 +16,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 = 3, revision = 2, compatible = 1)
+@Version(major = 1, minor = 3, revision = 3, compatible = 1)
public final class Utils
{
/** The SimpleDateFormat used for getting the current date. */
@@ -239,7 +239,17 @@ public final class Utils
* @param recipient Whom to display the header to. */
public static void sendModuleHeader(CommandSender recipient)
{
- recipient.sendMessage("§2--=[ " + getCaller() + " ]=--");
+ sendModuleHeader(recipient, getCaller());
+ }
+
+ /** Displays the module header to the recipient.</br>
+ * Format: &2--=[ %HEADER% ]=--
+ *
+ * @param recipient Whom to display the header to.
+ * @param header The module name. */
+ public static void sendModuleHeader(CommandSender recipient, String header)
+ {
+ recipient.sendMessage("§2--=[ " + header + " ]=--");
}
/** Provides a uniform way of getting the date for all modules.