解决了设置提示语错误问题
All checks were successful
Java CI-CD with Maven / build (push) Successful in 4m44s

This commit is contained in:
zhangyuheng 2024-02-24 12:01:22 +08:00
parent 8b8fbfac62
commit 2041056ad3
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@
<groupId>cn.lunadeer</groupId>
<artifactId>Dominion</artifactId>
<version>1.10.4-beta</version>
<version>1.10.5-beta</version>
<packaging>jar</packaging>
<name>Dominion</name>

View File

@ -360,7 +360,7 @@ public class DominionController {
* @param dominion_name 领地名称
* @param message 消息
*/
public static void setJoinMessage(Player operator, String dominion_name, String message) {
public static void setJoinMessage(Player operator, String message, String dominion_name) {
DominionDTO dominion = DominionDTO.select(dominion_name);
if (dominion == null) {
Notification.error(operator, "领地 " + dominion_name + " 不存在");
@ -395,7 +395,7 @@ public class DominionController {
* @param dominion_name 领地名称
* @param message 消息
*/
public static void setLeaveMessage(Player operator, String dominion_name, String message) {
public static void setLeaveMessage(Player operator, String message, String dominion_name) {
DominionDTO dominion = DominionDTO.select(dominion_name);
if (dominion == null) {
Notification.error(operator, "领地 " + dominion_name + " 不存在");