コミットを比較

..
13 コミット
12個のファイルの変更、312行の追加、136行の削除

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

+2 -7
ファイルの表示
@@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.github.ucchyocean</groupId>
<artifactId>LunaChat</artifactId>
<version>2.5.4</version>
<version>2.5.7</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -72,12 +72,7 @@
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>craftbukkit</artifactId>
<version>1.6.4-R2.0</version>
</dependency>
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>bukkit</artifactId>
<version>1.6.4-R2.0</version>
<version>1.7.2-R0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>net.milkbowl.vault</groupId>
+28 -11
ファイルの表示
@@ -275,7 +275,7 @@ public class Channel implements ConfigurationSerializable {
if ( isIncludeSyncChat ) {
// メッセージの送信
sendMessage(player, maskedMessage, msgFormat);
sendMessage(player, maskedMessage, msgFormat, true);
}
// 非同期実行タスクがある場合、追加で実行する
@@ -348,7 +348,7 @@ public class Channel implements ConfigurationSerializable {
maskedMessage = Utility.replaceColorCode(maskedMessage);
// メッセージの送信
sendMessage(null, maskedMessage, msgFormat);
sendMessage(null, maskedMessage, msgFormat, false);
}
/**
@@ -443,7 +443,7 @@ public class Channel implements ConfigurationSerializable {
Player p = Bukkit.getPlayerExact(player);
msg = replaceKeywords(msg, p);
sendMessage(null, msg, null);
sendMessage(null, msg, null, false);
}
/**
@@ -451,8 +451,12 @@ public class Channel implements ConfigurationSerializable {
* @param player プレイヤー(ワールドチャット、範囲チャットの場合は必須です)
* @param message メッセージ
* @param format フォーマット
* @param sendDynmap dynmapへ送信するかどうか
*/
protected void sendMessage(Player player, String message, String format) {
protected void sendMessage(Player player, String message,
String format, boolean sendDynmap) {
String originalMessage = new String(message);
// 受信者を設定する
ArrayList<Player> recipients = new ArrayList<Player>();
@@ -522,12 +526,23 @@ public class Channel implements ConfigurationSerializable {
// 通常ブロードキャストなら、設定に応じてdynmapへ送信する
if ( LunaChat.config.isSendBroadcastChannelChatToDynmap() &&
sendDynmap &&
LunaChat.dynmap != null &&
isBroadcastChannel() && !isWorldRange ) {
if ( player != null )
LunaChat.dynmap.chat(player, message);
else
LunaChat.dynmap.broadcast(message);
isBroadcastChannel() &&
!isWorldRange ) {
if ( LunaChat.config.isSendFormattedMessageToDynmap() ) {
if ( player != null ) {
LunaChat.dynmap.chat(player, message);
} else {
LunaChat.dynmap.broadcast(message);
}
} else {
if ( player != null ) {
LunaChat.dynmap.chat(player, originalMessage);
} else {
LunaChat.dynmap.broadcast(originalMessage);
}
}
}
// 送信する
@@ -536,8 +551,10 @@ public class Channel implements ConfigurationSerializable {
}
// 受信者が自分以外いない場合は、メッセージを表示する
if ( isRangeChat && ( recipients.size() == 0 ||
(recipients.size() == 1 && recipients.get(0).getName().equals(player.getName()) ) ) ) {
if ( isRangeChat && (
recipients.size() == 0 ||
(recipients.size() == 1 &&
recipients.get(0).getName().equals(player.getName()) ) ) ) {
String msg = replaceKeywords(MSG_NO_RECIPIENT, null);
player.sendMessage(msg);
}
+10 -1
ファイルの表示
@@ -56,9 +56,18 @@ public class DelayedJapanizeConvertTask extends BukkitRunnable {
// チャンネルへ送信
if ( channel != null ) {
channel.sendMessage(player, result, lineFormat);
channel.sendMessage(player, result, lineFormat, true);
} else {
Bukkit.broadcastMessage(result);
// 設定に応じてdynmapへ送信する
if ( LunaChat.config.isSendBroadcastChannelChatToDynmap() &&
LunaChat.dynmap != null ) {
if ( player != null )
LunaChat.dynmap.chat(player, result);
else
LunaChat.dynmap.broadcast(result);
}
}
}
}
+35 -2
ファイルの表示
@@ -40,7 +40,8 @@ public class LunaChatConfig {
/** ログイン時に、参加中チャンネルを表示するかどうか */
private boolean showListOnJoin;
/** /ch join コマンドで存在しないチャンネルを指定したときに、チャンネルを新規作成して入室するかどうか */
/** /ch join コマンドで存在しないチャンネルを指定したときに、
* チャンネルを新規作成して入室するかどうか */
private boolean createChannelOnJoinCommand;
/** サーバーに初参加したユーザーを参加させる、既定のチャンネル。<br/>
@@ -50,11 +51,17 @@ public class LunaChatConfig {
/** サーバーに参加したユーザーに必ず参加させるチャンネル。<br/>
* グローバルチャンネルとは別で指定できる。 */
private List<String> forceJoinChannels;
/** formatコマンド実行時に、必ず含まれる必要があるキーワード。 */
private List<String> formatConstraint;
/** ブロードキャストチャンネルの発言内容を、dynmapに送信するかどうか。<br/>
* dynmapがロードされていない場合は、この設定は無視される(false扱い)。 */
private boolean sendBroadcastChannelChatToDynmap;
/** dynmapへ送信するときに、チャンネルのフォーマットを反映して送信するかどうか。*/
private boolean sendFormattedMessageToDynmap;
/** dynmapのWebUIから発言された発言内容を表示するチャンネル。 */
private String dynmapChannel;
@@ -138,9 +145,19 @@ public class LunaChatConfig {
} else {
forceJoinChannels = new ArrayList<String>();
}
if ( config.contains("formatConstraint") ) {
formatConstraint = config.getStringList("formatConstraint");
} else {
formatConstraint = new ArrayList<String>();
formatConstraint.add("%username");
formatConstraint.add("%msg");
}
sendBroadcastChannelChatToDynmap =
config.getBoolean("sendBroadcastChannelChatToDynmap", true);
sendFormattedMessageToDynmap =
config.getBoolean("sendFormattedMessageToDynmap", false);
dynmapChannel = config.getString("dynmapChannel", "");
ngword = config.getStringList("ngword");
ngwordAction = NGWordAction.fromID(config.getString("ngwordAction", "mask"));
@@ -149,7 +166,7 @@ public class LunaChatConfig {
if ( japanizeDisplayLine != 1 && japanizeDisplayLine != 2 ) {
japanizeDisplayLine = 2;
}
japanizeLine1Format = config.getString("japanizeLine1Format", "%msg (%japanize)");
japanizeLine1Format = config.getString("japanizeLine1Format", "%msg &7(%japanize)");
japanizeLine2Format = config.getString("japanizeLine2Format", "&6[JP] %japanize");
noneJapanizeMarker = config.getString("noneJapanizeMarker", "#");
japanizeWait = config.getInt("japanizeWait", 1);
@@ -249,6 +266,14 @@ public class LunaChatConfig {
public List<String> getForceJoinChannels() {
return forceJoinChannels;
}
/**
* formatコマンド実行時に、必ず含まれる必要があるキーワード。
* @return formatConstraintを返す
*/
public List<String> getFormatConstraint() {
return formatConstraint;
}
/**
* NGワード
@@ -267,6 +292,14 @@ public class LunaChatConfig {
return sendBroadcastChannelChatToDynmap;
}
/**
* dynmapへ送信するときに、チャンネルのフォーマットを反映して送信するかどうか。
* @return sendFormattedMessageToDynmapを返す
*/
public boolean isSendFormattedMessageToDynmap() {
return sendFormattedMessageToDynmap;
}
/**
* dynmapのWebUIから発言された発言内容を表示するチャンネル。
* @return dynmapChannel dynmapの発言を表示するチャンネル名を返す
+19
ファイルの表示
@@ -5,6 +5,8 @@
*/
package com.github.ucchyocean.lc.command;
import java.util.List;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
@@ -116,6 +118,23 @@ public class FormatCommand extends SubCommandAbst {
return true;
}
}
// 制約キーワードを確認する
List<String> constraints = config.getFormatConstraint();
String tempFormat = new String(format);
for ( int i=0; i<=9; i++ ) {
String key = "%" + i;
if ( tempFormat.contains(key) && api.getTemplate(i + "") != null ) {
tempFormat = tempFormat.replace(key, api.getTemplate("" + i));
break;
}
}
for ( String constraint : constraints ) {
if ( !tempFormat.contains(constraint) ) {
sendResourceMessage(sender, PREERR, "errmsgFormatConstraint", constraint);
return true;
}
}
// フォーマットの設定
channel.setFormat(format);
+8 -3
ファイルの表示
@@ -92,9 +92,10 @@ public class HelpCommand extends SubCommandAbst {
(args[1].equalsIgnoreCase("mod")
|| args[1].equalsIgnoreCase("moderator") ) ) {
type = CommandType.MODERATOR;
} else if ( args.length >= 2
&& args[1].equalsIgnoreCase("admin") ) {
} else if ( args.length >= 2 && args[1].equalsIgnoreCase("admin") ) {
type = CommandType.ADMIN;
} else if ( args.length >= 2 && args[1].matches("[1-9]") ) {
page = Integer.parseInt(args[1]);
}
if ( args.length >= 3 && args[2].matches("[1-9]") ) {
@@ -150,7 +151,11 @@ public class HelpCommand extends SubCommandAbst {
}
sendResourceMessage(sender, "", "usageFoot");
if ( page < lastPage ) {
sendResourceMessage(sender, "", "usageNoticeNextPage", typeDesc, (page + 1));
if ( type != CommandType.USER ) {
sendResourceMessage(sender, "", "usageNoticeNextPage", typeDesc, (page + 1));
} else {
sendResourceMessage(sender, "", "usageNoticeNextPage", "", (page + 1));
}
}
}
+13 -10
ファイルの表示
@@ -73,13 +73,6 @@ public class LunaChatMessageCommand implements CommandExecutor {
*/
protected void sendTellMessage(Player inviter, String invitedName, String message) {
// 招待相手が自分自身でないか確認する
if (inviter.getName().equals(invitedName)) {
sendResourceMessage(inviter, PREERR,
"errmsgCannotSendPMSelf");
return;
}
// 招待相手が存在するかどうかを確認する
Player invited = Bukkit.getPlayerExact(invitedName);
if (invited == null) {
@@ -88,16 +81,23 @@ public class LunaChatMessageCommand implements CommandExecutor {
return;
}
// 招待相手が自分自身でないか確認する
if (inviter.getName().equals(invited.getName())) {
sendResourceMessage(inviter, PREERR,
"errmsgCannotSendPMSelf");
return;
}
// チャンネルが存在するかどうかをチェックする
LunaChatAPI api = LunaChat.instance.getLunaChatAPI();
String cname = inviter.getName() + ">" + invitedName;
String cname = inviter.getName() + ">" + invited.getName();
Channel channel = api.getChannel(cname);
if ( channel == null ) {
// チャンネルを作成して、送信者、受信者をメンバーにする
channel = api.createChannel(cname);
channel.setVisible(false);
channel.addMember(inviter.getName());
channel.addMember(invitedName);
channel.addMember(invited.getName());
}
// メッセージがあるなら送信する
@@ -106,7 +106,10 @@ public class LunaChatMessageCommand implements CommandExecutor {
}
// 送信履歴を残す
DataMaps.privateMessageMap.put(invitedName, inviter.getName());
DataMaps.privateMessageMap.put(
invited.getName(), inviter.getName());
DataMaps.privateMessageMap.put(
inviter.getName(), invited.getName());
return;
}
+18 -19
ファイルの表示
@@ -17,6 +17,7 @@ import com.github.ucchyocean.lc.Resources;
*/
public class LunaChatReplyCommand extends LunaChatMessageCommand {
private static final String PREINFO = Resources.get("infoPrefix");
private static final String PREERR = Resources.get("errorPrefix");
/**
@@ -33,9 +34,24 @@ public class LunaChatReplyCommand extends LunaChatMessageCommand {
}
Player inviter = (Player)sender;
// 引数が無ければ、usageを表示して終了する
// 会話相手を履歴から取得する
String invitedName = DataMaps.privateMessageMap.get(inviter.getName());
// 引数が無ければ、現在の会話相手を表示して終了する
if (args.length == 0) {
printUsage(sender, label);
if ( invitedName == null ) {
sendResourceMessage(sender, PREINFO,
"cmdmsgReplyInviterNone", inviter.getName());
} else {
sendResourceMessage(sender, PREINFO,
"cmdmsgReplyInviter", inviter.getName(), invitedName);
}
return true;
}
// 会話相手がからっぽなら、コマンドを終了する。
if ( invitedName == null ) {
sendResourceMessage(sender, PREERR, "errmsgNotfoundPM");
return true;
}
@@ -45,25 +61,8 @@ public class LunaChatReplyCommand extends LunaChatMessageCommand {
message.append(args[i] + " ");
}
// 招待した人を履歴から取得する
String invitedName = DataMaps.privateMessageMap.get(inviter.getName());
if ( invitedName == null ) {
sendResourceMessage(sender, PREERR, "errmsgNotfoundPM");
return true;
}
sendTellMessage(inviter, invitedName, message.toString().trim());
return true;
}
/**
* コマンドの使い方を senderに送る
*
* @param sender
* @param label
*/
private void printUsage(CommandSender sender, String label) {
sendResourceMessage(sender, "", "usageReply", label);
}
}
+127 -79
ファイルの表示
@@ -149,86 +149,118 @@ public class OptionCommand extends SubCommandAbst {
if ( options.containsKey("description") ) {
// チャンネル説明文
String desc = options.get("description");
// チャンネル説明文は最大文字長を超えていないか確認
if ( desc.length() > MAX_LENGTH_DESCRIPTION ) {
String pnode = PERMISSION_NODE + ".description";
if ( !sender.hasPermission(pnode) ) {
sendResourceMessage(sender, PREERR,
"errmsgToolongDescription", MAX_LENGTH_DESCRIPTION);
"errmsgNotPermission", pnode);
} else {
channel.setDescription(desc);
sendResourceMessage(sender, PREINFO,
"cmdmsgOption", "description", desc);
setOption = true;
String desc = options.get("description");
// チャンネル説明文は最大文字長を超えていないか確認
if ( desc.length() > MAX_LENGTH_DESCRIPTION ) {
sendResourceMessage(sender, PREERR,
"errmsgToolongDescription", MAX_LENGTH_DESCRIPTION);
} else {
channel.setDescription(desc);
sendResourceMessage(sender, PREINFO,
"cmdmsgOption", "description", desc);
setOption = true;
}
}
}
if ( options.containsKey("color") ) {
// チャンネルカラー
String code = options.get("color");
if ( Utility.isValidColor(code) ) {
code = Utility.changeToColorCode(code);
}
if ( Utility.isValidColorCode(code) ) {
channel.setColorCode(code);
sendResourceMessage(sender, PREINFO,
"cmdmsgOption", "color", options.get("color"));
setOption = true;
} else {
String pnode = PERMISSION_NODE + ".color";
if ( !sender.hasPermission(pnode) ) {
sendResourceMessage(sender, PREERR,
"errmsgInvalidColorCode", options.get("color"));
"errmsgNotPermission", pnode);
} else {
String code = options.get("color");
if ( Utility.isValidColor(code) ) {
code = Utility.changeToColorCode(code);
}
if ( Utility.isValidColorCode(code) ) {
channel.setColorCode(code);
sendResourceMessage(sender, PREINFO,
"cmdmsgOption", "color", options.get("color"));
setOption = true;
} else {
sendResourceMessage(sender, PREERR,
"errmsgInvalidColorCode", options.get("color"));
}
}
}
if ( options.containsKey("broadcast") ) {
// ブロードキャストチャンネル
String value = options.get("broadcast");
if ( value.equals("") || value.equalsIgnoreCase("false") ) {
if ( channel.isGlobalChannel() ) {
sendResourceMessage(sender, PREERR,
"errmsgCannotOffGlobalBroadcast");
} else {
channel.setBroadcast(false);
sendResourceMessage(sender, PREINFO,
"cmdmsgOption", "broadcast", "false");
setOption = true;
}
} else if ( value.equalsIgnoreCase("true") ) {
channel.setBroadcast(true);
sendResourceMessage(sender, PREINFO,
"cmdmsgOption", "broadcast", "true");
setOption = true;
} else {
String pnode = PERMISSION_NODE + ".broadcast";
if ( !sender.hasPermission(pnode) ) {
sendResourceMessage(sender, PREERR,
"errmsgInvalidBooleanOption", "broadcast");
"errmsgNotPermission", pnode);
} else {
String value = options.get("broadcast");
if ( value.equals("") || value.equalsIgnoreCase("false") ) {
if ( channel.isGlobalChannel() ) {
sendResourceMessage(sender, PREERR,
"errmsgCannotOffGlobalBroadcast");
} else {
channel.setBroadcast(false);
sendResourceMessage(sender, PREINFO,
"cmdmsgOption", "broadcast", "false");
setOption = true;
}
} else if ( value.equalsIgnoreCase("true") ) {
channel.setBroadcast(true);
sendResourceMessage(sender, PREINFO,
"cmdmsgOption", "broadcast", "true");
setOption = true;
} else {
sendResourceMessage(sender, PREERR,
"errmsgInvalidBooleanOption", "broadcast");
}
}
}
if ( options.containsKey("range") ) {
// レンジ
String value = options.get("range");
if ( value.equals("") ) {
channel.setWorldRange(false);
channel.setRange(0);
sendResourceMessage(sender, PREINFO,
"cmdmsgOption", "range", "無効");
setOption = true;
} else if ( value.equalsIgnoreCase("world") ) {
channel.setWorldRange(true);
channel.setRange(0);
sendResourceMessage(sender, PREINFO,
"cmdmsgOption", "range", "world");
setOption = true;
} else if ( value.matches("[0-9]+") ) {
channel.setWorldRange(true);
channel.setRange(Integer.parseInt(value));
sendResourceMessage(sender, PREINFO,
"cmdmsgOption", "range", value);
setOption = true;
} else {
String pnode = PERMISSION_NODE + ".range";
if ( !sender.hasPermission(pnode) ) {
sendResourceMessage(sender, PREERR,
"errmsgInvalidRangeOption");
"errmsgNotPermission", pnode);
} else {
String value = options.get("range");
if ( value.equals("") ) {
channel.setWorldRange(false);
channel.setRange(0);
sendResourceMessage(sender, PREINFO,
"cmdmsgOption", "range", "無効");
setOption = true;
} else if ( value.equalsIgnoreCase("world") ) {
channel.setWorldRange(true);
channel.setRange(0);
sendResourceMessage(sender, PREINFO,
"cmdmsgOption", "range", "world");
setOption = true;
} else if ( value.matches("[0-9]+") ) {
channel.setWorldRange(true);
channel.setRange(Integer.parseInt(value));
sendResourceMessage(sender, PREINFO,
"cmdmsgOption", "range", value);
setOption = true;
} else {
sendResourceMessage(sender, PREERR,
"errmsgInvalidRangeOption");
}
}
}
@@ -236,32 +268,48 @@ public class OptionCommand extends SubCommandAbst {
if ( options.containsKey("password") ) {
// パスワード
String password = options.get("password");
// パスワードが文字制限を超える場合はエラー
if ( password.length() > MAX_LENGTH_PASSWORD ) {
String pnode = PERMISSION_NODE + ".password";
if ( !sender.hasPermission(pnode) ) {
sendResourceMessage(sender, PREERR,
"errmsgToolongPassword", MAX_LENGTH_PASSWORD);
"errmsgNotPermission", pnode);
} else {
channel.setPassword(password);
sendResourceMessage(sender, PREINFO,
"cmdmsgOption", "password", password);
setOption = true;
String password = options.get("password");
// パスワードが文字制限を超える場合はエラー
if ( password.length() > MAX_LENGTH_PASSWORD ) {
sendResourceMessage(sender, PREERR,
"errmsgToolongPassword", MAX_LENGTH_PASSWORD);
} else {
channel.setPassword(password);
sendResourceMessage(sender, PREINFO,
"cmdmsgOption", "password", password);
setOption = true;
}
}
}
if ( options.containsKey("visible") ) {
// ビジブル
String temp = options.get("visible");
if ( temp.equalsIgnoreCase("false") ) {
channel.setVisible(false);
sendResourceMessage(sender, PREINFO,
"cmdmsgOption", "visible", "false");
setOption = true;
} else if ( temp.equalsIgnoreCase("true") ) {
channel.setVisible(true);
sendResourceMessage(sender, PREINFO,
"cmdmsgOption", "visible", "true");
setOption = true;
String pnode = PERMISSION_NODE + ".visible";
if ( !sender.hasPermission(pnode) ) {
sendResourceMessage(sender, PREERR,
"errmsgNotPermission", pnode);
} else {
String temp = options.get("visible");
if ( temp.equalsIgnoreCase("false") ) {
channel.setVisible(false);
sendResourceMessage(sender, PREINFO,
"cmdmsgOption", "visible", "false");
setOption = true;
} else if ( temp.equalsIgnoreCase("true") ) {
channel.setVisible(true);
sendResourceMessage(sender, PREINFO,
"cmdmsgOption", "visible", "true");
setOption = true;
}
}
}
}
+10 -1
ファイルの表示
@@ -1,4 +1,4 @@
# LunaChat v2.5.4
# LunaChat v2.5.7
# @author ucchy
# @license LGPLv3
# @copyright Copyright ucchy 2013
@@ -41,6 +41,9 @@ globalChannel: ''
# 複数のチャンネルを設定可能。例)forceJoinChannels: ['L', 'M', 'N']
forceJoinChannels: []
# formatコマンド実行時に、必ず含まれる必要があるキーワード。
formatConstraint: ['%username', '%msg']
# -------------------- dynmap連携設定 --------------------
@@ -49,6 +52,12 @@ forceJoinChannels: []
# dynmapがロードされていない場合は、この設定は無視される(false扱い)。
sendBroadcastChannelChatToDynmap: true
# dynmapへ送信するときに、チャンネルのフォーマットを反映して送信するかどうか。
# trueにするとチャンネルフォーマットを反映したメッセージをdynmapに表示します。
# falseにするとメッセージのみをdynmapに表示します。
# 参考:https://github.com/ucchyocean/LunaChat/issues/68
sendFormattedMessageToDynmap: false
# dynmapのWebUIから発言された発言内容を表示するチャンネル。
# dynmapChannelが無指定で、globalChannelが指定されているなら、グローバルチャンネルに、
# dynmapChannelが無指定で、globalChannelも無指定なら、通常チャットに発言される。
+9
ファイルの表示
@@ -1,3 +1,8 @@
# LunaChat v2.5.7
# @author ucchy
# @license LGPLv3
# @copyright Copyright ucchy 2013
defaultFormat: '&a[%ch]%prefix%username%suffix&a:&f %color%msg'
defaultFormatForPersonalChat: '&7[%ch] %msg'
@@ -62,6 +67,9 @@ cmdmsgTemplateRemove: 'テンプレート %s番を削除しました。'
cmdmsgPlayerJapanize: 'Your chat''s Japanize conversion was turned %s.'
cmdmsgPlayerJapanizeOther: '%s さんのJapanize変換を %s にしました。'
cmdmsgReplyInviter: '%sの現在の会話相手 : %s'
cmdmsgReplyInviterNone: '%sの現在の会話相手 : 相手がいません。'
errmsgIngame: 'このコマンドはゲーム内からしか実行できません。'
errmsgCommand: 'コマンドの指定が正しくありません。'
errmsgNotExist: '指定されたチャンネルが存在しません。'
@@ -107,6 +115,7 @@ errmsgToolongPassword: 'パスワードは %d 文字以下にしてください
errmsgInvalidBooleanOption: '%s は true/false で指定してください。'
errmsgInvalidRangeOption: 'range に正しくない値が指定されました。'
errmsgCannotOffGlobalBroadcast: 'このチャンネルはグローバルチャンネルのため、ブロードキャストをオフにできません。'
errmsgFormatConstraint: '必須キーワード %s が指定されていません。'
errmsgNotPermission: 'パーミッション "%s" が無いため、実行できません。'
errmsgChannelChatDisabled: 'このサーバーでは、チャンネルチャットは動作しません。'
+33 -3
ファイルの表示
@@ -1,9 +1,10 @@
name: LunaChat
main: com.github.ucchyocean.lc.LunaChat
version: 2.5.4
version: 2.5.7
author: ucchy
description: チャンネルチャットプラグイン
softdepend: [Vault, dynmap]
commands:
lunachat:
description: lunachatのユーザーコマンド
@@ -33,7 +34,7 @@ commands:
/<command> help [user|mod|admin] [page] - ヘルプを表示します。
message:
description: 1:1チャット送信コマンド
aliases: [msg, tell, m, t]
aliases: [msg, tell, m, t, w]
usage: /<command> (name) [message] - 指定した人との1:1チャットを開始します。
permission: lunachat.message
permission-message: パーミッション "<permission>" が無いため、実行できません。
@@ -51,6 +52,7 @@ commands:
/<command> (player) (on|off) - Turn on/off the Japanize conversion of other player's chat.
permission: lunachat.japanize
permission-message: You don't have the permission "<permission>".
permissions:
lunachat.join:
description: joinコマンドの使用権限
@@ -147,6 +149,35 @@ permissions:
lunachat.help: true
lunachat.japanize: true
description: 一般ユーザー向けの全コマンドの使用権限
lunachat.option.description:
description: descriptionオプション設定コマンドの使用権限
default: true
lunachat.option.color:
description: colorオプション設定コマンドの使用権限
default: true
lunachat.option.broadcast:
description: broadcastオプション設定コマンドの使用権限
default: op
lunachat.option.range:
description: rangeオプション設定コマンドの使用権限
default: op
lunachat.option.password:
description: passwordオプション設定コマンドの使用権限
default: true
lunachat.option.visible:
description: visibleオプション設定コマンドの使用権限
default: true
lunachat.option.*:
children:
lunachat.option.description: true
lunachat.option.color: true
lunachat.option.broadcast: true
lunachat.option.range: true
lunachat.option.password: true
lunachat.option.visible: true
description: オプション設定の全コマンドの使用権限
lunachat-admin.template:
description: templateコマンドの使用権限
default: op
@@ -162,4 +193,3 @@ permissions:
lunachat-admin.reload: true
lunachat-admin.japanize-other: true
description: 管理者向けの全コマンドの使用権限