LunaChat v3-k2 : Messaging implementation. (WIP)
このコミットが含まれているのは:
1 親
f5910411f4
コミット
1513dd8197
42ファイル変更
+924
-1120
検索条件に一致するファイルはありません
@@ -5,6 +5,7 @@
|
||||
*/
|
||||
package com.github.ucchyocean.lc3.command;
|
||||
|
||||
import com.github.ucchyocean.lc3.Messages;
|
||||
import com.github.ucchyocean.lc3.channel.Channel;
|
||||
import com.github.ucchyocean.lc3.member.ChannelMember;
|
||||
|
||||
@@ -12,17 +13,16 @@ import com.github.ucchyocean.lc3.member.ChannelMember;
|
||||
* joinコマンドの実行クラス
|
||||
* @author ucchy
|
||||
*/
|
||||
public class JoinCommand extends SubCommandAbst {
|
||||
public class JoinCommand extends LunaChatSubCommand {
|
||||
|
||||
private static final String COMMAND_NAME = "join";
|
||||
private static final String PERMISSION_NODE = "lunachat." + COMMAND_NAME;
|
||||
private static final String PERMISSION_SPEAK_PREFIX = "lunachat.speak";
|
||||
private static final String USAGE_KEY = "usageJoin";
|
||||
|
||||
/**
|
||||
* コマンドを取得します。
|
||||
* @return コマンド
|
||||
* @see com.github.ucchyocean.lc3.command.SubCommandAbst#getCommandName()
|
||||
* @see com.github.ucchyocean.lc3.command.LunaChatSubCommand#getCommandName()
|
||||
*/
|
||||
@Override
|
||||
public String getCommandName() {
|
||||
@@ -32,7 +32,7 @@ public class JoinCommand extends SubCommandAbst {
|
||||
/**
|
||||
* パーミッションノードを取得します。
|
||||
* @return パーミッションノード
|
||||
* @see com.github.ucchyocean.lc3.command.SubCommandAbst#getPermissionNode()
|
||||
* @see com.github.ucchyocean.lc3.command.LunaChatSubCommand#getPermissionNode()
|
||||
*/
|
||||
@Override
|
||||
public String getPermissionNode() {
|
||||
@@ -42,7 +42,7 @@ public class JoinCommand extends SubCommandAbst {
|
||||
/**
|
||||
* コマンドの種別を取得します。
|
||||
* @return コマンド種別
|
||||
* @see com.github.ucchyocean.lc3.command.SubCommandAbst#getCommandType()
|
||||
* @see com.github.ucchyocean.lc3.command.LunaChatSubCommand#getCommandType()
|
||||
*/
|
||||
@Override
|
||||
public CommandType getCommandType() {
|
||||
@@ -53,12 +53,12 @@ public class JoinCommand extends SubCommandAbst {
|
||||
* 使用方法に関するメッセージをsenderに送信します。
|
||||
* @param sender コマンド実行者
|
||||
* @param label 実行ラベル
|
||||
* @see com.github.ucchyocean.lc3.command.SubCommandAbst#sendUsageMessage()
|
||||
* @see com.github.ucchyocean.lc3.command.LunaChatSubCommand#sendUsageMessage()
|
||||
*/
|
||||
@Override
|
||||
public void sendUsageMessage(
|
||||
ChannelMember sender, String label) {
|
||||
sendResourceMessage(sender, "", USAGE_KEY, label);
|
||||
sender.sendMessage(Messages.usageJoin(label));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -67,7 +67,7 @@ public class JoinCommand extends SubCommandAbst {
|
||||
* @param label 実行ラベル
|
||||
* @param args 実行時の引数
|
||||
* @return コマンドが実行されたかどうか
|
||||
* @see com.github.ucchyocean.lc3.command.SubCommandAbst#runCommand(java.lang.String[])
|
||||
* @see com.github.ucchyocean.lc3.command.LunaChatSubCommand#runCommand(java.lang.String[])
|
||||
*/
|
||||
@Override
|
||||
public boolean runCommand(
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする