LunaChat v2.6.4 : Fixed issue #94
このコミットが含まれているのは:
1 親
e80aa29253
コミット
30bfd3f2e8
11ファイル変更
+266
-30
検索条件に一致するファイルはありません
@@ -107,14 +107,14 @@ public class JoinCommand extends SubCommandAbst {
|
||||
|
||||
// チャンネルが存在するかどうかをチェックする
|
||||
if ( !api.isExistChannel(channelName) ) {
|
||||
if (config.getGlobalChannel().equals("") &&
|
||||
if ( config.getGlobalChannel().equals("") &&
|
||||
channelName.equals(config.getGlobalMarker()) ) {
|
||||
// グローバルチャンネル設定が無くて、指定チャンネルがマーカーの場合、
|
||||
// 発言先を削除して、グローバルチャンネルにする
|
||||
|
||||
api.removeDefaultChannel(player.getName());
|
||||
sendResourceMessage(sender, PREINFO, "cmdmsgSet", "グローバル");
|
||||
if (message.length() > 0) {
|
||||
if ( message.length() > 0 && player.getPlayer() != null ) {
|
||||
player.getPlayer().chat(config.getGlobalMarker() + message.toString());
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -8,7 +8,6 @@ package com.github.ucchyocean.lc.command;
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandExecutor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import com.github.ucchyocean.lc.LunaChat;
|
||||
import com.github.ucchyocean.lc.LunaChatAPI;
|
||||
@@ -31,11 +30,7 @@ public class LunaChatMessageCommand implements CommandExecutor {
|
||||
public boolean onCommand(CommandSender sender, Command command,
|
||||
String label, String[] args) {
|
||||
|
||||
// プレイヤーでなければ終了する
|
||||
if (!(sender instanceof Player)) {
|
||||
sendResourceMessage(sender, PREERR, "errmsgIngame");
|
||||
return true;
|
||||
}
|
||||
// senderからChannelPlayerを作成する
|
||||
ChannelPlayer inviter = ChannelPlayer.getChannelPlayer(sender);
|
||||
|
||||
// 引数が無ければ、usageを表示して終了する
|
||||
@@ -60,6 +55,7 @@ public class LunaChatMessageCommand implements CommandExecutor {
|
||||
return true;
|
||||
}
|
||||
|
||||
// メッセージを送信する
|
||||
sendTellMessage(inviter, invitedName, message.toString().trim());
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -7,7 +7,6 @@ package com.github.ucchyocean.lc.command;
|
||||
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import com.github.ucchyocean.lc.Resources;
|
||||
import com.github.ucchyocean.lc.channel.ChannelPlayer;
|
||||
@@ -28,11 +27,7 @@ public class LunaChatReplyCommand extends LunaChatMessageCommand {
|
||||
public boolean onCommand(CommandSender sender, Command command,
|
||||
String label, String[] args) {
|
||||
|
||||
// プレイヤーでなければ終了する
|
||||
if (!(sender instanceof Player)) {
|
||||
sendResourceMessage(sender, PREERR, "errmsgIngame");
|
||||
return true;
|
||||
}
|
||||
// senderからChannelPlayerを作成する
|
||||
ChannelPlayer inviter = ChannelPlayer.getChannelPlayer(sender);
|
||||
|
||||
// 会話相手を履歴から取得する
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする