Package studio.thevipershow.safechat
Class SafeChatUtils
java.lang.Object
studio.thevipershow.safechat.SafeChatUtils
public final class SafeChatUtils
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description static char
DEFAULT_COLOR_CHAR
-
Method Summary
Modifier and Type Method Description static @NotNull java.lang.String
color(@NotNull java.lang.String string)
static org.bukkit.command.CommandMap
getCommandMap()
This methods allows to use the CommandMap on different forks This method has been provided by electroniccat , thanks to him!static @NotNull java.util.List<java.lang.String>
getStrings(@NotNull org.tomlj.TomlArray array)
static void
logMessage(Check check, org.bukkit.entity.Player player, java.lang.String message)
static boolean
permissionCheck(@NotNull java.lang.String permission, @NotNull org.bukkit.command.CommandSender sender)
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
DEFAULT_COLOR_CHAR
public static final char DEFAULT_COLOR_CHAR- See Also:
- Constant Field Values
-
-
Method Details
-
color
@NotNull public static @NotNull java.lang.String color(@NotNull @NotNull java.lang.String string) -
logMessage
public static void logMessage(Check check, org.bukkit.entity.Player player, java.lang.String message) -
getStrings
@NotNull public static @NotNull java.util.List<java.lang.String> getStrings(@NotNull @NotNull org.tomlj.TomlArray array) -
permissionCheck
public static boolean permissionCheck(@NotNull @NotNull java.lang.String permission, @NotNull @NotNull org.bukkit.command.CommandSender sender) -
getCommandMap
public static org.bukkit.command.CommandMap getCommandMap() throws java.lang.NoSuchFieldException, java.lang.IllegalAccessExceptionThis methods allows to use the CommandMap on different forks This method has been provided by electroniccat , thanks to him!- Returns:
- the CommandMap
- Throws:
java.lang.NoSuchFieldException
- if field isn't foundjava.lang.IllegalAccessException
- if access is invalid
-