diff --git a/src/main/java/com/github/ucchyocean/lc3/LunaChatConfig.java b/src/main/java/com/github/ucchyocean/lc3/LunaChatConfig.java index 1a473d9..4b6c021 100644 --- a/src/main/java/com/github/ucchyocean/lc3/LunaChatConfig.java +++ b/src/main/java/com/github/ucchyocean/lc3/LunaChatConfig.java @@ -142,15 +142,6 @@ public class LunaChatConfig { // === 以下、BungeeCord用設定 === - /** 通常チャットを全サーバーにブロードキャストするかどうか */ - private boolean broadcastChat; - - /** 通常チャットを全サーバーにブロードキャストする場合のフォーマット */ - private String broadcastChatFormat; - - /** 通常チャットを全サーバーにブロードキャストする場合に、発言者サーバーのチャット内容もJapanize化するかどうか */ - private boolean broadcastChatLocalJapanize; - /** * コンストラクタ * @param dataFolder コンフィグ格納フォルダ @@ -259,13 +250,6 @@ public class LunaChatConfig { noneJapanizeMarker = config.getString("noneJapanizeMarker", "#"); japanizeWait = config.getInt("japanizeWait", 1); - broadcastChat = config.getBoolean("broadcastChat", true); - broadcastChatFormat = - config.getString("broadcastChatFormat", - "%date %time &d<%sender@%senderserver> &f%msg"); - broadcastChatLocalJapanize = - config.getBoolean("broadcastChatLocalJapanize", true); - // globalチャンネルが、使用可能なチャンネル名かどうかを調べる if ( globalChannel != null && !globalChannel.equals("") && !globalChannel.matches("[0-9a-zA-Z\\-_]{1,20}") ) { @@ -577,30 +561,6 @@ public class LunaChatConfig { return enableNormalChatColorCode; } - /** - * 通常チャットを全サーバーにブロードキャストするかどうか - * @return broadcastChatを返す - */ - public boolean isBroadcastChat() { - return broadcastChat; - } - - /** - * 通常チャットを全サーバーにブロードキャストする場合のフォーマット - * @return broadcastChatFormatを返す - */ - public String getBroadcastChatFormat() { - return broadcastChatFormat; - } - - /** - * 通常チャットを全サーバーにブロードキャストする場合に、発言者サーバーのチャット内容もJapanize化するかどうか - * @return broadcastChatLocalJapanizeを返す - */ - public boolean isBroadcastChatLocalJapanize() { - return broadcastChatLocalJapanize; - } - /** * 指定された文字列から、対応するEventPriorityを返す。 * @param value 文字列 diff --git a/src/main/java/com/github/ucchyocean/lc3/bukkit/BukkitEventListener.java b/src/main/java/com/github/ucchyocean/lc3/bukkit/BukkitEventListener.java index 7dcf80d..8bb124b 100644 --- a/src/main/java/com/github/ucchyocean/lc3/bukkit/BukkitEventListener.java +++ b/src/main/java/com/github/ucchyocean/lc3/bukkit/BukkitEventListener.java @@ -488,6 +488,8 @@ public class BukkitEventListener implements Listener { format = format.replace("%world", worldname); } + format = format.replace("%server", ""); + return Utility.replaceColorCode(format); } diff --git a/src/main/java/com/github/ucchyocean/lc3/bungee/BungeeEventListener.java b/src/main/java/com/github/ucchyocean/lc3/bungee/BungeeEventListener.java index 6cb43bb..bc4168a 100644 --- a/src/main/java/com/github/ucchyocean/lc3/bungee/BungeeEventListener.java +++ b/src/main/java/com/github/ucchyocean/lc3/bungee/BungeeEventListener.java @@ -10,11 +10,11 @@ import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; +import java.util.concurrent.TimeUnit; import java.util.regex.Matcher; import java.util.regex.Pattern; -import org.bukkit.ChatColor; - +import com.github.ucchyocean.lc3.ChatColor; import com.github.ucchyocean.lc3.LunaChat; import com.github.ucchyocean.lc3.LunaChatAPI; import com.github.ucchyocean.lc3.LunaChatConfig; @@ -23,6 +23,7 @@ import com.github.ucchyocean.lc3.Utility; import com.github.ucchyocean.lc3.channel.Channel; import com.github.ucchyocean.lc3.japanize.Japanizer; import com.github.ucchyocean.lc3.member.ChannelMember; +import com.github.ucchyocean.lc3.member.ChannelMemberProxiedPlayer; import net.md_5.bungee.api.CommandSender; import net.md_5.bungee.api.chat.TextComponent; @@ -267,7 +268,6 @@ public class BungeeEventListener implements Listener { // 発言者と発言サーバーと発言内容の取得 final ProxiedPlayer sender = (ProxiedPlayer)event.getSender(); - String senderServer = sender.getServer().getInfo().getName(); String message = event.getMessage(); LunaChatConfig config = LunaChat.getConfig(); @@ -310,66 +310,71 @@ public class BungeeEventListener implements Listener { } } - // フォーマットの置き換え処理 - String result = config.getBroadcastChatFormat(); - result = result.replace("%senderserver", senderServer); - result = result.replace("%player", sender.getName()); - result = result.replace("%username", sender.getDisplayName()); - if ( result.contains("%date") ) { - result = result.replace("%date", dateFormat.format(new Date())); - } - if ( result.contains("%time") ) { - result = result.replace("%time", timeFormat.format(new Date())); - } - result = result.replace("%msg", message); - result = Utility.replaceColorCode(result); + String result; + if ( config.isEnableNormalChatMessageFormat() ) { + // チャットフォーマット装飾を適用する場合 + String format = config.getNormalChatMessageFormat(); + result = replaceNormalChatFormatKeywords(format, sender, message); - // TODO イベントパススルーモードを追加する - // イベントをキャンセルする - event.setCancelled(true); + // イベントをキャンセルする + event.setCancelled(true); - // //発言したプレイヤーがいるサーバー"以外"のサーバーに、 - // hideされているプレイヤーを除くすべてのプレイヤーに、 - // 発言内容を送信する。 - List hidelist = api.getHidelist(ChannelMember.getChannelMember(sender)); - for ( String server : parent.getProxy().getServers().keySet() ) { + // hideされているプレイヤーを除くすべてのプレイヤーに、 + // 発言内容を送信する。 + List hidelist = api.getHidelist(ChannelMember.getChannelMember(sender)); + for ( String server : parent.getProxy().getServers().keySet() ) { -// if ( server.equals(senderServer) ) { -// continue; -// } + ServerInfo info = parent.getProxy().getServerInfo(server); + for ( ProxiedPlayer player : info.getPlayers() ) { + if ( !containsHideList(player, hidelist) ) { + sendMessage(player, result); + } + } + } - ServerInfo info = parent.getProxy().getServerInfo(server); - for ( ProxiedPlayer player : info.getPlayers() ) { - if ( !containsHideList(player, hidelist) ) { + } else { + // チャットフォーマットを適用しない場合 + // NOTE: ChatEvent経由で送信する都合上、hideは適用しない(できない)仕様とする。 + + // NOTE: 改行がサポートされないので、改行を含む場合は、 + // \nで分割して前半をセットし、後半は150ミリ秒後に送信する。 + if ( !message.contains("\n") ) { + event.setMessage(Utility.stripColorCode(message)); + } else { + int index = message.indexOf("\n"); + String pre = message.substring(0, index); + final String post = Utility.replaceColorCode( + message.substring(index + "\n".length())); + event.setMessage(Utility.stripColorCode(pre)); + + parent.getProxy().getScheduler().schedule(parent, new Runnable() { + @Override + public void run() { + for ( ProxiedPlayer p : sender.getServer().getInfo().getPlayers() ) { + sendMessage(p, post); + } + } + }, 150, TimeUnit.MILLISECONDS); + } + + result = Utility.replaceColorCode(message); + + // 発言したプレイヤーがいるサーバー"以外"のサーバーに、 + // 発言内容を送信する。 + for ( String server : parent.getProxy().getServers().keySet() ) { + + String senderServer = sender.getServer().getInfo().getName(); + if ( server.equals(senderServer) ) { + continue; + } + + ServerInfo info = parent.getProxy().getServerInfo(server); + for ( ProxiedPlayer player : info.getPlayers() ) { sendMessage(player, result); } } } - // ローカルも置き換える処理なら、置換えを行う -// if ( config.isBroadcastChatLocalJapanize() ) { -// -// // NOTE: 改行がサポートされないので、改行を含む場合は、 -// // \nで分割して前半をセットし、後半は150ミリ秒後に送信する。 -// if ( !message.contains("\n") ) { -// event.setMessage(Utility.stripColorCode(message)); -// } else { -// int index = message.indexOf("\n"); -// String pre = message.substring(0, index); -// final String post = Utility.replaceColorCode( -// message.substring(index + "\n".length())); -// event.setMessage(Utility.stripColorCode(pre)); -// parent.getProxy().getScheduler().schedule(parent, new Runnable() { -// @Override -// public void run() { -// for ( ProxiedPlayer p : sender.getServer().getInfo().getPlayers() ) { -// sendMessage(p, post); -// } -// } -// }, 150, TimeUnit.MILLISECONDS); -// } -// } - // コンソールに表示設定なら、コンソールに表示する if ( config.isDisplayChatOnConsole() ) { parent.getLogger().info(result); @@ -379,6 +384,47 @@ public class BungeeEventListener implements Listener { LunaChat.getNormalChatLogger().log(Utility.stripColorCode(result), sender.getName()); } + /** + * 通常チャットのフォーマット設定のキーワードを置き換えして返す + * @param org フォーマット設定 + * @param player 発言プレイヤー + * @param msg 発言内容 + * @return キーワード置き換え済みの文字列 + */ + private String replaceNormalChatFormatKeywords(String org, ProxiedPlayer player, String msg) { + + String format = org; + format = format.replace("%username", player.getDisplayName()); + format = format.replace("%msg", msg); + format = format.replace("%player", player.getName()); + + if ( format.contains("%date") ) { + format = format.replace("%date", dateFormat.format(new Date())); + } + if ( format.contains("%time") ) { + format = format.replace("%time", timeFormat.format(new Date())); + } + + if ( format.contains("%prefix") || format.contains("%suffix") ) { + // TODO 未実装 + format = format.replace("%prefix", ""); + format = format.replace("%suffix", ""); + } + + if ( format.contains("%world") ) { + format = format.replace("%world", ""); + } + + if ( player instanceof ChannelMemberProxiedPlayer ) { + ChannelMemberProxiedPlayer p = (ChannelMemberProxiedPlayer)player; + format = format.replace("%server", p.getServer().getInfo().getName()); + } else { + format = format.replace("%server", ""); + } + + return Utility.replaceColorCode(format); + } + /** * チャンネルに発言処理を行う * @param player プレイヤー diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index 649ea2b..c1704d5 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -4,117 +4,203 @@ # @copyright Copyright ucchy 2020 -# -------------------- General Settings -------------------- +# -------------------- General settings -------------------- -# Message locale. +#Language setting lang: en -# Enable channel chat feature. +# Whether to enable channel chat function enableChannelChat: true -# Player chat event listener priority. -# LOWEST, LOW, NORMAL, HIGH(default), HIGHEST +# You can set the priority of event processing. +# Use this when it doesn't work well in combination with other plugins. +# You can specify one of LOWEST, LOW, NORMAL, HIGH, HIGHEST. +# Leave the default HIGH if you're not sure. playerChatEventListenerPriority: 'HIGH' -# -------------------- Channel Chat Settings -------------------- +# -------------------- Channel chat settings -------------------- -# Whether to treat the remarks of player who are not in channel chat as global. +# Whether to treat the remarks of people who are not in channel chat as global noJoinAsGlobal: true -# Whether to log the messages of channel chat. +# Whether to leave the contents of channel chat remarks in the log loggingChat: true -# Whether to show the messages of channel chat on the server console. +# Whether to show the contents of channel chat on the server console displayChatOnConsole: true # Global marker. -# If the global marker is in the head of a chat message, it temporarily becomes a global chat. +# If this is in the head of a statement, it temporarily becomes a global statement. globalMarker: '!' -# Whether to delete the channel when all members leave. +# Whether to delete the channel when all members leave zeroMemberRemove: false -# Whether to show participating channels when logging in. +# Whether to show participating channels when logging in showListOnJoin: false -# Whether to create a new channel and enter the room when a channel that does not exist is specified with the "/ch join" command +# When someone specifies a channel that does not exist with the "/ch join" command, +# whether to create a new channel and enter createChannelOnJoinCommand: false # Global channel to use as default instead of regular chat. +# If you use regular chat without creating a global channel, +# specify the empty string ''. globalChannel: '' +# A channel(s) that users who join the server must join. +# Can be specified separately from the global channel. +# Multiple channels can be set. Example) forceJoinChannels: ['L','M','N'] forceJoinChannels: [] -formatConstraint: ['%username', '%msg'] +# A keyword that must be included when executing the format command. +formatConstraint: ['%username','%msg'] +# The format settings that are set by default when you create a channel. +# The following keywords can be used for formatting. +# %ch: Channel name +# %color: Channel color +# %username: Speaker display name +# %player: Speaker ID +# %world: world name +# %prefix: prefix (replaced if Vault and Prefix/Suffix plugin are installed) +# %suffix: suffix (replaced if Vault and Prefix/Suffix plugin are installed) +# %date: date +# %time: time +# %msg: Content of statement defaultFormat: '&f[%color%ch&f]%prefix%username%suffix&a:&f %msg' +# Setting to display the content of all channels on the OP screen. opListenAllChannel: false +# The minimum string length that the channel name must satisfy when creating a new channel. +# If the specified channel name is less than this number of characters, an error occurs and the channel cannot be created. minChannelNameLength: 4 +# Maximum string length that the channel name must satisfy when creating a new channel. +# If the specified channel name exceeds this number of characters, an error occurs and the channel cannot be created. maxChannelNameLength: 20 +# Whether to enable the quick channel chat feature. +# You can use Quick Channel Chat by saying "(Channel Name or Alias) + (Dedicated Symbol) + (Message)". +# For example, if you set the alias m to the main channel, you do not have to speak to the main channel +# m:Hello! +# You can say to the main channel by saying. enableQuickChannelChat: true +# Symbol used for quick channel chat feature. quickChannelChatSeparator: ':' -# -------------------- Private Message Settings -------------------- +# -------------------- Private message settings -------------------- +# When sending a private message with the # /tell, /msg or /r command, applied formatting. +# The following keywords can be used for formatting. +# %ch: Channel name (same as "%player>%to") +# %username: Speaker display name +# %player: Speaker ID +# %server: Speaker's connection server name (valid when installed on BungeeCord side.) +# %to: ID of the person (recipient) who speaks +# %recieverserver: Recipient's connection server name (valid when installed on BungeeCord side) +# %world: Name of the world you said (Valid when it is installed on the spigot side. When MultiVerse is installed, the display name of the world is acquired and used.) +# %prefix: prefix (replaced if Vault and Prefix/Suffix plugin are installed) +# %suffix: suffix (replaced if Vault and Prefix/Suffix plugin are installed) +# %date: date +# %time: time +# %msg: Content of statement (When converted to Japanize, the result of Japanize is included.) defaultFormatForPrivateMessage: '&7[%player -> %to]&f %msg' +#defaultFormatForPrivateMessage: '&7[%player@%server >%to@%recieverserver] %msg' -# -------------------- Dynmap Cooperation settings -------------------- +# -------------------- dynmap linkage setting -------------------- +# Whether to send the contents of the broadcast channel to dynmap. +# This setting is ignored (handled as false) if dynmap is not loaded. sendBroadcastChannelChatToDynmap: true +# Whether to reflect the channel format when sending to dynmap. +# If set to true, a message reflecting the channel format will be displayed on the dynmap. +# If set to false, only messages will be displayed on dynmap. +# Reference: https://github.com/ucchyocean/LunaChat/issues/68 sendFormattedMessageToDynmap: false +# A channel that displays the content of the speech made from the dynmap Web UI. +# If dynmapChannel is not specified and globalChannel is specified, +# If dynmapChannel is not specified and globalChannel is not specified, the chat is usually done. dynmapChannel: '' -# -------------------- NG Words Settings -------------------- +# -------------------- NG word setting -------------------- +# NG word setting. You can specify a regular expression. +#The NG word part is masked by the player who speaks the word set here. ngword: [] +# NG Word operation setting when speaking. You can set any of four: mask, mute, kick, ban. +# mask: mask NG words +# mute: Mute the speaking player from the channel after masking the NG word +# kick: After masking the NG word, kick the speaking player from the channel +# ban: After masking the NG word, ban the player who said it from the channel +# For regular chat (non-channel chat), +# Even if you set # kick or ban, only the mask is executed. ngwordAction: mask +# -------------------- Chat decoration settings -------------------- -# -------------------- Chat Format Settings -------------------- - +# Whether to decorate normal chat (non-channel chat) from LunaChat. enableNormalChatMessageFormat: true -normalChatMessageFormat: '&f%prefix%username%suffix&a:&f %msg' +# Chat decoration formatting. +# The following keywords can be used for formatting. +# %username: Speaker display name +# %player: Speaker ID +# %world: Name of the world you said (Valid when it is installed on the spigot side. When MultiVerse is installed, the display name of the world is acquired and used.) +# %server: Speaker's connection server name (valid when installed on BungeeCord side.) +# %prefix: prefix (replaced if Vault and Prefix/Suffix plugins are installed) +# %suffix: suffix (replaced if Vault and Prefix/Suffix plugins are installed) +# %date: date +# %time: time +# %msg: Content of statement (When converted to Japanize, the result of Japanize is included.) +normalChatMessageFormat: '&f %prefix%username%suffix&a:&f %msg' +#normalChatMessageFormat: '&f%username@%server&a:&f %msg' +# Color code (&a, &b, etc.) in normal chat (non-channel chat) +# Whether to enable. If set to false, color codes will not be converted. enableNormalChatColorCode: true -# -------------------- Japanize Settings -------------------- +# -------------------- Japanize conversion settings -------------------- +# Settings for converting Roman characters to Kana or Kanji. +# You can set any one of none/kana/GoogleIME. +# none: No conversion. +# kana: Kana conversion only. +# GoogleIME: After converting kana, convert kanji using GoogleIME. japanizeType: none +# When converting kana or kanji, +# Display the conversion result in a single line with the original statement content, or +# Set whether to display only the conversion result on the second line. japanizeDisplayLine: 1 +# Set the display format when japanizeDisplayLine is 1. +# The following keywords can be used for formatting. +# %msg: Original content +# %japanize: Japanize Within the converted statement japanizeLine1Format: '%msg &6(%japanize)' +# Sets the display format for the second line when japanizeDisplayLine is 2. +# The following keywords can be used for formatting. +# %msg: Original content +# %japanize: Japanize Converted remark contents japanizeLine2Format: '&6[JP] %japanize' +# Set whether to exclude the player name included in the statement from Japanize conversion. japanizeIgnorePlayerName: true +# Non-Japanese marker. +# If this is at the beginning of your remark, do not temporarily perform Japanize conversion. noneJapanizeMarker: '#' - - -# -------------------- BungeeCord Settings -------------------- - -defaultFormatForPrivateMessage: '&7[%username@%server > %to@%recieverserver] %msg' - -broadcastChat: true - -broadcastChatFormat: '%date %time &d<%username@%senderserver> &f%msg' - -broadcastChatLocalJapanize: true - diff --git a/src/main/resources/config_ja.yml b/src/main/resources/config_ja.yml index 46ec65c..c0b17ee 100644 --- a/src/main/resources/config_ja.yml +++ b/src/main/resources/config_ja.yml @@ -102,14 +102,17 @@ quickChannelChatSeparator: ':' # %ch : チャンネル名(「%player>%to」と同一です。) # %username : 発言者表示名 # %player : 発言者ID +# %server : 発言者の接続サーバー名(BungeeCord側に導入したときに有効です。) # %to : 発言の相手(受信者)のID -# %world : 発言したワールド名 +# %recieverserver : 受信者の接続サーバー名(BungeeCord側に導入したときに有効です。) +# %world : 発言したワールド名(spigot側に導入したときに有効です。MultiVerseが導入されている場合は、ワールドの表示名を取得して使用します。) # %prefix : プレフィックス(VaultとPermissionsExが導入されている場合に置き換えられます) # %suffix : サフィックス(VaultとPermissionsExが導入されている場合に置き換えられます) # %date : 日付 # %time : 時刻 # %msg : 発言内容(Japanize変換された場合は、Japanize結果を含みます。) defaultFormatForPrivateMessage: '&7[%player -> %to]&f %msg' +#defaultFormatForPrivateMessage: '&7[%player@%server > %to@%recieverserver] %msg' # -------------------- dynmap連携設定 -------------------- @@ -151,23 +154,22 @@ ngwordAction: mask # -------------------- チャット装飾設定 -------------------- -# チャンネルチャット機能を利用しないユーザーのための設定です。 - # 通常チャット(非チャンネルチャット)の装飾を、LunaChatから行うかどうか。 -# Vault がロードされていない場合は、この設定は無視される(false扱い)。 enableNormalChatMessageFormat: true # チャット装飾のフォーマット設定。 # フォーマット設定には、下記のキーワードが使用できます。 # %username : 発言者表示名 # %player : 発言者ID -# %world : 発言したワールド名 -# %prefix : プレフィックス(VaultとPermissionsExが導入されている場合に置き換えられます) -# %suffix : サフィックス(VaultとPermissionsExが導入されている場合に置き換えられます) +# %world : 発言したワールド名(spigot側に導入したときに有効です。MultiVerseが導入されている場合は、ワールドの表示名を取得して使用します。) +# %server : 発言者の接続サーバー名(BungeeCord側に導入したときに有効です。) +# %prefix : プレフィックス(VaultとPrefix/Suffixプラグインが導入されている場合に置き換えられます) +# %suffix : サフィックス(VaultとPrefix/Suffixプラグインが導入されている場合に置き換えられます) # %date : 日付 # %time : 時刻 # %msg : 発言内容(Japanize変換された場合は、Japanize結果を含みます。) normalChatMessageFormat: '&f%prefix%username%suffix&a:&f %msg' +#normalChatMessageFormat: '&f%username@%server&a:&f %msg' # 通常チャット(非チャンネルチャット)で、カラーコード(&aや&bなど)を # 使用可能にするかどうか。falseに設定すると、カラーコードは変換されません。 @@ -215,42 +217,3 @@ noneJapanizeMarker: '#' # -------------------- BungeeCord用設定 -------------------- - -# -------------------- tellコマンド設定 -------------------- - -# /tell や /msg や /r コマンドでプライベートメッセージを送信するときに、 -# 適用されるフォーマット設定。 -# フォーマット設定には、下記のキーワードが使用できます。 -# %username : 発言者表示名 -# %player : 発言者ID -# %senderserver : 発言者の接続サーバー名 -# %reciever : 受信者表示名 -# %recieverserver : 受信者の接続サーバー名 -# %msg : 発言内容(Japanize変換された場合は、Japanize結果を含みます。) -defaultFormatForPrivateMessage: '&7[%username@%server > %to@%recieverserver] %msg' - - -# -------------------- 広域チャット設定 -------------------- - -# 通常のチャット発言を、他のサーバーにも送信するかどうか。 -# 注意:LunaChatなどで、サーバーローカルにチャンネルチャットを設定している場合、 -# チャンネルチャットへの発言内容も、全て他のサーバーに送信されてしまいます。 -broadcastChat: true - -# broadcastChat が true のときに、 -# 他のサーバーで表示されるチャットフォーマットの設定。 -# フォーマット設定には、下記のキーワードが使用できます。 -# %username : 発言者表示名 -# %player : 発言者ID -# %senderserver : 発言者の接続サーバー名 -# %date : 発言した日付(BungeeCordのProxyサーバーのシステム時刻が使用されます) -# %time : 発言した時刻(BungeeCordのProxyサーバーのシステム時刻が使用されます) -# %msg : 発言内容(Japanize変換された場合は、Japanize結果を含みます。) -broadcastChatFormat: '%date %time &d<%username@%senderserver> &f%msg' - -# broadcastChat が true のときに、 -# 発言者のサーバーについても、Japanize変換を行うかどうか。 -# 各サーバーごとで、LunaChatなどのJapanize変換を行うプラグインを使用したい場合は、 -# false にしてください。 -broadcastChatLocalJapanize: true - diff --git a/src/main/resources/messages_en.yml b/src/main/resources/messages_en.yml index 58eb603..ce1944c 100644 --- a/src/main/resources/messages_en.yml +++ b/src/main/resources/messages_en.yml @@ -39,7 +39,7 @@ channelInfoSecret: '&7| &cSecret Channel' channelInfoPassword: '&7| &cWith Password' channelInfoWorldChat: '&7| &cWorld Chat' channelInfoRangeChat: '&7| &cRange Chat:%block% Block distance' -channelInfoFormat: '&7| &cFormat:' +channelInfoFormat: '&7| &cFormat: ' channelInfoBanned: '&7| &cBAN List:' channelInfoMuted: '&7| &cMute List:' @@ -75,134 +75,134 @@ cmdmsgMute: 'You deprived the %player%''s voice of channel %channel%.' cmdmsgMuteWithExpire: 'You deprived the %player%''s voice of channel %channel% with an expiration of %minutes% minutes.' cmdmsgMuted: 'You were banned from channel %channel%.' cmdmsgUnmute: '%player% has regained the voice of channel %channel%.' -cmdmsgUnmuted: 'チャンネル %channel% のMuteが解除されました。' -cmdmsgHided: 'チャンネル %channel% を非表示に設定しました。' -cmdmsgHidedPlayer: 'プレイヤー %player% を非表示に設定しました。' -cmdmsgUnhided: 'チャンネル %channel% を表示に設定しました。' -cmdmsgUnhidedPlayer: 'プレイヤー %channel% を表示に設定しました。' +cmdmsgUnmuted: 'You have regained the voice of channel %channel%.' +cmdmsgHided: 'You hided channel %channel%.' +cmdmsgHidedPlayer: 'You hided player %player%.' +cmdmsgUnhided: 'You unhided channel %channel%.' +cmdmsgUnhidedPlayer: 'You unhided player %channel%.' -cmdmsgReload: 'LunaChatの設定を再読み込みしました。' -cmdmsgCreate: 'チャンネル %channel% を新規作成しました。' -cmdmsgRemove: 'チャンネル %channel% を削除しました。' -cmdmsgFormat: 'メッセージフォーマットを %format% に設定しました。' -cmdmsgModerator: '%player% さんをチャンネル %channel% のモデレーターに設定しました。' -cmdmsgModeratorMinus: '%player% さんをチャンネル %channel% のモデレーターから外しました。' -cmdmsgDictionaryAdd: '%key% を %value% と覚えました。' -cmdmsgDictionaryRemove: '%key% を忘れました。' -cmdmsgOption: '%key% を %value% に設定しました。' -cmdmsgTemplate: 'テンプレート %index% を、%value% に設定しました。' -cmdmsgTemplateRemove: 'テンプレート %index% を削除しました。' -cmdmsgSetDefault: '%player% さんの発言先を %channel% に設定しました。' +cmdmsgReload: 'You reloaded the configuration of LunaChat.' +cmdmsgCreate: 'You created new channel %channel%.' +cmdmsgRemove: 'You removed channel %channel%.' +cmdmsgFormat: 'You set %format% as message format.' +cmdmsgModerator: 'You have set %player% as a moderator for the channel %channel%.' +cmdmsgModeratorMinus: 'You Removed %player% from moderator of channel %channel%.' +cmdmsgDictionaryAdd: 'Remembered %key% as %value%.' +cmdmsgDictionaryRemove: 'Forgot %key%.' +cmdmsgOption: 'You have set %key% to %value%.' +cmdmsgTemplate: 'Set template %index% to %value%.' +cmdmsgTemplateRemove: 'Deleted template %index%.' +cmdmsgSetDefault: '%player%''s default channel has been set to %channel%.' cmdmsgPlayerJapanize: 'Your chat''s Japanize conversion was turned %value%.' -cmdmsgPlayerJapanizeOther: '%player% さんのJapanize変換を %value% にしました。' +cmdmsgPlayerJapanizeOther: 'Made %player%''s Japanize conversion into %value%.' -cmdmsgReplyInviter: '%inviter%の現在の会話相手 : %invited%' -cmdmsgReplyInviterNone: '%inviter%の現在の会話相手 : 相手がいません。' +cmdmsgReplyInviter: '%inviter%''s current conversation partner: %invited%' +cmdmsgReplyInviterNone: '%inviter%''s current conversation partner: There is no partner.' -errmsgIngame: 'このコマンドはゲーム内からしか実行できません。' -errmsgCommand: 'コマンドの指定が正しくありません。' -errmsgNotExist: '指定されたチャンネルが存在しません。' -errmsgNotExistChannelAndPlayer: '指定されたチャンネルもプレイヤーも存在しません。' -errmsgNotExistOrNotSpecified: '指定されたチャンネルが存在しないか、チャンネルが指定されませんでした。' -errmsgExist: '指定されたチャンネル名が既に存在します。' -errmsgNomember: '指定されたチャンネルに参加していません。' -errmsgNomemberOther: '指定されたプレイヤーはチャンネルに参加していません。' -errmsgNotfoundPlayer: '指定されたプレイヤー %player% が見つかりません。' -errmsgNotInvited: '招待を受けたプレイヤーではありません。' -errmsgNotfoundChannel: 'チャンネルが無くなってしまったため、参加できませんでした。' -errmsgInvitedAlreadyExist: '招待された %player% さんは、既にチャンネルに参加しています。' -errmsgInvitedAlreadyJoin: '既にチャンネルに参加しています。' -errmsgNoJoin: '現在チャンネルに参加していません。' -errmsgBanned: 'あなたはこのチャンネルからBANされています。' -errmsgMuted: 'あなたはこのチャンネルからMuteされているため、発言できません。' -errmsgAlreadyBanned: '指定されたプレイヤーは既にBANリストに含まれています。' -errmsgAlreadyMuted: '指定されたプレイヤーは既にMuteリストに含まれています。' -errmsgAlreadyHided: 'このチャンネルは既に非表示になっています。' -errmsgAlreadyHidedPlayer: 'このプレイヤーは既に非表示になっています。' -errmsgAlreadyUnhided: 'このチャンネルは非表示になっていません。' -errmsgAlreadyUnhidedPlayer: 'このプレイヤーは非表示になっていません。' -errmsgCannotJoinPersonal: '個人チャットチャンネルには参加できません。' -errmsgNotModerator: 'あなたはモデレーターではないため、そのコマンドを実行できません。' -errmsgNotBanned: '指定されたプレイヤーはBANリストに含まれていません。' -errmsgNotMuted: '指定されたプレイヤーはMuteリストに含まれていません。' -errmsgInvalidOptions: '有効なオプション指定が1つもありませんでした。' -errmsgPassword1: 'このチャンネルはパスワードが設定されているため入れません。' -errmsgPassword2: 'パスワードを指定して、チャンネルに入ってください。' +errmsgIngame: 'This command can only be executed from within the game.' +errmsgCommand: 'The command is specified incorrectly.' +errmsgNotExist: 'The specified channel does not exist.' +errmsgNotExistChannelAndPlayer: 'The specified channel or player does not exist.' +errmsgNotExistOrNotSpecified: 'Either the specified channel does not exist or the channel was not specified.' +errmsgExist: 'The specified channel name already exists.' +errmsgNomember: 'You have not joined the specified channel.' +errmsgNomemberOther: 'The specified player has not joined the channel.' +errmsgNotfoundPlayer: 'The specified player %player% cannot be found.' +errmsgNotInvited: 'You are not the invited player.' +errmsgNotfoundChannel: 'You couldn''t join because the channels are gone.' +errmsgInvitedAlreadyExist: 'The invited %player% is already on the channel.' +errmsgInvitedAlreadyJoin: 'I have already joined the channel.' +errmsgNoJoin: 'You are not currently on a channel. ' +errmsgBanned: 'You are banned from this channel. ' +errmsgMuted: 'You cannot speak because you are muted from this channel. ' +errmsgAlreadyBanned: 'The specified player is already in the BAN list. ' +errmsgAlreadyMuted: 'The specified player is already in the Mute list. ' +errmsgAlreadyHided: 'This channel is already hidden. ' +errmsgAlreadyHidedPlayer: 'This player is already hidden. ' +errmsgAlreadyUnhided: 'This channel is not hidden. ' +errmsgAlreadyUnhidedPlayer: 'This player is not hidden. ' +errmsgCannotJoinPersonal: 'Cannot join the personal chat channel. ' +errmsgNotModerator: 'You cannot run the command because you are not a moderator. ' +errmsgNotBanned: 'The specified player is not in the BAN list. ' +errmsgNotMuted: 'The specified player is not included in the Mute list. ' +errmsgInvalidOptions: 'There were no valid option specifications. ' +errmsgPassword1: 'This channel cannot be entered because a password has been set. ' +errmsgPassword2: 'Specify your password to enter the channel. ' errmsgPassword3: '/ch (channel) (password)' -errmsgPasswordNotmatch: 'パスワードが正しくないため、チャンネルに入れません。' -errmsgPermission: '権限 "%permission%" が無いため、実行できません。' -errmsgCannotLeaveGlobal: 'チャンネル %channel% はグローバルチャンネルなので、退出できません。' -errmsgCannotKickGlobal: 'チャンネル %channel% はグローバルチャンネルなので、キックできません。' -errmsgCannotBANGlobal: 'チャンネル %channel% はグローバルチャンネルなので、BANできません。' -errmsgCannotRemoveGlobal: 'チャンネル %channel% はグローバルチャンネルなので、削除できません。' -errmsgCannotModeratorGlobal: 'チャンネル %channel% はグローバルチャンネルなので、モデレーターを設定できません。' -errmsgCannotLeaveForceJoin: 'チャンネル %channel% は強制参加チャンネルなので、退出できません。' -errmsgNotfoundPM: 'あなたが受信したプライベートメッセージがありません。' -errmsgCannotSendPMSelf: '自分自身にプライベートメッセージを送ることはできません。' -errmsgCannotUseForChannel: '%channel% はチャンネル名に使用できない文字を含んでいます。' -errmsgCannotUseForChannelTooShort: '%channel% は短すぎてチャンネル名に使用できません。%min% 文字以上にしてください。' -errmsgCannotUseForChannelTooLong: '%channel% は長すぎてチャンネル名に使用できません。%max% 文字以下にしてください。' -errmsgCannotUseForGlobal: '%word% はグローバルチャンネル名に使用できない文字を含んでいます。' -errmsgInvalidColorCode: '%value% はカラーコードとして正しくありません。' -errmsgInvalidTemplateNumber: 'テンプレート番号は、0から9までの数字を指定してください。' -errmsgToolongDescription: '説明文は %max% 文字以下にしてください。' -errmsgToolongAlias: 'チャンネル別名は %max% 文字以下にしてください。' -errmsgToolongPassword: 'パスワードは %max% 文字以下にしてください。' -errmsgInvalidBooleanOption: '%key% は true/false で指定してください。' -errmsgInvalidRangeOption: 'range に正しくない値が指定されました。' -errmsgInvalidJapanizeOption: '%key% に指定された %value% は、Japanize変換タイプとして正しくありません。' -errmsgCannotOffGlobalBroadcast: 'このチャンネルはグローバルチャンネルのため、ブロードキャストをオフにできません。' -errmsgFormatConstraint: '必須キーワード %key% が指定されていません。' -errmsgInvalidBanExpireParameter: 'BAN期限(分)の指定が正しくありません。1 から 43200 の間の数値を指定してください。' -errmsgInvalidMuteExpireParameter: 'Mute期限(分)の指定が正しくありません。1 から 43200 の間の数値を指定してください。' -errmsgCannotHideSelf: '自分の発言を非表示にすることはできません。' -errmsgDuplicatedAlias: '指定されたチャンネル別名 %aliase% は、チャンネル %channel% と重複するので設定できません。' +errmsgPasswordNotmatch: 'Cannot enter the channel because the password is incorrect. ' +errmsgPermission: 'Cannot execute because you do not have permission "%permission%". ' +errmsgCannotLeaveGlobal: 'Cannot leave because channel %channel% is a global channel. ' +errmsgCannotKickGlobal: 'Cannot kick because channel %channel% is a global channel. ' +errmsgCannotBANGlobal: 'Cannot BAN channel %channel% as it is a global channel. ' +errmsgCannotRemoveGlobal: 'Channel %channel% is a global channel and cannot be deleted. ' +errmsgCannotModeratorGlobal: 'Cannot set moderator because channel %channel% is a global channel. ' +errmsgCannotLeaveForceJoin: 'Channel %channel% is a forced channel and cannot leave. ' +errmsgNotfoundPM: 'There are no private messages you received. ' +errmsgCannotSendPMSelf: 'Can't send a private message to yourself. ' +errmsgCannotUseForChannel: '%channel% contains characters that cannot be used in the channel name. ' +errmsgCannotUseForChannelTooShort: '%channel% is too short to be used in the channel name. It must be at least %min% characters. ' +errmsgCannotUseForChannelTooLong: '%channel% is too long to be used in the channel name. Must be less than or equal to %max% characters. ' +errmsgCannotUseForGlobal: '%word% contains unusable characters in global channel name. ' +errmsgInvalidColorCode: '%value% is not a valid color code. ' +errmsgInvalidTemplateNumber: 'Specify a number from 0 to 9 as the template number. ' +errmsgToolongDescription: 'The description should be less than or equal to %max% characters. ' +errmsgToolongAlias: 'Channel alias must be less than or equal to %max% characters. ' +errmsgToolongPassword: 'Password must be less than or equal to %max% characters. ' +errmsgInvalidBooleanOption: 'Specify %key% as true/false. ' +errmsgInvalidRangeOption: 'Invalid value specified for range. ' +errmsgInvalidJapanizeOption: 'The %value% specified for %key% is not a valid Japanize conversion type. ' +errmsgCannotOffGlobalBroadcast: 'Cannot turn off broadcast as this channel is a global channel. ' +errmsgFormatConstraint: 'The required keyword %key% is missing. ' +errmsgInvalidBanExpireParameter: 'BAN expiration (minutes) is not specified correctly. Specify a number between 1 and 43200. ' +errmsgInvalidMuteExpireParameter: 'Mute expiration (minutes) is not specified correctly. Specify a number between 1 and 43200. ' +errmsgCannotHideSelf: 'You cannot hide your statement. ' +errmsgDuplicatedAlias: 'The specified channel alias %aliase% cannot be set because it overlaps with the channel %channel%. ' -errmsgNotPermission: '権限がありません&7(%permission%)' -errmsgChannelChatDisabled: 'このサーバーでは、チャンネルチャットは動作しません。' +errmsgNotPermission: 'No permission &7(%permission%)' +errmsgChannelChatDisabled: 'Channel chat does not work on this server. ' -usageJoin: '&6/%label% join (channel) &7- チャンネルに参加します。' -usageLeave: '&6/%label% leave &7- 参加しているチャンネルから退出します。' -usageList: '&6/%label% list &7- チャンネルのリストを表示します。' -usageInvite: '&6/%label% invite (name) &7- 指定したプレイヤーをチャンネルチャットに招待します。' -usageAccept: '&6/%label% accept &7- 招待を受けてチャンネルチャットに入室します。' -usageDeny: '&6/%label% deny &7- 招待を拒否します。' -usageKick: '&6/%label% kick (name) &7- 指定したプレイヤーをチャンネルチャットからキックします。' -usageBan: '&6/%label% ban (name) &7- 指定したプレイヤーをチャンネルチャットからBANします。' -usageBan2: '&6/%label% ban (name) [minutes] &7- 指定したプレイヤーを指定した分の間、BANします。' -usagePardon: '&6/%label% pardon (name) &7- 指定したプレイヤーのBANを解除します。' -usageMute: '&6/%label% mute (name) &7- 指定したプレイヤーのチャンネルでの発言権を剥奪します。' -usageMute2: '&6/%label% mute (name) [minutes] &7- 指定したプレイヤーを指定した分の間、発言権剥奪します。' -usageUnmute: '&6/%label% unmute (name) &7- 指定したプレイヤーのチャンネルでの発言権剥奪を解除します。' -usageHide: '&6/%label% hide [channel] &7- 指定したチャンネルの発言内容を非表示にします。' -usageHidePlayer: '&6/%label% hide (player) &7- 指定したプレイヤーの発言内容を非表示にします。' -usageUnhide: '&6/%label% unhide [channel] &7- 指定したチャンネルの発言内容を非表示から表示に戻します。' -usageUnhidePlayer: '&6/%label% unhide (player) &7- 指定したプレイヤーの発言内容を非表示から表示に戻します。' -usageInfo: '&6/%label% info [channel] &7- チャンネルの情報を表示します。' -usageLog: '&6/%label% log [channel] [p=player] [f=filter] [d=date] [r] &7- チャンネルの発言ログを表示します。' +usageJoin: '&6/%label% join (channel) &7- Join the channel. ' +usageLeave: '&6/%label% leave &7- Leave the participating channel. ' +usageList: '&6/%label% list &7- Display a list of channels. ' +usageInvite: '&6/%label% invite (name) &7- Invite the specified player to the channel chat. ' +usageAccept: '&6/%label% accept &7- You will be invited to join the channel chat. ' +usageDeny: '&6/%label% deny &7- Reject the invitation. ' +usageKick: '&6/%label% kick (name) &7- Kick the specified player from channel chat. ' +usageBan: '&6/%label% ban (name) &7- BAN the specified player from channel chat. ' +usageBan2: '&6/%label% ban (name) [minutes] &7- BAN the specified player for the specified number of minutes. ' +usagePardon: '&6/%label% pardon (name) &7- Removes the ban for the specified player. ' +usageMute: '&6/%label% mute (name) &7- Removes the right to speak the specified player's channel. ' +usageMute2: '&6/%label% mute (name) [minutes] &7- Strips the specified player for the specified number of minutes. ' +usageUnmute: '&6/%label% unmute (name) &7- Cancels the deprivation of the specified player's channel. ' +usageHide: '&6/%label% hide [channel] &7- Hides the message contents of the specified channel. ' +usageHidePlayer: '&6/%label% hide (player) &7- Hides the speech of the specified player. ' +usageUnhide: '&6/%label% unhide [channel] &7- Restores the message contents of the specified channel from being hidden to being displayed. ' +usageUnhidePlayer: '&6/%label% unhide (player) &7- Restores the message of the specified player from hidden to visible. ' +usageInfo: '&6/%label% info [channel] &7- Displays channel information. ' +usageLog: '&6/%label% log [channel] [p=player] [f=filter] [d=date] [r] &7- Show the channel log. ' -usageCreate: '&6/%label% create (channel) [description] &7- チャンネルを作成します。' -usageRemove: '&6/%label% remove [channel] &7- チャンネルを削除します。' -usageFormat: '&6/%label% format [channel] (format...) &7- チャンネルのメッセージフォーマットを設定します。' -usageModerator: '&6/%label% moderator [channel] (player) &7- チャンネルのモデレーターを指定したプレイヤーに設定します。' -usageMod: '&6/%label% mod [channel] (player) &7- チャンネルのモデレーターを指定したプレイヤーに設定します。' -usageDictionary: '&6/%label% dictionary (add (word) (value)|remove (word)) &7- Japanize変換辞書に新しいワードを登録したり、指定したワードを削除したりします。' -usageDic: '&6/%label% dic (add (word) (value)|remove (word)) &7- Japanize変換辞書に新しいワードを登録したり、指定したワードを削除したりします。' -usageOption: '&6/%label% option [channel] (key=value...) &7- チャンネルのオプションを設定します。' -usageTemplate: '&6/%label% template (number) (template...) &7- メッセージフォーマットのテンプレートを登録します。' -usageCheck1: '&6/%label% check &7- モデレーターがいないチャンネルを一覧します。' -usageCheck2: '&6/%label% check remove &7- /ch check で一覧されたチャンネルを全て削除します。' -usageReload: '&6/%label% reload &7- config.ymlの再読み込みをします。' -usageHelp: '&6/%label% help [user|mod|admin] [page] &7- ヘルプを表示します。' -usageSet1: '&6/%label% set default (player) [channel] &7- 指定したプレイヤーの発言先チャンネルを、指定したチャンネルに設定します。' +usageCreate: '&6/%label% create (channel) [description] &7- Create a channel. ' +usageRemove: '&6/%label% remove [channel] &7- Remove the channel. ' +usageFormat: '&6/%label% format [channel] (format...) &7- Sets the message format of the channel. ' +usageModerator: '&6/%label% moderator [channel] (player) &7- Sets the moderator of the channel to the specified player. ' +usageMod: '&6/%label% mod [channel] (player) &7- Sets the channel moderator to the specified player. ' +usageDictionary: '&6/%label% dictionary (add (word) (value)|remove (word)) &7- Japanize Adds a new word to the conversion dictionary or deletes the specified word. ' +usageDic: '&6/%label% dic (add (word) (value)|remove (word)) &7- Japanize Adds a new word to the conversion dictionary or deletes the specified word. ' +usageOption: '&6/%label% option [channel] (key=value...) &7- Set channel options. ' +usageTemplate: '&6/%label% template (number) (template...) &7- Register the template of message format. ' +usageCheck1: '&6/%label% check &7- Lists channels without moderators. ' +usageCheck2: '&6/%label% check remove &7- /ch Remove all channels listed by check. ' +usageReload: '&6/%label% reload &7- Reload config.yml. ' +usageHelp: '&6/%label% help [user|mod|admin] [page] &7- Display help. ' +usageSet1: '&6/%label% set default (player) [channel] &7- Sets the specified player's channel to the specified channel. ' -usageMessage: '&6/%label% (name) [message] &7- 指定したプレイヤーとの個人チャットを開始します。' -usageReply: '&6/%label% [message] &7- 受信した個人チャットに返信します。' +usageMessage: '&6/%label% (name) [message] &7- Starts a private chat with the specified player. ' +usageReply: '&6/%label% [message] &7- Reply to the received personal chat. ' usageJapanize: '&6/%label% on|off &7- Turn on/off the Japanize conversion of your chat.' -usageJapanizeOther: '&6/%label% (player) on|off &7- Turn on/off the Japanize conversion of other player''s chat.' +usageJapanizeOther: '&6/%label% (player) on|off &7- Turn on/off the Japanize conversion of other player``s chat.' usageTop: '&e----- &6LunaChat %type% command (&c%num%&6/&c%max%&6) &e-----' usageFoot: '&e-----------------------------------------' -usageNoticeNextPage: '&6次のページを見るには、&c/%label% help %type% %next%&6 と実行してください。' +usageNoticeNextPage: '&6 To see the next page, run &c/%label% help %type% %next%&6. '