Image Previewer

轻松高效地在聊天栏中预览图片。(无需资源包)

资源图片
# ImagePreviewer 轻松、高效地在聊天栏中预览图片。 ## 功能 - 纯净的 Vanilla 体验,无需资源包。 - 高度可定制。 - 支持动画图片,例如 GIF。 - 完全基于数据包,地图为客户端。 - 轻量级,对服务器线程无负担。 - 集成 Floodgate,以获得更好的 Bedrock 玩家体验。 ## 安装 1. **下载插件**: 下载 ImagePreviewer 的最新版本。 2. **安装插件**: 将 ImagePreviewer 放入 `./plugins` 目录。 3. **安装 [PacketEvents](https://github.com/retrooper/packetevents)**: 下载 PacketEvents 的最新版本。 4. **重启服务器**: 重启您的服务器以加载 ImagePreviewer。 5. 尽情享受吧! ## 展示 ![image](https://i.ibb.co/K52d3XT/IMG-5380.gif) ![image_bedrock](https://i.ibb.co/x73s8WD/IMG-5390.jpg) ## 指令 - `/imagepreview preview `: 从 URL 预览图片。 - `/imagepreview preview [time-ticks]`:使用自定义时长从 URL 预览图片。 - `/imagepreview cancel`: 取消预览。 - `/imagepreview reload`: 重新加载插件配置。 - `/imagepreview history`: 显示预览历史。 - `/imagepreview help`: 显示帮助信息。 ## 权限 - `imagepreviewer.use`: 允许用户预览图片。 - `imagepreviewer.use.time`: 允许用户在指定时长内预览图片。 - `imagepreviewer.command.reload`: 允许用户重新加载插件。 - `imagepreviewer.command.help`: 允许用户查看帮助信息。 - `imagepreviewer.command.history`: 允许用户查看预览历史。 - `imagepreviewer.command.cancel`: 允许用户取消预览。 ## 兼容性 - Java 17 或更高版本 - 测试版本:Spigot/Paper 1.20 ~ 1.21.8(最新)