LunaChat v2.4.0 : Fixed some small bugs about issue #44 and #46.

このコミットが含まれているのは:
ucchyocean committed 2013-09-11 19:53:12 +09:00
1 親 2fec689363
コミット 6755bddf1b
8ファイル変更
+69 -35

検索条件に一致するファイルはありません

+1 -1
ファイルの表示
@@ -107,7 +107,7 @@ public class BanCommand extends SubCommandAbst {
}
// 既にBANされているかどうかチェックする
if (!channel.getBanned().contains(kickedName)) {
if (channel.getBanned().contains(kickedName)) {
sendResourceMessage(sender, PREERR, "errmsgAlreadyBanned");
return true;
}
+15
ファイルの表示
@@ -5,6 +5,8 @@
*/
package com.github.ucchyocean.lc.command;
import org.bukkit.command.CommandSender;
/**
* moderatorコマンドのエイリアス実行クラス、名前のみが異なるが、他は全て一緒。
* @author ucchy
@@ -12,6 +14,7 @@ package com.github.ucchyocean.lc.command;
public class ModCommand extends ModeratorCommand {
private static final String COMMAND_NAME = "mod";
private static final String USAGE_KEY = "usageMod";
/**
* コマンドを取得します。
@@ -22,4 +25,16 @@ public class ModCommand extends ModeratorCommand {
public String getCommandName() {
return COMMAND_NAME;
}
/**
* 使用方法に関するメッセージをsenderに送信します。
* @param sender コマンド実行者
* @param label 実行ラベル
* @see com.github.ucchyocean.lc.command.SubCommandAbst#sendUsageMessage()
*/
@Override
public void sendUsageMessage(
CommandSender sender, String label) {
sendResourceMessage(sender, "", USAGE_KEY, label);
}
}
+2 -1
ファイルの表示
@@ -101,7 +101,7 @@ public class MuteCommand extends SubCommandAbst {
}
// 既にMuteされているかどうかチェックする
if (!channel.getMuted().contains(kickedName)) {
if (channel.getMuted().contains(kickedName)) {
sendResourceMessage(sender, PREERR, "errmsgAlreadyMuted");
return true;
}
@@ -109,6 +109,7 @@ public class MuteCommand extends SubCommandAbst {
// Mute実行
Player kicked = Bukkit.getPlayerExact(kickedName);
channel.getMuted().add(kickedName);
channel.save();
sendResourceMessage(sender, PREINFO,
"cmdmsgMute", kickedName, channel.getName());
+1 -1
ファイルの表示
@@ -100,7 +100,7 @@ public class UnmuteCommand extends SubCommandAbst {
return true;
}
// BAN解除実行
// Mute解除実行
Player kicked = Bukkit.getPlayerExact(kickedName);
channel.getMuted().remove(kickedName);
channel.save();