mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 07:06:44 +01:00
add deprecations
This commit is contained in:
parent
193054f1fc
commit
23783b8b0b
@ -37,8 +37,9 @@ import javax.annotation.Nonnull;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* plot functions
|
* plot functions
|
||||||
|
* @deprecated Do not use
|
||||||
*/
|
*/
|
||||||
public class MainUtil {
|
@Deprecated public class MainUtil {
|
||||||
|
|
||||||
private static final Logger logger =
|
private static final Logger logger =
|
||||||
LoggerFactory.getLogger("P2/" + MainUtil.class.getSimpleName());
|
LoggerFactory.getLogger("P2/" + MainUtil.class.getSimpleName());
|
||||||
@ -97,7 +98,7 @@ public class MainUtil {
|
|||||||
* @param message Message to send
|
* @param message Message to send
|
||||||
* @return true Can be used in things such as commands (return PlayerFunctions.sendMessage(...))
|
* @return true Can be used in things such as commands (return PlayerFunctions.sendMessage(...))
|
||||||
*/
|
*/
|
||||||
public static boolean sendMessage(PlotPlayer<?> player, String message) {
|
@Deprecated public static boolean sendMessage(PlotPlayer<?> player, String message) {
|
||||||
return sendMessage(player, message, true);
|
return sendMessage(player, message, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -107,7 +108,7 @@ public class MainUtil {
|
|||||||
* @param caption
|
* @param caption
|
||||||
* @param args
|
* @param args
|
||||||
*/
|
*/
|
||||||
public static void sendConsoleMessage(Captions caption, String... args) {
|
@Deprecated public static void sendConsoleMessage(Captions caption, String... args) {
|
||||||
sendMessage(null, caption, args);
|
sendMessage(null, caption, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -119,7 +120,7 @@ public class MainUtil {
|
|||||||
* @param prefix If the message should be prefixed with the configured prefix
|
* @param prefix If the message should be prefixed with the configured prefix
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public static boolean sendMessage(PlotPlayer<?> player, @Nonnull String msg, boolean prefix) {
|
@Deprecated public static boolean sendMessage(PlotPlayer<?> player, @Nonnull String msg, boolean prefix) {
|
||||||
if (!msg.isEmpty()) {
|
if (!msg.isEmpty()) {
|
||||||
if (player == null) {
|
if (player == null) {
|
||||||
String message = CaptionUtility
|
String message = CaptionUtility
|
||||||
@ -140,7 +141,7 @@ public class MainUtil {
|
|||||||
* @param caption the message to send
|
* @param caption the message to send
|
||||||
* @return boolean success
|
* @return boolean success
|
||||||
*/
|
*/
|
||||||
public static boolean sendMessage(PlotPlayer<?> player, Caption caption, String... args) {
|
@Deprecated public static boolean sendMessage(PlotPlayer<?> player, Caption caption, String... args) {
|
||||||
return sendMessage(player, caption, (Object[]) args);
|
return sendMessage(player, caption, (Object[]) args);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -151,7 +152,7 @@ public class MainUtil {
|
|||||||
* @param caption the message to send
|
* @param caption the message to send
|
||||||
* @return boolean success
|
* @return boolean success
|
||||||
*/
|
*/
|
||||||
public static boolean sendMessage(final PlotPlayer<?> player, final Caption caption,
|
@Deprecated public static boolean sendMessage(final PlotPlayer<?> player, final Caption caption,
|
||||||
final Object... args) {
|
final Object... args) {
|
||||||
if (caption.getTranslated().isEmpty()) {
|
if (caption.getTranslated().isEmpty()) {
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user