Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
710d2679a6 | |||
a6a710f671 | |||
dfb821ca23 | |||
9c462690dc | |||
7744442575 |
@ -18,9 +18,7 @@
|
|||||||
|
|
||||||
## 说明
|
## 说明
|
||||||
|
|
||||||
本插件大约相当于 [ImageFrame](https://github.com/LOOHP/ImageFrame)
|
本插件大约相当于 [ImageFrame](https://github.com/LOOHP/ImageFrame)的简版以及 [ImageMaps](https://github.com/SydMontague/ImageMaps) 的高版本重制版。前者功能丰富,不过可能由于项目体量较大,对于新版本的兼容较慢,后者在1.18 开始就停止了更新,且不支持 Folia 核心。
|
||||||
的简版以及 [ImageMaps](https://github.com/SydMontague/ImageMaps) 的高版本重制版。前者功能丰富,不过可能由于项目体量较大,对于新版本的兼容较慢,后者在
|
|
||||||
1.18 开始就停止了更新,切不支持 Folia 核心。
|
|
||||||
|
|
||||||
## 功能介绍
|
## 功能介绍
|
||||||
|
|
||||||
|
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>cn.lunadeer</groupId>
|
<groupId>cn.lunadeer</groupId>
|
||||||
<artifactId>ColorfulMap</artifactId>
|
<artifactId>ColorfulMap</artifactId>
|
||||||
<version>2.2</version>
|
<version>2.5</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<name>ColorfulMap</name>
|
<name>ColorfulMap</name>
|
||||||
|
@ -14,8 +14,8 @@ public final class ColorfulMap extends JavaPlugin {
|
|||||||
public void onEnable() {
|
public void onEnable() {
|
||||||
// Plugin startup logic
|
// Plugin startup logic
|
||||||
instance = this;
|
instance = this;
|
||||||
config = new Configuration(this);
|
|
||||||
new XLogger(this);
|
new XLogger(this);
|
||||||
|
config = new Configuration(this);
|
||||||
XLogger.setDebug(config.isDebug());
|
XLogger.setDebug(config.isDebug());
|
||||||
new Notification(this);
|
new Notification(this);
|
||||||
new Scheduler(this);
|
new Scheduler(this);
|
||||||
|
@ -31,6 +31,10 @@ public class Multi {
|
|||||||
}
|
}
|
||||||
URL _url = new URL(url);
|
URL _url = new URL(url);
|
||||||
BufferedImage raw_image = ImageIO.read(_url);
|
BufferedImage raw_image = ImageIO.read(_url);
|
||||||
|
if (raw_image == null) {
|
||||||
|
Notification.error(player, "无法读取有效图片,请检查图片地址是否正确或者更换图床");
|
||||||
|
return null;
|
||||||
|
}
|
||||||
BufferedImage resized_image;
|
BufferedImage resized_image;
|
||||||
if (scale != 1.0) {
|
if (scale != 1.0) {
|
||||||
resized_image = ImageTool.resize(raw_image, scale);
|
resized_image = ImageTool.resize(raw_image, scale);
|
||||||
|
Loading…
Reference in New Issue
Block a user