环境参数
PHP 7.4 + Nginx/Apache
车站数据
12306(客站): https://kyfw.12306.cn/otn/resources/js/framework/station_name.js
moerail.ml(所有站点, ~270KB): http://moerail.ml/station.js
PHP 7.4 + Nginx/Apache
12306(客站): https://kyfw.12306.cn/otn/resources/js/framework/station_name.js
moerail.ml(所有站点, ~270KB): http://moerail.ml/station.js
本教程以下载 Dragonwell JDK 17 为例
本教程所涉及到的文件操作所在目录均为 “~/“ (SSH 登录后用户自动进入的目录)
Dragonwell JDK 官方站: https://www.dragonwell-jdk.io/
Dragonwell JDK 下载镜像: https://github.com/alibaba/dragonwell17/wiki/Mirrors-for-download-(%E4%B8%8B%E8%BD%BD%E9%95%9C%E5%83%8F)
Dragonwell JDK Github: https://github.com/alibaba/dragonwell17/
下载和执行该脚本前, 请将当前目录切换到 Nukkit 根目录 (与 plugins 目录同级)
cd ./Nukkit/
CentOS 6, 7, 8:
yum install -y wget && wget http://api2.jonjs.cn/Minecraft/Nukkit/plugin-install.sh -O plugin-install.sh && chmod 777 plugin-install.sh && sh plugin-install.sh
开发环境: Spigot-1.16.5
JDK 版本: 1.8
开发环境: Spigot-1.16.5
JDK 版本: 1.8
下面的代码可以向玩家 player 发送一条 RGB色彩(#XXXXXX)、低版本&x色彩(&0~&f) 混合的消息:
player.sendMessage("§x§C§C§0§0§0§0I still love you. §bBut you do not know...");
由此,我们可以看出,1.16+版本发送 RGB色彩(#XXXXXX) 对应的方式是:
§x§HEX颜色字符第1位§第2位§第3位§第4位§第5位§第6位
首先,可以使用Online JSON Viewer工具清晰地查看JSON的具体结构。
https://www.bejson.com/jsonviewernew/
让我们拿这段JSON文本来举例子吧:
{"code":"200","updateTime":"2021-08-06T02:17+08:00","fxLink":"http://hfx.link/2ax1","now":{"obsTime":"2021-08-06T02:12+08:00","temp":"23","feelsLike":"24","icon":"101","text":"多云","wind360":"135","windDir":"东南风","windScale":"2","windSpeed":"8","humidity":"79","precip":"0.0","pressure":"1001","vis":"19","cloud":"91","dew":"21"},"refer":{"sources":["Weather China"],"license":["no commercial use"]}}
大家好! 为了保证博客的高在线率及站点SSL的长期有效, 我将在近期对博客内容进行迁移.
新版博客采用 Hexo + Github Pages 服务.
原博客仍将保留, 但不推荐访问.
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
$ hexo new "My New Post"
More info: Writing
$ hexo server
More info: Server
$ hexo generate
More info: Generating
$ hexo deploy
More info: Deployment