add task block

complete tp
This commit is contained in:
AlphaAE
2019-05-13 16:05:16 +08:00
parent 2fa0ea5823
commit 4ed2bdcf2e
8 changed files with 167 additions and 68 deletions

View File

@ -6,9 +6,11 @@ import cn.nukkit.utils.TextFormat;
public class ToastUtils {
public static final int INFO_TYPE_ERROR = 0;
public static final int INFO_TYPE_INFO = 1;
public static final int INFO_TYPE_WARNING = 2;
private static String[] infoTypeArr = new String[]{"&4"};
private static String[] infoTypeArr = new String[]{"&", "&b", "&e"};
public static void Show(Player player, int infoType, String info) {
player.sendPopup(TextFormat.colorize(infoTypeArr[infoType] + info));