update tp

This commit is contained in:
AlphaAE
2019-05-12 16:50:54 +08:00
parent 78d0995772
commit c2cc84b724
6 changed files with 150 additions and 6 deletions

View 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));
}
}