mirror of
https://github.com/jie65535/gc-openchat-plugin.git
synced 2025-10-16 17:02:52 +08:00
Add default reply in commands
This commit is contained in:
@@ -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