LunaChat v3-k2 : Messaging implementation. (WIP)
このコミットが含まれているのは:
1 親
f5910411f4
コミット
1513dd8197
42ファイル変更
+924
-1120
検索条件に一致するファイルはありません
@@ -5,22 +5,22 @@
|
||||
*/
|
||||
package com.github.ucchyocean.lc3.command;
|
||||
|
||||
import com.github.ucchyocean.lc3.Messages;
|
||||
import com.github.ucchyocean.lc3.member.ChannelMember;
|
||||
|
||||
/**
|
||||
* denyコマンドの実行クラス
|
||||
* @author ucchy
|
||||
*/
|
||||
public class DenyCommand extends SubCommandAbst {
|
||||
public class DenyCommand extends LunaChatSubCommand {
|
||||
|
||||
private static final String COMMAND_NAME = "deny";
|
||||
private static final String PERMISSION_NODE = "lunachat." + COMMAND_NAME;
|
||||
private static final String USAGE_KEY = "usageDeny";
|
||||
|
||||
/**
|
||||
* コマンドを取得します。
|
||||
* @return コマンド
|
||||
* @see com.github.ucchyocean.lc3.command.SubCommandAbst#getCommandName()
|
||||
* @see com.github.ucchyocean.lc3.command.LunaChatSubCommand#getCommandName()
|
||||
*/
|
||||
@Override
|
||||
public String getCommandName() {
|
||||
@@ -30,7 +30,7 @@ public class DenyCommand extends SubCommandAbst {
|
||||
/**
|
||||
* パーミッションノードを取得します。
|
||||
* @return パーミッションノード
|
||||
* @see com.github.ucchyocean.lc3.command.SubCommandAbst#getPermissionNode()
|
||||
* @see com.github.ucchyocean.lc3.command.LunaChatSubCommand#getPermissionNode()
|
||||
*/
|
||||
@Override
|
||||
public String getPermissionNode() {
|
||||
@@ -40,7 +40,7 @@ public class DenyCommand extends SubCommandAbst {
|
||||
/**
|
||||
* コマンドの種別を取得します。
|
||||
* @return コマンド種別
|
||||
* @see com.github.ucchyocean.lc3.command.SubCommandAbst#getCommandType()
|
||||
* @see com.github.ucchyocean.lc3.command.LunaChatSubCommand#getCommandType()
|
||||
*/
|
||||
@Override
|
||||
public CommandType getCommandType() {
|
||||
@@ -51,12 +51,12 @@ public class DenyCommand 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.usageDeny(label));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -65,7 +65,7 @@ public class DenyCommand 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(ChannelMember sender, String label, String[] args) {
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする