Skip to content

Commit

Permalink
misc: Handle versions that are not on the same channel
Browse files Browse the repository at this point in the history
  • Loading branch information
MATRIX-feather committed Nov 3, 2024
1 parent 11c0917 commit 58ae5fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/xyz/nifeather/morph/updates/UpdateHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ private void onUpdateReqFinish(String responseStr, int reqId,
return;
}

if (compare == VersionHandling.CompareResult.NOT_ON_SAME_CHANNEL)
logger.info("We are not on the same channel with the latest release, assuming there is a new update!");

// 提醒服务器关于更新的消息
var serverOps = Bukkit.getOperators();
var sendTargets = new ObjectArrayList<CommandSender>();
Expand Down

0 comments on commit 58ae5fd

Please sign in to comment.