update tp
This commit is contained in:
17
src/com/alphaae/mcpe/servers/utils/ToastUtils.java
Normal file
17
src/com/alphaae/mcpe/servers/utils/ToastUtils.java
Normal file
@ -0,0 +1,17 @@
|
||||
package com.alphaae.mcpe.servers.utils;
|
||||
|
||||
import cn.nukkit.Player;
|
||||
import cn.nukkit.utils.TextFormat;
|
||||
|
||||
public class ToastUtils {
|
||||
|
||||
public static final int INFO_TYPE_ERROR = 0;
|
||||
|
||||
|
||||
private static String[] infoTypeArr = new String[]{"&4"};
|
||||
|
||||
public static void Show(Player player, int infoType, String info) {
|
||||
player.sendPopup(TextFormat.colorize(infoTypeArr[infoType] + info));
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user