LunaChat v2.6.0 : Refactored. Move to channel package.
このコミットが含まれているのは:
1 親
3e35f5fceb
コミット
4eae2d9785
30ファイル変更
+132
-106
検索条件に一致するファイルはありません
@@ -7,6 +7,8 @@ package com.github.ucchyocean.lc;
|
||||
|
||||
import org.bukkit.scheduler.BukkitRunnable;
|
||||
|
||||
import com.github.ucchyocean.lc.channel.Channel;
|
||||
|
||||
/**
|
||||
* 各チャンネルの期限付きBANや期限付きMuteを、1分間隔で確認しに行くタスク
|
||||
* @author ucchy
|
||||
|
||||
@@ -17,6 +17,8 @@ import org.bukkit.scheduler.BukkitTask;
|
||||
|
||||
import com.github.ucchyocean.lc.bridge.DynmapBridge;
|
||||
import com.github.ucchyocean.lc.bridge.VaultChatBridge;
|
||||
import com.github.ucchyocean.lc.channel.Channel;
|
||||
import com.github.ucchyocean.lc.channel.ChannelManager;
|
||||
import com.github.ucchyocean.lc.command.LunaChatCommand;
|
||||
import com.github.ucchyocean.lc.command.LunaChatJapanizeCommand;
|
||||
import com.github.ucchyocean.lc.command.LunaChatMessageCommand;
|
||||
@@ -171,14 +173,6 @@ public class LunaChat extends JavaPlugin {
|
||||
return manager;
|
||||
}
|
||||
|
||||
/**
|
||||
* Managerを取得する
|
||||
* @return ChannelManager
|
||||
*/
|
||||
protected ChannelManager getManager() {
|
||||
return manager;
|
||||
}
|
||||
|
||||
/**
|
||||
* LunaChatConfigを取得する
|
||||
* @return LunaChatConfig
|
||||
@@ -202,4 +196,11 @@ public class LunaChat extends JavaPlugin {
|
||||
public DynmapBridge getDynmap() {
|
||||
return dynmap;
|
||||
}
|
||||
|
||||
/**
|
||||
* 全てのデフォルトチャンネル設定を削除する
|
||||
*/
|
||||
protected void removeAllDefaultChannels() {
|
||||
manager.removeAllDefaultChannels();
|
||||
}
|
||||
}
|
||||
@@ -9,6 +9,7 @@ import java.util.Collection;
|
||||
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import com.github.ucchyocean.lc.channel.Channel;
|
||||
import com.github.ucchyocean.lc.japanize.JapanizeType;
|
||||
|
||||
/**
|
||||
@@ -129,6 +130,13 @@ public interface LunaChatAPI {
|
||||
*/
|
||||
public void setPlayersJapanize(String playerName, boolean doJapanize);
|
||||
|
||||
/**
|
||||
* プレイヤーのJapanize設定を返す
|
||||
* @param playerName プレイヤー名
|
||||
* @return Japanize設定
|
||||
*/
|
||||
public boolean isPlayerJapanize(String playerName);
|
||||
|
||||
/**
|
||||
* 指定された名前がチャンネル名として使用可能かどうかを判定する<br/>
|
||||
* 具体的には、英数字・ハイフン・アンダーバー のいずれかから構成される、
|
||||
|
||||
@@ -199,7 +199,7 @@ public class LunaChatConfig {
|
||||
|
||||
// チャンネルチャット無効なら、デフォルト発言先をクリアする(see issue #59)
|
||||
if ( !enableChannelChat ) {
|
||||
LunaChat.getInstance().getManager().removeAllDefaultChannels();
|
||||
LunaChat.getInstance().removeAllDefaultChannels();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.Listener;
|
||||
@@ -17,6 +18,8 @@ import org.bukkit.event.player.PlayerJoinEvent;
|
||||
import org.bukkit.event.player.PlayerQuitEvent;
|
||||
|
||||
import com.github.ucchyocean.lc.bridge.VaultChatBridge;
|
||||
import com.github.ucchyocean.lc.channel.Channel;
|
||||
import com.github.ucchyocean.lc.channel.DelayedJapanizeConvertTask;
|
||||
import com.github.ucchyocean.lc.japanize.JapanizeType;
|
||||
|
||||
/**
|
||||
@@ -25,6 +28,10 @@ import com.github.ucchyocean.lc.japanize.JapanizeType;
|
||||
*/
|
||||
public class PlayerListener implements Listener {
|
||||
|
||||
private static final String MOTD_FIRSTLINE = Resources.get("motdFirstLine");
|
||||
private static final String LIST_ENDLINE = Resources.get("listEndLine");
|
||||
private static final String LIST_FORMAT = Resources.get("listFormat");
|
||||
|
||||
/**
|
||||
* プレイヤーのチャットごとに呼び出されるメソッド
|
||||
* @param event チャットイベント
|
||||
@@ -91,8 +98,7 @@ public class PlayerListener implements Listener {
|
||||
|
||||
// チャンネルチャット情報を表示する
|
||||
if ( config.isShowListOnJoin() ) {
|
||||
ArrayList<String> list =
|
||||
LunaChat.getInstance().getManager().getListForMotd(player);
|
||||
ArrayList<String> list = getListForMotd(player);
|
||||
for ( String msg : list ) {
|
||||
player.sendMessage(msg);
|
||||
}
|
||||
@@ -207,7 +213,7 @@ public class PlayerListener implements Listener {
|
||||
|
||||
// Japanize変換と、発言処理
|
||||
if ( !skipJapanize &&
|
||||
LunaChat.getInstance().getManager().isPlayerJapanize(player.getName()) &&
|
||||
LunaChat.getInstance().getLunaChatAPI().isPlayerJapanize(player.getName()) &&
|
||||
config.getJapanizeType() != JapanizeType.NONE ) {
|
||||
|
||||
int lineType = config.getJapanizeDisplayLine();
|
||||
@@ -329,6 +335,56 @@ public class PlayerListener implements Listener {
|
||||
}
|
||||
|
||||
return Utility.replaceColorCode(format);
|
||||
}
|
||||
|
||||
/**
|
||||
* プレイヤーのサーバー参加時用の参加チャンネルリストを返す
|
||||
* @param player プレイヤー
|
||||
* @return リスト
|
||||
*/
|
||||
private ArrayList<String> getListForMotd(Player player) {
|
||||
|
||||
String name = player.getName();
|
||||
LunaChatAPI api = LunaChat.getInstance().getLunaChatAPI();
|
||||
Channel dc = api.getDefaultChannel(name);
|
||||
String dchannel = "";
|
||||
if ( dc != null ) {
|
||||
dchannel = dc.getName().toLowerCase();
|
||||
}
|
||||
|
||||
ArrayList<String> items = new ArrayList<String>();
|
||||
items.add(MOTD_FIRSTLINE);
|
||||
for ( Channel channel : api.getChannels() ) {
|
||||
|
||||
// BANされているチャンネルは表示しない
|
||||
if ( channel.getBanned().contains(name) ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// 個人チャットはリストに表示しない
|
||||
if ( channel.isPersonalChat() ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// 参加していないチャンネルは、グローバルチャンネルを除き表示しない
|
||||
if ( !channel.getMembers().contains(name) &&
|
||||
!channel.isGlobalChannel() ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
String disp = ChatColor.WHITE + channel.getName();
|
||||
if ( channel.getName().equals(dchannel) ) {
|
||||
disp = ChatColor.RED + channel.getName();
|
||||
}
|
||||
String desc = channel.getDescription();
|
||||
int onlineNum = channel.getOnlineNum();
|
||||
int memberNum = channel.getTotalNum();
|
||||
String item = String.format(
|
||||
LIST_FORMAT, disp, onlineNum, memberNum, desc);
|
||||
items.add(item);
|
||||
}
|
||||
items.add(LIST_ENDLINE);
|
||||
|
||||
return items;
|
||||
}
|
||||
}
|
||||
@@ -12,10 +12,10 @@ import org.bukkit.plugin.Plugin;
|
||||
import org.dynmap.DynmapAPI;
|
||||
import org.dynmap.DynmapWebChatEvent;
|
||||
|
||||
import com.github.ucchyocean.lc.Channel;
|
||||
import com.github.ucchyocean.lc.LunaChat;
|
||||
import com.github.ucchyocean.lc.LunaChatAPI;
|
||||
import com.github.ucchyocean.lc.LunaChatConfig;
|
||||
import com.github.ucchyocean.lc.channel.Channel;
|
||||
|
||||
/**
|
||||
* dynmap連携クラス
|
||||
|
||||
+17
-10
@@ -3,7 +3,7 @@
|
||||
* @license LGPLv3
|
||||
* @copyright Copyright ucchy 2013
|
||||
*/
|
||||
package com.github.ucchyocean.lc;
|
||||
package com.github.ucchyocean.lc.channel;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FilenameFilter;
|
||||
@@ -22,6 +22,13 @@ import org.bukkit.configuration.serialization.ConfigurationSerializable;
|
||||
import org.bukkit.configuration.serialization.SerializableAs;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import com.github.ucchyocean.lc.LunaChat;
|
||||
import com.github.ucchyocean.lc.LunaChatAPI;
|
||||
import com.github.ucchyocean.lc.LunaChatConfig;
|
||||
import com.github.ucchyocean.lc.LunaChatLogger;
|
||||
import com.github.ucchyocean.lc.NGWordAction;
|
||||
import com.github.ucchyocean.lc.Resources;
|
||||
import com.github.ucchyocean.lc.Utility;
|
||||
import com.github.ucchyocean.lc.bridge.DynmapBridge;
|
||||
import com.github.ucchyocean.lc.bridge.VaultChatBridge;
|
||||
import com.github.ucchyocean.lc.event.LunaChatChannelChatEvent;
|
||||
@@ -157,8 +164,8 @@ public class Channel implements ConfigurationSerializable {
|
||||
/** コンフィグ */
|
||||
private LunaChatConfig config;
|
||||
|
||||
/** マネージャ */
|
||||
private ChannelManager manager;
|
||||
/** API */
|
||||
private LunaChatAPI api;
|
||||
|
||||
/**
|
||||
* コンストラクタ
|
||||
@@ -167,7 +174,7 @@ public class Channel implements ConfigurationSerializable {
|
||||
protected Channel(String name) {
|
||||
|
||||
this.config = LunaChat.getInstance().getLunaChatConfig();
|
||||
this.manager = LunaChat.getInstance().getManager();
|
||||
this.api = LunaChat.getInstance().getLunaChatAPI();
|
||||
|
||||
this.name = name;
|
||||
this.description = "";
|
||||
@@ -294,7 +301,7 @@ public class Channel implements ConfigurationSerializable {
|
||||
boolean isIncludeSyncChat = true;
|
||||
DelayedJapanizeConvertTask delayedTask = null;
|
||||
if ( !skipJapanize &&
|
||||
manager.isPlayerJapanize(player.getName()) &&
|
||||
api.isPlayerJapanize(player.getName()) &&
|
||||
config.getJapanizeType() != JapanizeType.NONE ) {
|
||||
|
||||
int lineType = config.getJapanizeDisplayLine();
|
||||
@@ -433,9 +440,9 @@ public class Channel implements ConfigurationSerializable {
|
||||
|
||||
// デフォルト発言先が退出するチャンネルと一致する場合、
|
||||
// デフォルト発言先を削除する
|
||||
Channel def = manager.getDefaultChannel(name);
|
||||
Channel def = api.getDefaultChannel(name);
|
||||
if ( def != null && def.name.equals(this.name) ) {
|
||||
manager.removeDefaultChannel(name);
|
||||
api.removeDefaultChannel(name);
|
||||
}
|
||||
|
||||
// 実際にメンバーから削除する
|
||||
@@ -443,7 +450,7 @@ public class Channel implements ConfigurationSerializable {
|
||||
members.remove(name);
|
||||
sendJoinQuitMessage(false, name);
|
||||
if ( config.isZeroMemberRemove() && members.size() <= 0 ) {
|
||||
manager.removeChannel(this.name);
|
||||
api.removeChannel(this.name);
|
||||
return;
|
||||
} else {
|
||||
save();
|
||||
@@ -747,8 +754,8 @@ public class Channel implements ConfigurationSerializable {
|
||||
for ( int i=0; i<=9; i++ ) {
|
||||
String key = "%" + i;
|
||||
if ( msg.contains(key) ) {
|
||||
if ( manager.getTemplate("" + i) != null ) {
|
||||
msg = msg.replace(key, manager.getTemplate("" + i));
|
||||
if ( api.getTemplate("" + i) != null ) {
|
||||
msg = msg.replace(key, api.getTemplate("" + i));
|
||||
break;
|
||||
}
|
||||
}
|
||||
+11
-61
@@ -3,7 +3,7 @@
|
||||
* @license LGPLv3
|
||||
* @copyright Copyright ucchy 2013
|
||||
*/
|
||||
package com.github.ucchyocean.lc;
|
||||
package com.github.ucchyocean.lc.channel;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
@@ -12,11 +12,14 @@ import java.util.Collection;
|
||||
import java.util.HashMap;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.configuration.file.YamlConfiguration;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import com.github.ucchyocean.lc.LunaChat;
|
||||
import com.github.ucchyocean.lc.LunaChatAPI;
|
||||
import com.github.ucchyocean.lc.Resources;
|
||||
import com.github.ucchyocean.lc.Utility;
|
||||
import com.github.ucchyocean.lc.event.LunaChatChannelCreateEvent;
|
||||
import com.github.ucchyocean.lc.event.LunaChatChannelRemoveEvent;
|
||||
import com.github.ucchyocean.lc.japanize.JapanizeType;
|
||||
@@ -27,10 +30,6 @@ import com.github.ucchyocean.lc.japanize.JapanizeType;
|
||||
*/
|
||||
public class ChannelManager implements LunaChatAPI {
|
||||
|
||||
private static final String MOTD_FIRSTLINE = Resources.get("motdFirstLine");
|
||||
private static final String LIST_ENDLINE = Resources.get("listEndLine");
|
||||
private static final String LIST_FORMAT = Resources.get("listFormat");
|
||||
|
||||
private static final String MSG_BREAKUP = Resources.get("breakupMessage");
|
||||
|
||||
private static final String FILE_NAME_DCHANNELS = "defaults.yml";
|
||||
@@ -195,53 +194,11 @@ public class ChannelManager implements LunaChatAPI {
|
||||
}
|
||||
|
||||
/**
|
||||
* プレイヤーのサーバー参加時用の参加チャンネルリストを返す
|
||||
* @param player プレイヤー
|
||||
* @return リスト
|
||||
* デフォルトチャンネル設定を全て削除する
|
||||
*/
|
||||
protected ArrayList<String> getListForMotd(Player player) {
|
||||
|
||||
ArrayList<String> items = new ArrayList<String>();
|
||||
String playerName = player.getName();
|
||||
String dchannel = defaultChannels.get(player.getName());
|
||||
if ( dchannel == null ) {
|
||||
dchannel = "";
|
||||
}
|
||||
|
||||
items.add(MOTD_FIRSTLINE);
|
||||
for ( String key : channels.keySet() ) {
|
||||
Channel channel = channels.get(key);
|
||||
|
||||
// BANされているチャンネルは表示しない
|
||||
if ( channel.getBanned().contains(playerName) ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// 個人チャットはリストに表示しない
|
||||
if ( channel.isPersonalChat() ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// 参加していないチャンネルは、グローバルチャンネルを除き表示しない
|
||||
if ( !channel.getMembers().contains(playerName) &&
|
||||
!channel.isGlobalChannel() ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
String disp = ChatColor.WHITE + channel.getName();
|
||||
if ( key.equals(dchannel.toLowerCase()) ) {
|
||||
disp = ChatColor.RED + channel.getName();
|
||||
}
|
||||
String desc = channel.getDescription();
|
||||
int onlineNum = channel.getOnlineNum();
|
||||
int memberNum = channel.getTotalNum();
|
||||
String item = String.format(
|
||||
LIST_FORMAT, disp, onlineNum, memberNum, desc);
|
||||
items.add(item);
|
||||
}
|
||||
items.add(LIST_ENDLINE);
|
||||
|
||||
return items;
|
||||
public void removeAllDefaultChannels() {
|
||||
defaultChannels.clear();
|
||||
saveDefaults();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -249,21 +206,14 @@ public class ChannelManager implements LunaChatAPI {
|
||||
* @param playerName プレイヤー名
|
||||
* @return Japanize設定
|
||||
*/
|
||||
protected boolean isPlayerJapanize(String playerName) {
|
||||
@Override
|
||||
public boolean isPlayerJapanize(String playerName) {
|
||||
if ( !japanize.containsKey(playerName) ) {
|
||||
return true;
|
||||
}
|
||||
return japanize.get(playerName);
|
||||
}
|
||||
|
||||
/**
|
||||
* デフォルトチャンネル設定を全て削除する
|
||||
*/
|
||||
protected void removeAllDefaultChannels() {
|
||||
defaultChannels.clear();
|
||||
saveDefaults();
|
||||
}
|
||||
|
||||
/**
|
||||
* 指定したチャンネル名が存在するかどうかを返す
|
||||
* @param channelName チャンネル名
|
||||
+3
-1
@@ -3,7 +3,7 @@
|
||||
* @license LGPLv3
|
||||
* @copyright Copyright ucchy 2013
|
||||
*/
|
||||
package com.github.ucchyocean.lc;
|
||||
package com.github.ucchyocean.lc.channel;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
@@ -12,6 +12,8 @@ import org.bukkit.Bukkit;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.scheduler.BukkitRunnable;
|
||||
|
||||
import com.github.ucchyocean.lc.LunaChat;
|
||||
import com.github.ucchyocean.lc.Utility;
|
||||
import com.github.ucchyocean.lc.event.LunaChatPostJapanizeEvent;
|
||||
import com.github.ucchyocean.lc.japanize.IMEConverter;
|
||||
import com.github.ucchyocean.lc.japanize.JapanizeType;
|
||||
@@ -8,7 +8,7 @@ package com.github.ucchyocean.lc.command;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import com.github.ucchyocean.lc.Channel;
|
||||
import com.github.ucchyocean.lc.channel.Channel;
|
||||
|
||||
/**
|
||||
* acceptコマンドの実行クラス
|
||||
|
||||
@@ -8,8 +8,8 @@ package com.github.ucchyocean.lc.command;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import com.github.ucchyocean.lc.Channel;
|
||||
import com.github.ucchyocean.lc.Utility;
|
||||
import com.github.ucchyocean.lc.channel.Channel;
|
||||
|
||||
/**
|
||||
* banコマンドの実行クラス
|
||||
|
||||
@@ -13,9 +13,9 @@ import org.bukkit.command.ConsoleCommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.metadata.FixedMetadataValue;
|
||||
|
||||
import com.github.ucchyocean.lc.Channel;
|
||||
import com.github.ucchyocean.lc.LunaChat;
|
||||
import com.github.ucchyocean.lc.Resources;
|
||||
import com.github.ucchyocean.lc.channel.Channel;
|
||||
|
||||
/**
|
||||
* checkコマンドの実行クラス
|
||||
|
||||
@@ -7,7 +7,7 @@ package com.github.ucchyocean.lc.command;
|
||||
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import com.github.ucchyocean.lc.Channel;
|
||||
import com.github.ucchyocean.lc.channel.Channel;
|
||||
|
||||
/**
|
||||
* createコマンドの実行クラス
|
||||
|
||||
@@ -10,7 +10,7 @@ import java.util.List;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import com.github.ucchyocean.lc.Channel;
|
||||
import com.github.ucchyocean.lc.channel.Channel;
|
||||
|
||||
/**
|
||||
* formatコマンドの実行クラス
|
||||
|
||||
@@ -8,7 +8,7 @@ package com.github.ucchyocean.lc.command;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import com.github.ucchyocean.lc.Channel;
|
||||
import com.github.ucchyocean.lc.channel.Channel;
|
||||
|
||||
/**
|
||||
* hideコマンドの実行クラス
|
||||
|
||||
@@ -10,7 +10,7 @@ import java.util.ArrayList;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import com.github.ucchyocean.lc.Channel;
|
||||
import com.github.ucchyocean.lc.channel.Channel;
|
||||
|
||||
/**
|
||||
* infoコマンドの実行クラス
|
||||
|
||||
@@ -8,8 +8,8 @@ package com.github.ucchyocean.lc.command;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import com.github.ucchyocean.lc.Channel;
|
||||
import com.github.ucchyocean.lc.Utility;
|
||||
import com.github.ucchyocean.lc.channel.Channel;
|
||||
|
||||
/**
|
||||
* inviteコマンドの実行クラス
|
||||
|
||||
@@ -8,7 +8,7 @@ package com.github.ucchyocean.lc.command;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import com.github.ucchyocean.lc.Channel;
|
||||
import com.github.ucchyocean.lc.channel.Channel;
|
||||
|
||||
/**
|
||||
* joinコマンドの実行クラス
|
||||
|
||||
@@ -8,8 +8,8 @@ package com.github.ucchyocean.lc.command;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import com.github.ucchyocean.lc.Channel;
|
||||
import com.github.ucchyocean.lc.Utility;
|
||||
import com.github.ucchyocean.lc.channel.Channel;
|
||||
|
||||
/**
|
||||
* kickコマンドの実行クラス
|
||||
|
||||
@@ -8,7 +8,7 @@ package com.github.ucchyocean.lc.command;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import com.github.ucchyocean.lc.Channel;
|
||||
import com.github.ucchyocean.lc.channel.Channel;
|
||||
|
||||
/**
|
||||
* leaveコマンドの実行クラス
|
||||
|
||||
@@ -12,8 +12,8 @@ import org.bukkit.ChatColor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import com.github.ucchyocean.lc.Channel;
|
||||
import com.github.ucchyocean.lc.Resources;
|
||||
import com.github.ucchyocean.lc.channel.Channel;
|
||||
|
||||
/**
|
||||
* listコマンドの実行クラス
|
||||
|
||||
@@ -13,9 +13,9 @@ import org.bukkit.command.CommandExecutor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import com.github.ucchyocean.lc.Channel;
|
||||
import com.github.ucchyocean.lc.LunaChat;
|
||||
import com.github.ucchyocean.lc.Resources;
|
||||
import com.github.ucchyocean.lc.channel.Channel;
|
||||
|
||||
/**
|
||||
* Lunachatコマンドの処理クラス
|
||||
|
||||
@@ -10,11 +10,11 @@ import org.bukkit.command.CommandExecutor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import com.github.ucchyocean.lc.Channel;
|
||||
import com.github.ucchyocean.lc.LunaChat;
|
||||
import com.github.ucchyocean.lc.LunaChatAPI;
|
||||
import com.github.ucchyocean.lc.Resources;
|
||||
import com.github.ucchyocean.lc.Utility;
|
||||
import com.github.ucchyocean.lc.channel.Channel;
|
||||
|
||||
/**
|
||||
* 1:1チャット送信コマンド
|
||||
|
||||
@@ -10,7 +10,7 @@ import java.util.ArrayList;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import com.github.ucchyocean.lc.Channel;
|
||||
import com.github.ucchyocean.lc.channel.Channel;
|
||||
|
||||
/**
|
||||
* moderatorコマンドの実行クラス
|
||||
|
||||
@@ -8,8 +8,8 @@ package com.github.ucchyocean.lc.command;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import com.github.ucchyocean.lc.Channel;
|
||||
import com.github.ucchyocean.lc.Utility;
|
||||
import com.github.ucchyocean.lc.channel.Channel;
|
||||
|
||||
/**
|
||||
* muteコマンドの実行クラス
|
||||
|
||||
@@ -12,8 +12,8 @@ import org.bukkit.Bukkit;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import com.github.ucchyocean.lc.Channel;
|
||||
import com.github.ucchyocean.lc.Utility;
|
||||
import com.github.ucchyocean.lc.channel.Channel;
|
||||
import com.github.ucchyocean.lc.event.LunaChatChannelOptionChangedEvent;
|
||||
|
||||
/**
|
||||
|
||||
@@ -8,8 +8,8 @@ package com.github.ucchyocean.lc.command;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import com.github.ucchyocean.lc.Channel;
|
||||
import com.github.ucchyocean.lc.Utility;
|
||||
import com.github.ucchyocean.lc.channel.Channel;
|
||||
|
||||
/**
|
||||
* pardonコマンドの実行クラス
|
||||
|
||||
@@ -8,7 +8,7 @@ package com.github.ucchyocean.lc.command;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import com.github.ucchyocean.lc.Channel;
|
||||
import com.github.ucchyocean.lc.channel.Channel;
|
||||
|
||||
/**
|
||||
* removeコマンドの実行クラス
|
||||
|
||||
@@ -8,7 +8,7 @@ package com.github.ucchyocean.lc.command;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import com.github.ucchyocean.lc.Channel;
|
||||
import com.github.ucchyocean.lc.channel.Channel;
|
||||
|
||||
/**
|
||||
* unhideコマンドの実行クラス
|
||||
|
||||
@@ -8,8 +8,8 @@ package com.github.ucchyocean.lc.command;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import com.github.ucchyocean.lc.Channel;
|
||||
import com.github.ucchyocean.lc.Utility;
|
||||
import com.github.ucchyocean.lc.channel.Channel;
|
||||
|
||||
/**
|
||||
* unmuteコマンドの実行クラス
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする