Skip to content
This repository has been archived by the owner on Dec 2, 2023. It is now read-only.

Commit

Permalink
No, it's 1.2.2
Browse files Browse the repository at this point in the history
 * Fixed a serious bug
 * Fixed a bug of update checker
  • Loading branch information
XIAYM-gh committed Jul 27, 2023
1 parent 282338f commit 886e918
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
}

group = "cn.whitrayhb"
version = "1.2.1"
version = "1.2.2"

repositories {
if (System.getenv("CI")?.toBoolean() != true) {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/cn/whitrayhb/grasspics/GrassPictures.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public final class GrassPictures extends JavaPlugin {
.build();
public static final ExecutorService globalExecutorService = Executors.newFixedThreadPool(16);
public static final Timer globalTimer = new Timer("GrassPicture Timer", true);
public static final String VERSION = "1.2.1";
public static final String VERSION = "1.2.2";
public static final String TEXT_RULES = """
1.请投稿能使多数人觉得有趣的图片
2.严禁上传任何包含违法、涉政等信息的图片
Expand All @@ -43,7 +43,7 @@ public final class GrassPictures extends JavaPlugin {
public static final String IMAGE_URL = "https://oss.grass.starxw.com/service/image";
public static final String PUBLIC_POST_URL = "https://oss.grass.starxw.com/service/upload";
public static final String STATUS_URL = "https://oss.grass.starxw.com/service/status";
public static GrassPictures INSTANCE = null;
public static GrassPictures INSTANCE = new GrassPictures();
public static String latestVersion = null;
private static boolean usePublicPosting = false;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ public void onCommand(@NotNull CommandContext context, @NotNull MessageChain arg
.append("\n图片总大小:").append(jsonObject.getString("totalImageSizeHuman"))
.append("\n审核队列:").append(jsonObject.getString("waitImage"))
.append("\n插件版本:")
.append(GrassPictures.VERSION).append(GrassPictures.VERSION.equals(GrassPictures.latestVersion) ? "" : "(发现更新)")
.append(GrassPictures.VERSION).append(
(GrassPictures.VERSION.equals(GrassPictures.latestVersion) || GrassPictures.latestVersion == null)
? "" : "(发现更新)")
.build();

sender.sendMessage(GrassPictures.wrap(context, message));
Expand Down

0 comments on commit 886e918

Please sign in to comment.