mirror of
https://github.com/jie65535/gc-openchat-plugin.git
synced 2026-11-04 10:42:04 +08:00
Add default reply in commands
This commit is contained in:
1 parent
659e5e1b51
commit
7c3f48589d
2 files changed
+3
No files matched your search
@@ -43,6 +43,8 @@ public class ChatPlayerCommands implements CommandHandler {
|
|||||||
set.add(targetPlayer.getUid());
|
set.add(targetPlayer.getUid());
|
||||||
OpenChatPlugin.getInstance().saveData();
|
OpenChatPlugin.getInstance().saveData();
|
||||||
CommandHandler.sendMessage(sender, "OK");
|
CommandHandler.sendMessage(sender, "OK");
|
||||||
|
} else {
|
||||||
|
sendUsageMessage(sender);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -98,6 +98,7 @@ public class ChatServerCommands implements CommandHandler {
|
|||||||
plugin.loadConfig();
|
plugin.loadConfig();
|
||||||
CommandHandler.sendMessage(sender, "OK");
|
CommandHandler.sendMessage(sender, "OK");
|
||||||
}
|
}
|
||||||
|
default -> sendUsageMessage(sender);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user