From 4eae2d978510160b832fdfe73426571838ad21b6 Mon Sep 17 00:00:00 2001 From: ucchyocean Date: Fri, 4 Apr 2014 16:21:43 +0900 Subject: [PATCH] LunaChat v2.6.0 : Refactored. Move to channel package. --- .../github/ucchyocean/lc/ExpireCheckTask.java | 2 + .../com/github/ucchyocean/lc/LunaChat.java | 17 ++--- .../com/github/ucchyocean/lc/LunaChatAPI.java | 8 +++ .../github/ucchyocean/lc/LunaChatConfig.java | 2 +- .../github/ucchyocean/lc/PlayerListener.java | 62 +++++++++++++++- .../ucchyocean/lc/bridge/DynmapBridge.java | 2 +- .../ucchyocean/lc/{ => channel}/Channel.java | 27 ++++--- .../lc/{ => channel}/ChannelManager.java | 72 +++---------------- .../DelayedJapanizeConvertTask.java | 4 +- .../ucchyocean/lc/command/AcceptCommand.java | 2 +- .../ucchyocean/lc/command/BanCommand.java | 2 +- .../ucchyocean/lc/command/CheckCommand.java | 2 +- .../ucchyocean/lc/command/CreateCommand.java | 2 +- .../ucchyocean/lc/command/FormatCommand.java | 2 +- .../ucchyocean/lc/command/HideCommand.java | 2 +- .../ucchyocean/lc/command/InfoCommand.java | 2 +- .../ucchyocean/lc/command/InviteCommand.java | 2 +- .../ucchyocean/lc/command/JoinCommand.java | 2 +- .../ucchyocean/lc/command/KickCommand.java | 2 +- .../ucchyocean/lc/command/LeaveCommand.java | 2 +- .../ucchyocean/lc/command/ListCommand.java | 2 +- .../lc/command/LunaChatCommand.java | 2 +- .../lc/command/LunaChatMessageCommand.java | 2 +- .../lc/command/ModeratorCommand.java | 2 +- .../ucchyocean/lc/command/MuteCommand.java | 2 +- .../ucchyocean/lc/command/OptionCommand.java | 2 +- .../ucchyocean/lc/command/PardonCommand.java | 2 +- .../ucchyocean/lc/command/RemoveCommand.java | 2 +- .../ucchyocean/lc/command/UnhideCommand.java | 2 +- .../ucchyocean/lc/command/UnmuteCommand.java | 2 +- 30 files changed, 132 insertions(+), 106 deletions(-) rename src/main/java/com/github/ucchyocean/lc/{ => channel}/Channel.java (98%) rename src/main/java/com/github/ucchyocean/lc/{ => channel}/ChannelManager.java (87%) rename src/main/java/com/github/ucchyocean/lc/{ => channel}/DelayedJapanizeConvertTask.java (97%) diff --git a/src/main/java/com/github/ucchyocean/lc/ExpireCheckTask.java b/src/main/java/com/github/ucchyocean/lc/ExpireCheckTask.java index c407cdb..24b195a 100644 --- a/src/main/java/com/github/ucchyocean/lc/ExpireCheckTask.java +++ b/src/main/java/com/github/ucchyocean/lc/ExpireCheckTask.java @@ -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 diff --git a/src/main/java/com/github/ucchyocean/lc/LunaChat.java b/src/main/java/com/github/ucchyocean/lc/LunaChat.java index 1d7b6f5..91a37d9 100644 --- a/src/main/java/com/github/ucchyocean/lc/LunaChat.java +++ b/src/main/java/com/github/ucchyocean/lc/LunaChat.java @@ -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(); + } } diff --git a/src/main/java/com/github/ucchyocean/lc/LunaChatAPI.java b/src/main/java/com/github/ucchyocean/lc/LunaChatAPI.java index 0cb42a5..0d380c1 100644 --- a/src/main/java/com/github/ucchyocean/lc/LunaChatAPI.java +++ b/src/main/java/com/github/ucchyocean/lc/LunaChatAPI.java @@ -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); + /** * 指定された名前がチャンネル名として使用可能かどうかを判定する
* 具体的には、英数字・ハイフン・アンダーバー のいずれかから構成される、 diff --git a/src/main/java/com/github/ucchyocean/lc/LunaChatConfig.java b/src/main/java/com/github/ucchyocean/lc/LunaChatConfig.java index 0de33e9..ecd5a3f 100644 --- a/src/main/java/com/github/ucchyocean/lc/LunaChatConfig.java +++ b/src/main/java/com/github/ucchyocean/lc/LunaChatConfig.java @@ -199,7 +199,7 @@ public class LunaChatConfig { // チャンネルチャット無効なら、デフォルト発言先をクリアする(see issue #59) if ( !enableChannelChat ) { - LunaChat.getInstance().getManager().removeAllDefaultChannels(); + LunaChat.getInstance().removeAllDefaultChannels(); } } diff --git a/src/main/java/com/github/ucchyocean/lc/PlayerListener.java b/src/main/java/com/github/ucchyocean/lc/PlayerListener.java index 58ff1b6..b7e2f78 100644 --- a/src/main/java/com/github/ucchyocean/lc/PlayerListener.java +++ b/src/main/java/com/github/ucchyocean/lc/PlayerListener.java @@ -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 list = - LunaChat.getInstance().getManager().getListForMotd(player); + ArrayList 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 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 items = new ArrayList(); + 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; } } diff --git a/src/main/java/com/github/ucchyocean/lc/bridge/DynmapBridge.java b/src/main/java/com/github/ucchyocean/lc/bridge/DynmapBridge.java index ed22016..1fa3bfd 100644 --- a/src/main/java/com/github/ucchyocean/lc/bridge/DynmapBridge.java +++ b/src/main/java/com/github/ucchyocean/lc/bridge/DynmapBridge.java @@ -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連携クラス diff --git a/src/main/java/com/github/ucchyocean/lc/Channel.java b/src/main/java/com/github/ucchyocean/lc/channel/Channel.java similarity index 98% rename from src/main/java/com/github/ucchyocean/lc/Channel.java rename to src/main/java/com/github/ucchyocean/lc/channel/Channel.java index b0de063..4270607 100644 --- a/src/main/java/com/github/ucchyocean/lc/Channel.java +++ b/src/main/java/com/github/ucchyocean/lc/channel/Channel.java @@ -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; } } diff --git a/src/main/java/com/github/ucchyocean/lc/ChannelManager.java b/src/main/java/com/github/ucchyocean/lc/channel/ChannelManager.java similarity index 87% rename from src/main/java/com/github/ucchyocean/lc/ChannelManager.java rename to src/main/java/com/github/ucchyocean/lc/channel/ChannelManager.java index b6b6d3f..998798e 100644 --- a/src/main/java/com/github/ucchyocean/lc/ChannelManager.java +++ b/src/main/java/com/github/ucchyocean/lc/channel/ChannelManager.java @@ -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 getListForMotd(Player player) { - - ArrayList items = new ArrayList(); - 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 チャンネル名 diff --git a/src/main/java/com/github/ucchyocean/lc/DelayedJapanizeConvertTask.java b/src/main/java/com/github/ucchyocean/lc/channel/DelayedJapanizeConvertTask.java similarity index 97% rename from src/main/java/com/github/ucchyocean/lc/DelayedJapanizeConvertTask.java rename to src/main/java/com/github/ucchyocean/lc/channel/DelayedJapanizeConvertTask.java index 6da36be..bcd4ecf 100644 --- a/src/main/java/com/github/ucchyocean/lc/DelayedJapanizeConvertTask.java +++ b/src/main/java/com/github/ucchyocean/lc/channel/DelayedJapanizeConvertTask.java @@ -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; diff --git a/src/main/java/com/github/ucchyocean/lc/command/AcceptCommand.java b/src/main/java/com/github/ucchyocean/lc/command/AcceptCommand.java index 06e132d..852b3b2 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/AcceptCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/AcceptCommand.java @@ -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コマンドの実行クラス diff --git a/src/main/java/com/github/ucchyocean/lc/command/BanCommand.java b/src/main/java/com/github/ucchyocean/lc/command/BanCommand.java index 64e0d16..bf0308f 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/BanCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/BanCommand.java @@ -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コマンドの実行クラス diff --git a/src/main/java/com/github/ucchyocean/lc/command/CheckCommand.java b/src/main/java/com/github/ucchyocean/lc/command/CheckCommand.java index 375d392..2a5a189 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/CheckCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/CheckCommand.java @@ -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コマンドの実行クラス diff --git a/src/main/java/com/github/ucchyocean/lc/command/CreateCommand.java b/src/main/java/com/github/ucchyocean/lc/command/CreateCommand.java index f3bc8f8..3b9985f 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/CreateCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/CreateCommand.java @@ -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コマンドの実行クラス diff --git a/src/main/java/com/github/ucchyocean/lc/command/FormatCommand.java b/src/main/java/com/github/ucchyocean/lc/command/FormatCommand.java index 7673f38..28f0d1f 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/FormatCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/FormatCommand.java @@ -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コマンドの実行クラス diff --git a/src/main/java/com/github/ucchyocean/lc/command/HideCommand.java b/src/main/java/com/github/ucchyocean/lc/command/HideCommand.java index db01ab6..b452663 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/HideCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/HideCommand.java @@ -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コマンドの実行クラス diff --git a/src/main/java/com/github/ucchyocean/lc/command/InfoCommand.java b/src/main/java/com/github/ucchyocean/lc/command/InfoCommand.java index c487de2..8058e8d 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/InfoCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/InfoCommand.java @@ -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コマンドの実行クラス diff --git a/src/main/java/com/github/ucchyocean/lc/command/InviteCommand.java b/src/main/java/com/github/ucchyocean/lc/command/InviteCommand.java index 3f9feab..e1a4e43 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/InviteCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/InviteCommand.java @@ -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コマンドの実行クラス diff --git a/src/main/java/com/github/ucchyocean/lc/command/JoinCommand.java b/src/main/java/com/github/ucchyocean/lc/command/JoinCommand.java index 44173f5..14541ea 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/JoinCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/JoinCommand.java @@ -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コマンドの実行クラス diff --git a/src/main/java/com/github/ucchyocean/lc/command/KickCommand.java b/src/main/java/com/github/ucchyocean/lc/command/KickCommand.java index 84959f9..82320b6 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/KickCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/KickCommand.java @@ -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コマンドの実行クラス diff --git a/src/main/java/com/github/ucchyocean/lc/command/LeaveCommand.java b/src/main/java/com/github/ucchyocean/lc/command/LeaveCommand.java index a5de41f..277be11 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/LeaveCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/LeaveCommand.java @@ -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コマンドの実行クラス diff --git a/src/main/java/com/github/ucchyocean/lc/command/ListCommand.java b/src/main/java/com/github/ucchyocean/lc/command/ListCommand.java index 593a166..b2f7127 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/ListCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/ListCommand.java @@ -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コマンドの実行クラス diff --git a/src/main/java/com/github/ucchyocean/lc/command/LunaChatCommand.java b/src/main/java/com/github/ucchyocean/lc/command/LunaChatCommand.java index 0403e14..854afed 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/LunaChatCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/LunaChatCommand.java @@ -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コマンドの処理クラス diff --git a/src/main/java/com/github/ucchyocean/lc/command/LunaChatMessageCommand.java b/src/main/java/com/github/ucchyocean/lc/command/LunaChatMessageCommand.java index 263b043..bca0f29 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/LunaChatMessageCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/LunaChatMessageCommand.java @@ -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チャット送信コマンド diff --git a/src/main/java/com/github/ucchyocean/lc/command/ModeratorCommand.java b/src/main/java/com/github/ucchyocean/lc/command/ModeratorCommand.java index 930ba90..359e93e 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/ModeratorCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/ModeratorCommand.java @@ -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コマンドの実行クラス diff --git a/src/main/java/com/github/ucchyocean/lc/command/MuteCommand.java b/src/main/java/com/github/ucchyocean/lc/command/MuteCommand.java index 5f1aad5..a4d3553 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/MuteCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/MuteCommand.java @@ -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コマンドの実行クラス diff --git a/src/main/java/com/github/ucchyocean/lc/command/OptionCommand.java b/src/main/java/com/github/ucchyocean/lc/command/OptionCommand.java index 205c525..978bc9e 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/OptionCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/OptionCommand.java @@ -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; /** diff --git a/src/main/java/com/github/ucchyocean/lc/command/PardonCommand.java b/src/main/java/com/github/ucchyocean/lc/command/PardonCommand.java index db7d325..04a9bd8 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/PardonCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/PardonCommand.java @@ -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コマンドの実行クラス diff --git a/src/main/java/com/github/ucchyocean/lc/command/RemoveCommand.java b/src/main/java/com/github/ucchyocean/lc/command/RemoveCommand.java index c385df9..1967408 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/RemoveCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/RemoveCommand.java @@ -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コマンドの実行クラス diff --git a/src/main/java/com/github/ucchyocean/lc/command/UnhideCommand.java b/src/main/java/com/github/ucchyocean/lc/command/UnhideCommand.java index 84eae14..86643b4 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/UnhideCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/UnhideCommand.java @@ -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コマンドの実行クラス diff --git a/src/main/java/com/github/ucchyocean/lc/command/UnmuteCommand.java b/src/main/java/com/github/ucchyocean/lc/command/UnmuteCommand.java index b6e5ba3..48358c9 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/UnmuteCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/UnmuteCommand.java @@ -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コマンドの実行クラス