0

APIv4, support for spigot 1.12 (and up) #6

Merged
Pepich merged 13 commits from APIv4_spigot_1.12 into master 2017-10-31 15:53:31 +00:00
Showing only changes of commit d2810d09f7 - Show all commits

View File

@ -11,12 +11,10 @@ import org.bukkit.entity.Player;
import com.redstoner.annotations.Version; import com.redstoner.annotations.Version;
import net.nemez.chatapi.ChatAPI;
/** The utils class containing utility functions. Those include but are not limited to sending formatted messages, broadcasts and more. /** The utils class containing utility functions. Those include but are not limited to sending formatted messages, broadcasts and more.
* *
* @author Pepich */ * @author Pepich */
@Version(major = 4, minor = 0, revision = 0, compatible = 1) @Version(major = 4, minor = 0, revision = 1, compatible = 1)
public final class Utils public final class Utils
{ {
/** The @SimpleDateFormat used for getting the current date. */ /** The @SimpleDateFormat used for getting the current date. */
@ -38,7 +36,6 @@ public final class Utils
* @return the amount of people that received the message. */ * @return the amount of people that received the message. */
public static int broadcast(String prefix, String message, BroadcastFilter filter) public static int broadcast(String prefix, String message, BroadcastFilter filter)
{ {
message = ChatAPI.colorify(null, message);
if (prefix == null) if (prefix == null)
prefix = "§8[§2" + getCaller() + "§8]: "; prefix = "§8[§2" + getCaller() + "§8]: ";
if (filter == null) if (filter == null)