LunaChat v3-k2 : BungeeCord implementation. (WIP)

このコミットが含まれているのは:
ucchy committed 2020-05-30 23:58:42 +09:00
1 親 4dc513242c
コミット db5fad0bb8
16ファイル変更
+153 -75

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

+2 -4
ファイルの表示
@@ -9,7 +9,6 @@ import java.util.ArrayList;
import java.util.HashMap;
import com.github.ucchyocean.lc3.Utility;
import com.github.ucchyocean.lc3.UtilityBukkit;
import com.github.ucchyocean.lc3.channel.Channel;
import com.github.ucchyocean.lc3.japanize.JapanizeType;
import com.github.ucchyocean.lc3.member.ChannelMember;
@@ -205,9 +204,8 @@ public class OptionCommand extends SubCommandAbst {
String code = options.get("color");
// TODO Bukkit依存になってしまっているので、実装修正を検討する
if ( UtilityBukkit.isValidColor(code) ) {
code = UtilityBukkit.changeToColorCode(code);
if ( Utility.isValidColor(code) ) {
code = Utility.changeToColorCode(code);
}
if ( Utility.isAltColorCode(code) ) {
channel.setColorCode(code);
+5 -5
ファイルの表示
@@ -87,11 +87,11 @@ public class SetCommand extends SubCommandAbst {
sendResourceMessage(sender, PREINFO, "cmdmsgSetDefault", targetPlayer, targetChannel.getName());
// TODO setされる相手のプレイヤーにも通知する
// Player target = Utility.getPlayerExact(targetPlayer);
// if ( target != null ) {
// sendResourceMessage(new CommandSenderBukkit(target), PREINFO, "cmdmsgSet", targetChannel.getName());
// }
// setされる相手のプレイヤーにも通知する
ChannelMember target = ChannelMember.getChannelMember(targetPlayer);
if ( target != null ) {
sendResourceMessage(target, PREINFO, "cmdmsgSet", targetChannel.getName());
}
return true;
}