2024年7月


// 颜色代码
const BLACK = TextFormat::ESCAPE . "0";         // 黑色
const DARK_BLUE = TextFormat::ESCAPE . "1";     // 深蓝色
const DARK_GREEN = TextFormat::ESCAPE . "2";    // 深绿色
const DARK_AQUA = TextFormat::ESCAPE . "3";     // 深青色
const DARK_RED = TextFormat::ESCAPE . "4";      // 深红色
const DARK_PURPLE = TextFormat::ESCAPE . "5";   // 深紫色
const GOLD = TextFormat::ESCAPE . "6";          // 金色
const GRAY = TextFormat::ESCAPE . "7";          // 灰色
const DARK_GRAY = TextFormat::ESCAPE . "8";     // 深灰色
const BLUE = TextFormat::ESCAPE . "9";          // 蓝色
const GREEN = TextFormat::ESCAPE . "a";         // 绿色
const AQUA = TextFormat::ESCAPE . "b";          // 青色
const RED = TextFormat::ESCAPE . "c";           // 红色
const LIGHT_PURPLE = TextFormat::ESCAPE . "d";  // 浅紫色
const YELLOW = TextFormat::ESCAPE . "e";        // 黄色
const WHITE = TextFormat::ESCAPE . "f";         // 白色

// 格式代码
const OBFUSCATED = TextFormat::ESCAPE . "k";    // 随机字符(混淆)
const BOLD = TextFormat::ESCAPE . "l";          // 粗体
const STRIKETHROUGH = TextFormat::ESCAPE . "m"; // 删除线
const UNDERLINE = TextFormat::ESCAPE . "n";     // 下划线
const ITALIC = TextFormat::ESCAPE . "o";        // 斜体
const RESET = TextFormat::ESCAPE . "r";         // 重置所有格式



// 点击音效
const EVENT_SOUND_CLICK = 1000;
// 点击失败音效
const EVENT_SOUND_CLICK_FAIL = 1001;
// 射击音效
const EVENT_SOUND_SHOOT = 1002;
// 门的音效
const EVENT_SOUND_DOOR = 1003;
// 嘶嘶声音效
const EVENT_SOUND_FIZZ = 1004;
// TNT音效
const EVENT_SOUND_TNT = 1005;

// 恶魂音效
const EVENT_SOUND_GHAST = 1007;
// 恶魂射击音效
const EVENT_SOUND_GHAST_SHOOT = 1008;
// 烈焰人射击音效
const EVENT_SOUND_BLAZE_SHOOT = 1009;

// 门碰撞音效
const EVENT_SOUND_DOOR_BUMP = 1010;
// 门撞击音效
const EVENT_SOUND_DOOR_CRASH = 1012;

// 蝙蝠飞行音效
const EVENT_SOUND_BAT_FLY = 1015;
// 僵尸感染音效
const EVENT_SOUND_ZOMBIE_INFECT = 1016;
// 僵尸治愈音效
const EVENT_SOUND_ZOMBIE_HEAL = 1017;
// 末影人传送音效
const EVENT_SOUND_ENDERMAN_TELEPORT = 1018;

// 铁砧破碎音效
const EVENT_SOUND_ANVIL_BREAK = 1020;
// 铁砧使用音效
const EVENT_SOUND_ANVIL_USE = 1021;
// 铁砧掉落音效
const EVENT_SOUND_ANVIL_FALL = 1022;

// 按钮点击音效
const EVENT_SOUND_BUTTON_CLICK = 3500;

// 射击粒子效果
const EVENT_PARTICLE_SHOOT = 2000;
// 破坏粒子效果(未知,无效果)
const EVENT_PARTICLE_DESTROY = 2001;
// 溅射粒子效果(玻璃破碎的声音)
const EVENT_PARTICLE_SPLASH = 2002;
// 末影之眼消失粒子效果
const EVENT_PARTICLE_EYE_DESPAWN = 2003;
// 生成粒子效果
const EVENT_PARTICLE_SPAWN = 2004;

// 开始下雨
const EVENT_START_RAIN = 3001;
// 开始打雷
const EVENT_START_THUNDER = 3002;
// 停止下雨
const EVENT_STOP_RAIN = 3003;
// 停止打雷
const EVENT_STOP_THUNDER = 3004;

// 爆炸音效
const EVENT_SOUND_EXPLODE = 3501;
// 施法音效
const EVENT_SOUND_SPELL = 3504;
// 溅水音效
const EVENT_SOUND_SPLASH = 3506;
// 灰色溅水音效(TODO: 修正名称)
const EVENT_SOUND_GRAY_SPLASH = 3507;

// 设置数据事件
const EVENT_SET_DATA = 4000;

// 玩家睡眠事件
const EVENT_PLAYERS_SLEEPING = 9800;

// 添加粒子效果掩码
const EVENT_ADD_PARTICLE_MASK = 0x4000;

Centos7已经正式停止维护,但我的项目几乎都是基于Centos7来部署的,在执行yum指令的时候会报错

错误如下:

[root@localhost ~]# yum update
已加载插件:fastestmirror, langpacks
Determining fastest mirrors
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; 未知的错误"


 One of the configured repositories failed (未知),
 and yum doesn't have enough cached data to continue. At this point the only
 safe thing yum can do is fail. There are a few ways to work "fix" this:

     1. Contact the upstream for the repository and get them to fix the problem.

     2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).

     3. Run the command with the repository temporarily disabled
            yum --disablerepo=<repoid> ...

     4. Disable the repository permanently, so yum won't use it by default. Yum
        will then just ignore the repository until you permanently enable it
        again or use --enablerepo for temporary usage:

            yum-config-manager --disable <repoid>
        or
            subscription-manager repos --disable=<repoid>

     5. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:

            yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true

Cannot find a valid baseurl for repo: base/7/x86_64

解决方法,执行:

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
sudo curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
yum clean all && yum makecache