From 5ddd0959d89079cdc00e16729d5adb12245aaa55 Mon Sep 17 00:00:00 2001 From: ucchy Date: Mon, 25 May 2020 10:06:07 +0900 Subject: [PATCH] LunaChat v3-k2 : initial revision. --- pom.xml | 82 ++--- .../github/ucchyocean/lc/ExpireCheckTask.java | 2 +- .../com/github/ucchyocean/lc/LunaChat.java | 33 +- .../com/github/ucchyocean/lc/LunaChatAPI.java | 2 +- .../github/ucchyocean/lc/LunaChatConfig.java | 2 +- .../github/ucchyocean/lc/LunaChatLogger.java | 2 +- .../github/ucchyocean/lc/NGWordAction.java | 2 +- .../github/ucchyocean/lc/PlayerListener.java | 2 +- .../com/github/ucchyocean/lc/Resources.java | 2 +- .../com/github/ucchyocean/lc/Utility.java | 313 +++--------------- .../ucchyocean/lc/bridge/DynmapBridge.java | 2 +- .../ucchyocean/lc/bridge/HawkEyeBridge.java | 63 ---- .../ucchyocean/lc/bridge/McMMOBridge.java | 2 +- .../lc/bridge/MultiverseCoreBridge.java | 2 +- .../ucchyocean/lc/bridge/PrismBridge.java | 51 --- .../ucchyocean/lc/bridge/VaultChatBridge.java | 2 +- .../{ChannelImpl.java => BukkitChannel.java} | 41 +-- .../github/ucchyocean/lc/channel/Channel.java | 34 +- .../ucchyocean/lc/channel/ChannelManager.java | 4 +- .../ucchyocean/lc/channel/ChannelPlayer.java | 17 +- .../lc/channel/ChannelPlayerBlock.java | 2 +- .../lc/channel/ChannelPlayerConsole.java | 2 +- .../lc/channel/ChannelPlayerName.java | 2 +- .../lc/channel/ChannelPlayerUUID.java | 2 +- .../DelayedJapanizeChannelChatTask.java | 2 +- .../channel/DelayedJapanizeConvertTask.java | 4 +- .../DelayedJapanizeNormalChatTask.java | 2 +- .../DelayedJapanizeRecipientChatTask.java | 2 +- .../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/DataMaps.java | 2 +- .../ucchyocean/lc/command/DenyCommand.java | 2 +- .../ucchyocean/lc/command/DicCommand.java | 2 +- .../lc/command/DictionaryCommand.java | 2 +- .../ucchyocean/lc/command/FormatCommand.java | 2 +- .../ucchyocean/lc/command/HelpCommand.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 +- .../ucchyocean/lc/command/LogCommand.java | 2 +- .../lc/command/LunaChatCommand.java | 2 +- .../lc/command/LunaChatJapanizeCommand.java | 2 +- .../lc/command/LunaChatMessageCommand.java | 2 +- .../lc/command/LunaChatReplyCommand.java | 2 +- .../ucchyocean/lc/command/ModCommand.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/ReloadCommand.java | 2 +- .../ucchyocean/lc/command/RemoveCommand.java | 2 +- .../ucchyocean/lc/command/SubCommandAbst.java | 2 +- .../lc/command/TemplateCommand.java | 2 +- .../ucchyocean/lc/command/UnhideCommand.java | 2 +- .../ucchyocean/lc/command/UnmuteCommand.java | 2 +- .../event/LunaChatBaseCancellableEvent.java | 2 +- .../lc/event/LunaChatBaseEvent.java | 2 +- .../lc/event/LunaChatChannelChatEvent.java | 2 +- .../lc/event/LunaChatChannelCreateEvent.java | 2 +- .../LunaChatChannelMemberChangedEvent.java | 2 +- .../lc/event/LunaChatChannelMessageEvent.java | 2 +- .../LunaChatChannelOptionChangedEvent.java | 2 +- .../lc/event/LunaChatChannelRemoveEvent.java | 2 +- .../lc/event/LunaChatPostJapanizeEvent.java | 2 +- .../lc/event/LunaChatPreChatEvent.java | 2 +- .../ucchyocean/lc/japanize/IMEConverter.java | 9 +- .../ucchyocean/lc/japanize/KanaConverter.java | 2 +- .../lc/japanize/YukiKanaConverter.java | 10 +- src/main/resources/config_ja.yml | 2 +- src/main/resources/messages.yml | 2 +- src/main/resources/plugin.yml | 2 +- .../com/github/ucchyocean/lc/UtilityTest.java | 30 ++ 78 files changed, 215 insertions(+), 606 deletions(-) delete mode 100644 src/main/java/com/github/ucchyocean/lc/bridge/HawkEyeBridge.java delete mode 100644 src/main/java/com/github/ucchyocean/lc/bridge/PrismBridge.java rename src/main/java/com/github/ucchyocean/lc/channel/{ChannelImpl.java => BukkitChannel.java} (93%) create mode 100644 src/test/java/com/github/ucchyocean/lc/UtilityTest.java diff --git a/pom.xml b/pom.xml index ee76480..9e8749f 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 com.github.ucchyocean LunaChat - 2.8.15 + 3.0.0 A powerfull chat channel plugin with IME (Kana-Kanji conversion) support @@ -15,6 +15,8 @@ UTF-8 + 1.8 + 8 @@ -40,8 +42,8 @@ maven-compiler-plugin 3.8.1 - 1.8 - 1.8 + ${java.version} + ${java.version} @@ -49,34 +51,18 @@ maven-javadoc-plugin 3.1.0 - 1.8 + ${java.version} UTF-8 UTF-8 UTF-8 public true - https://docs.oracle.com/javase/jp/8/docs/api/ + https://docs.oracle.com/javase/jp/${java.version.short}/docs/api/ https://hub.spigotmc.org/javadocs/bukkit/ - - org.apache.maven.plugins - maven-assembly-plugin - 3.1.1 - - ${project.artifactId}-${project.version} - - distribution.xml - - - - - deploy - - - org.apache.maven.plugins maven-shade-plugin @@ -100,6 +86,10 @@ org.apache.commons.lang3 com.github.ucchyocean.lc.lib.org.apache.commons.lang3 + + org.jetbrains + com.github.ucchyocean.lc.lib.org.jetbrains + @@ -109,11 +99,6 @@ - - spigot-repo - Spigot Maven Repository - https://hub.spigotmc.org/nexus/content/groups/public/ - jitpack.io Vault Repository @@ -127,12 +112,12 @@ onarandombox-repo Multiverse repository - http://repo.onarandombox.com/content/groups/public/ + http://repo.onarandombox.com/content/repositories/multiverse/ md5-repo MD5 repository - https://repo.md-5.net/content/repositories/releases/ + https://hub.spigotmc.org/nexus/content/repositories/snapshots/ @@ -143,6 +128,12 @@ 1.15.2-R0.1-SNAPSHOT provided + + net.md-5 + bungeecord-api + 1.15-SNAPSHOT + provided + com.github.MilkBowl VaultAPI @@ -157,24 +148,10 @@ true provided - - uk.co.oliwali - HawkEye - 1.7.2 - true - system - ${project.basedir}/lib/HawkEye.jar - - - com.dthielke.herochat - Herochat - - - com.onarandombox.multiversecore Multiverse-Core - 3.0.0 + 4.1.0 true provided @@ -185,14 +162,6 @@ true provided - - me.botsko - prism - 2.0.6 - true - system - ${project.basedir}/lib/prism-2.0.6.jar - com.google.code.gson gson @@ -203,5 +172,16 @@ commons-lang3 3.9 + + org.jetbrains + annotations + 16.0.2 + + + junit + junit + 4.12 + test + diff --git a/src/main/java/com/github/ucchyocean/lc/ExpireCheckTask.java b/src/main/java/com/github/ucchyocean/lc/ExpireCheckTask.java index 24b195a..e496d90 100644 --- a/src/main/java/com/github/ucchyocean/lc/ExpireCheckTask.java +++ b/src/main/java/com/github/ucchyocean/lc/ExpireCheckTask.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2014 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc; diff --git a/src/main/java/com/github/ucchyocean/lc/LunaChat.java b/src/main/java/com/github/ucchyocean/lc/LunaChat.java index f207fa5..98b9e27 100644 --- a/src/main/java/com/github/ucchyocean/lc/LunaChat.java +++ b/src/main/java/com/github/ucchyocean/lc/LunaChat.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc; @@ -15,10 +15,8 @@ import org.bukkit.plugin.Plugin; import org.bukkit.plugin.java.JavaPlugin; import com.github.ucchyocean.lc.bridge.DynmapBridge; -import com.github.ucchyocean.lc.bridge.HawkEyeBridge; import com.github.ucchyocean.lc.bridge.McMMOBridge; import com.github.ucchyocean.lc.bridge.MultiverseCoreBridge; -import com.github.ucchyocean.lc.bridge.PrismBridge; import com.github.ucchyocean.lc.bridge.VaultChatBridge; import com.github.ucchyocean.lc.channel.ChannelManager; import com.github.ucchyocean.lc.command.LunaChatCommand; @@ -39,9 +37,7 @@ public class LunaChat extends JavaPlugin { private VaultChatBridge vaultchat; private DynmapBridge dynmap; - private HawkEyeBridge hawkeye; private MultiverseCoreBridge multiverse; - private PrismBridge prism; private ExpireCheckTask expireCheckerTask; private LunaChatLogger normalChatLogger; @@ -83,12 +79,6 @@ public class LunaChat extends JavaPlugin { } } - // HawkEye のロード - temp = getServer().getPluginManager().getPlugin("HawkEye"); - if ( temp != null ) { - hawkeye = HawkEyeBridge.load(temp); - } - // MultiverseCore のロード temp = getServer().getPluginManager().getPlugin("Multiverse-Core"); if ( temp != null ) { @@ -100,11 +90,6 @@ public class LunaChat extends JavaPlugin { getServer().getPluginManager().registerEvents(new McMMOBridge(), this); } - // Prismのロード - if ( getServer().getPluginManager().isPluginEnabled("Prism") ) { - prism = PrismBridge.load(); - } - // リスナーの登録 getServer().getPluginManager().registerEvents(new PlayerListener(), this); @@ -222,14 +207,6 @@ public class LunaChat extends JavaPlugin { return dynmap; } - /** - * HawkEye連携クラスを返す - * @return HawkEyeBridge - */ - public HawkEyeBridge getHawkEye() { - return hawkeye; - } - /** * MultiverseCore連携クラスを返す * @return MultiverseCoreBridge @@ -238,14 +215,6 @@ public class LunaChat extends JavaPlugin { return multiverse; } - /** - * Prism連携クラスを返す - * @return MultiverseCoreBridge - */ - public PrismBridge getPrism() { - return prism; - } - /** * 通常チャット用のロガーを返す * @return normalChatLogger diff --git a/src/main/java/com/github/ucchyocean/lc/LunaChatAPI.java b/src/main/java/com/github/ucchyocean/lc/LunaChatAPI.java index 3ee967a..d327f8f 100644 --- a/src/main/java/com/github/ucchyocean/lc/LunaChatAPI.java +++ b/src/main/java/com/github/ucchyocean/lc/LunaChatAPI.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc; diff --git a/src/main/java/com/github/ucchyocean/lc/LunaChatConfig.java b/src/main/java/com/github/ucchyocean/lc/LunaChatConfig.java index 53fff15..08a74dd 100644 --- a/src/main/java/com/github/ucchyocean/lc/LunaChatConfig.java +++ b/src/main/java/com/github/ucchyocean/lc/LunaChatConfig.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc; diff --git a/src/main/java/com/github/ucchyocean/lc/LunaChatLogger.java b/src/main/java/com/github/ucchyocean/lc/LunaChatLogger.java index f6e6a7f..339d404 100644 --- a/src/main/java/com/github/ucchyocean/lc/LunaChatLogger.java +++ b/src/main/java/com/github/ucchyocean/lc/LunaChatLogger.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc; diff --git a/src/main/java/com/github/ucchyocean/lc/NGWordAction.java b/src/main/java/com/github/ucchyocean/lc/NGWordAction.java index 4de7365..3139b31 100644 --- a/src/main/java/com/github/ucchyocean/lc/NGWordAction.java +++ b/src/main/java/com/github/ucchyocean/lc/NGWordAction.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc; diff --git a/src/main/java/com/github/ucchyocean/lc/PlayerListener.java b/src/main/java/com/github/ucchyocean/lc/PlayerListener.java index 1ca94c0..2b6a2ad 100644 --- a/src/main/java/com/github/ucchyocean/lc/PlayerListener.java +++ b/src/main/java/com/github/ucchyocean/lc/PlayerListener.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc; diff --git a/src/main/java/com/github/ucchyocean/lc/Resources.java b/src/main/java/com/github/ucchyocean/lc/Resources.java index cc9dd60..9a21583 100644 --- a/src/main/java/com/github/ucchyocean/lc/Resources.java +++ b/src/main/java/com/github/ucchyocean/lc/Resources.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc; diff --git a/src/main/java/com/github/ucchyocean/lc/Utility.java b/src/main/java/com/github/ucchyocean/lc/Utility.java index 8c13403..0ac9daa 100644 --- a/src/main/java/com/github/ucchyocean/lc/Utility.java +++ b/src/main/java/com/github/ucchyocean/lc/Utility.java @@ -1,38 +1,31 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; -import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStreamWriter; -import java.lang.reflect.InvocationTargetException; -import java.util.ArrayList; -import java.util.Collection; import java.util.jar.JarFile; +import java.util.regex.Pattern; import java.util.zip.ZipEntry; -import org.bukkit.Bukkit; -import org.bukkit.ChatColor; -import org.bukkit.OfflinePlayer; -import org.bukkit.entity.Player; - /** * ユーティリティクラス * @author ucchy */ public class Utility { - private static Boolean isCB178orLaterCache; - private static Boolean isCB19orLaterCache; + public static final char COLOR_CHAR = '\u00A7'; + private static final Pattern STRIP_COLOR_PATTERN = + Pattern.compile("(?i)" + String.valueOf(COLOR_CHAR) + "[0-9A-FK-OR]"); /** * jarファイルの中に格納されているファイルを、jarファイルの外にコピーするメソッド @@ -44,91 +37,39 @@ public class Utility { public static void copyFileFromJar( File jarFile, File targetFile, String sourceFilePath, boolean isBinary) { - JarFile jar = null; - InputStream is = null; - FileOutputStream fos = null; - BufferedReader reader = null; - BufferedWriter writer = null; - File parent = targetFile.getParentFile(); if (!parent.exists()) { parent.mkdirs(); } - try { - jar = new JarFile(jarFile); + try ( JarFile jar = new JarFile(jarFile) ) { ZipEntry zipEntry = jar.getEntry(sourceFilePath); - is = jar.getInputStream(zipEntry); + InputStream is = jar.getInputStream(zipEntry); - fos = new FileOutputStream(targetFile); + try ( FileOutputStream fos = new FileOutputStream(targetFile) ) { - if (isBinary) { - byte[] buf = new byte[8192]; - int len; - while ((len = is.read(buf)) != -1) { - fos.write(buf, 0, len); - } + if (isBinary) { + byte[] buf = new byte[8192]; + int len; + while ((len = is.read(buf)) != -1) { + fos.write(buf, 0, len); + } - } else { - reader = new BufferedReader(new InputStreamReader(is, "UTF-8")); - - // CB190以降は、書き出すファイルエンコードにUTF-8を強制する。see issue #141. - if ( isCB19orLater() ) { - writer = new BufferedWriter(new OutputStreamWriter(fos, "UTF-8")); } else { - writer = new BufferedWriter(new OutputStreamWriter(fos)); - } - String line; - while ((line = reader.readLine()) != null) { - writer.write(line); - writer.newLine(); - } + try ( BufferedReader reader = new BufferedReader(new InputStreamReader(is, "UTF-8")); + BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(fos, "UTF-8")) ) { + String line; + while ((line = reader.readLine()) != null) { + writer.write(line); + writer.newLine(); + } + } + } } - - } catch (FileNotFoundException e) { - e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); - } finally { - if (jar != null) { - try { - jar.close(); - } catch (IOException e) { - // do nothing. - } - } - if (writer != null) { - try { - writer.flush(); - writer.close(); - } catch (IOException e) { - // do nothing. - } - } - if (reader != null) { - try { - reader.close(); - } catch (IOException e) { - // do nothing. - } - } - if (fos != null) { - try { - fos.flush(); - fos.close(); - } catch (IOException e) { - // do nothing. - } - } - if (is != null) { - try { - is.close(); - } catch (IOException e) { - // do nothing. - } - } } } @@ -138,9 +79,15 @@ public class Utility { * @return 置き換え後の文字列 */ public static String replaceColorCode(String source) { - if (source == null) - return null; - return ChatColor.translateAlternateColorCodes('&', source); + if (source == null) return null; + char[] b = source.toCharArray(); + for (int i = 0; i < b.length - 1; i++) { + if (b[i] == '&' && "0123456789AaBbCcDdEeFfKkLlMmNnOoRr".indexOf(b[i + 1]) > -1) { + b[i] = COLOR_CHAR; + b[i + 1] = Character.toLowerCase(b[i + 1]); + } + } + return new String(b); } /** @@ -149,9 +96,18 @@ public class Utility { * @return 置き換え後の文字列 */ public static String stripColor(String source) { - if (source == null) - return null; - return ChatColor.stripColor(source); + if (source == null) return null; + return STRIP_COLOR_PATTERN.matcher(source).replaceAll(""); + } + + /** + * カラーコード(§a)かどうかを判断する + * @param code カラーコード + * @return カラーコードかどうか + */ + public static boolean isColorCode(String code) { + if (code == null) return false; + return code.matches(COLOR_CHAR + "[0-9a-fA-F]"); } /** @@ -168,183 +124,12 @@ public class Utility { } /** - * カラー表記の文字列を、ChatColorクラスに変換する - * @param color カラー表記の文字列 - * @return ChatColorクラス + * 指定された名前のプレイヤーが接続したことがあるかどうかを検索する + * @param name プレイヤー名 + * @return 接続したことがあるかどうか */ - public static ChatColor changeToChatColor(String color) { - - if (isValidColor(color)) { - return ChatColor.valueOf(color.toUpperCase()); - } - return ChatColor.WHITE; - } - - /** - * カラー表記の文字列を、カラーコードに変換する - * @param color カラー表記の文字列 - * @return カラーコード - */ - public static String changeToColorCode(String color) { - - return "&" + changeToChatColor(color).getChar(); - } - - /** - * ChatColorで指定可能な色かどうかを判断する - * @param color カラー表記の文字列 - * @return 指定可能かどうか - */ - public static boolean isValidColor(String color) { - - for (ChatColor c : ChatColor.values()) { - if (c.name().equals(color.toUpperCase())) { - return true; - } - } + public static boolean existsOfflinePlayer(String name) { + // TODO 未実装 return false; } - - /** - * カラーコードかどうかを判断する - * @param color カラー表記の文字列 - * @return 指定可能かどうか - */ - public static boolean isValidColorCode(String code) { - - if (code == null) { - return false; - } - return code.matches("&[0-9a-f]"); - } - - /** - * 現在動作中のCraftBukkitが、v1.7.8 以上かどうかを確認する - * @return v1.7.8以上ならtrue、そうでないならfalse - */ - public static boolean isCB178orLater() { - if ( isCB178orLaterCache == null ) { - isCB178orLaterCache = isUpperVersion(Bukkit.getBukkitVersion(), "1.7.8"); - } - return isCB178orLaterCache; - } - - /** - * 現在動作中のCraftBukkitが、v1.9 以上かどうかを確認する - * @return v1.9以上ならtrue、そうでないならfalse - */ - public static boolean isCB19orLater() { - if ( isCB19orLaterCache == null ) { - isCB19orLaterCache = isUpperVersion(Bukkit.getBukkitVersion(), "1.9"); - } - return isCB19orLaterCache; - } - - /** - * 指定されたバージョンが、基準より新しいバージョンかどうかを確認する - * @param version 確認するバージョン - * @param border 基準のバージョン - * @return 基準より確認対象の方が新しいバージョンかどうか
- * ただし、無効なバージョン番号(数値でないなど)が指定された場合はfalseに、 - * 2つのバージョンが完全一致した場合はtrueになる。 - */ - public static boolean isUpperVersion(String version, String border) { - - int hyphen = version.indexOf("-"); - if ( hyphen > 0 ) { - version = version.substring(0, hyphen); - } - - String[] versionArray = version.split("\\."); - int[] versionNumbers = new int[versionArray.length]; - for ( int i=0; i index) && (borderNumbers.length > index) ) { - if ( versionNumbers[index] > borderNumbers[index] ) { - return true; - } else if ( versionNumbers[index] < borderNumbers[index] ) { - return false; - } - index++; - } - if ( borderNumbers.length == index ) { - return true; - } else { - return false; - } - } - - /** - * 現在接続中のプレイヤーを全て取得する - * @return 接続中の全てのプレイヤー - */ - @SuppressWarnings("unchecked") - public static ArrayList getOnlinePlayers() { - // CB179以前と、CB1710以降で戻り値が異なるため、 - // リフレクションを使って互換性を(無理やり)保つ。 - try { - if (Bukkit.class.getMethod("getOnlinePlayers", new Class[0]).getReturnType() == Collection.class) { - Collection temp = - ((Collection) Bukkit.class.getMethod("getOnlinePlayers", new Class[0]) - .invoke(null, new Object[0])); - return new ArrayList((Collection) temp); - } else { - Player[] temp = - ((Player[]) Bukkit.class.getMethod("getOnlinePlayers", new Class[0]) - .invoke(null, new Object[0])); - ArrayList players = new ArrayList(); - for (Player t : temp) { - players.add(t); - } - return players; - } - } catch (NoSuchMethodException ex) {} // never happen - catch (InvocationTargetException ex) {} // never happen - catch (IllegalAccessException ex) {} // never happen - return new ArrayList(); - } - - /** - * 現在のサーバー接続人数を返します。 - * @return サーバー接続人数 - */ - public static int getOnlinePlayersCount() { - return getOnlinePlayers().size(); - } - - /** - * 指定された名前のオフラインプレイヤーを取得する - * @param name プレイヤー名 - * @return オフラインプレイヤー - */ - @SuppressWarnings("deprecation") - public static OfflinePlayer getOfflinePlayer(String name) { - if (name == null) return null; - OfflinePlayer player = Bukkit.getOfflinePlayer(name); - if (player == null || (!player.hasPlayedBefore() && !player.isOnline())) - return null; - return player; - } - - /** - * 指定された名前のプレイヤーを取得する - * @param name プレイヤー名 - * @return プレイヤー - */ - public static Player getPlayerExact(String name) { - return Bukkit.getPlayer(stripColor(name)); - } } 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 7cf20c6..c00c889 100644 --- a/src/main/java/com/github/ucchyocean/lc/bridge/DynmapBridge.java +++ b/src/main/java/com/github/ucchyocean/lc/bridge/DynmapBridge.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.bridge; diff --git a/src/main/java/com/github/ucchyocean/lc/bridge/HawkEyeBridge.java b/src/main/java/com/github/ucchyocean/lc/bridge/HawkEyeBridge.java deleted file mode 100644 index 83f5743..0000000 --- a/src/main/java/com/github/ucchyocean/lc/bridge/HawkEyeBridge.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * @author ucchy - * @license LGPLv3 - * @copyright Copyright ucchy 2015 - */ -package com.github.ucchyocean.lc.bridge; - -import org.bukkit.Location; -import org.bukkit.plugin.Plugin; -import org.bukkit.scheduler.BukkitRunnable; - -import com.github.ucchyocean.lc.LunaChat; -import com.github.ucchyocean.lc.Utility; - -import uk.co.oliwali.HawkEye.DataType; -import uk.co.oliwali.HawkEye.entry.DataEntry; -import uk.co.oliwali.HawkEye.util.HawkEyeAPI; - -/** - * HawkEye連携クラス - * @author ucchy - */ -public class HawkEyeBridge { - - private boolean isV162orLater; - - /** コンストラクタは使用不可 */ - private HawkEyeBridge() { - } - - /** - * HawkEye Reloaded をロードする - * @param plugin HawkEye Reloaded のプラグインインスタンス - * @return ロードしたブリッジのインスタンス - */ - public static HawkEyeBridge load(Plugin plugin) { - - String version = plugin.getDescription().getVersion(); - HawkEyeBridge instance = new HawkEyeBridge(); - instance.isV162orLater = Utility.isUpperVersion(version, "1.6.2"); - return instance; - } - - /** - * HawkEyeにCHATログを書き出す - * @param player プレイヤー名 - * @param location 場所 - * @param data データ - */ - @SuppressWarnings("deprecation") - public void writeLog(String player, Location location, String data) { - final DataEntry entry = new DataEntry(player, DataType.CHAT, location, data); - new BukkitRunnable() { - public void run() { - if ( isV162orLater ) { - HawkEyeAPI.addEntry(entry); - } else { - HawkEyeAPI.addEntry(LunaChat.getInstance(), entry); - } - } - }.runTaskAsynchronously(LunaChat.getInstance()); - } -} diff --git a/src/main/java/com/github/ucchyocean/lc/bridge/McMMOBridge.java b/src/main/java/com/github/ucchyocean/lc/bridge/McMMOBridge.java index 79c39d2..f9ddc86 100644 --- a/src/main/java/com/github/ucchyocean/lc/bridge/McMMOBridge.java +++ b/src/main/java/com/github/ucchyocean/lc/bridge/McMMOBridge.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2016 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.bridge; diff --git a/src/main/java/com/github/ucchyocean/lc/bridge/MultiverseCoreBridge.java b/src/main/java/com/github/ucchyocean/lc/bridge/MultiverseCoreBridge.java index f620ee9..7a2f9cc 100644 --- a/src/main/java/com/github/ucchyocean/lc/bridge/MultiverseCoreBridge.java +++ b/src/main/java/com/github/ucchyocean/lc/bridge/MultiverseCoreBridge.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2015 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.bridge; diff --git a/src/main/java/com/github/ucchyocean/lc/bridge/PrismBridge.java b/src/main/java/com/github/ucchyocean/lc/bridge/PrismBridge.java deleted file mode 100644 index ec65840..0000000 --- a/src/main/java/com/github/ucchyocean/lc/bridge/PrismBridge.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * @author ucchy - * @license LGPLv3 - * @copyright Copyright ucchy 2016 - */ -package com.github.ucchyocean.lc.bridge; - -import org.bukkit.entity.Player; -import org.bukkit.scheduler.BukkitRunnable; - -import com.github.ucchyocean.lc.LunaChat; - -import me.botsko.prism.Prism; -import me.botsko.prism.actionlibs.ActionFactory; -import me.botsko.prism.actionlibs.RecordingQueue; - -/** - * Prism連携クラス - * @author ucchy - */ -public class PrismBridge { - - /** コンストラクタは使用不可 */ - private PrismBridge() { - } - - /** - * Prism をロードする - * @return ロードしたブリッジのインスタンス - */ - public static PrismBridge load() { - return new PrismBridge(); - } - - /** - * PrismにCHATログを書き出す - * @param player プレイヤー - * @param data データ - */ - public void writeLog(final Player player, final String data) { - if ( !Prism.getIgnore().event( "player-chat", player ) ) { - return; - } - new BukkitRunnable() { - public void run() { - RecordingQueue.addToQueue( ActionFactory.createPlayer( - "player-chat", player, data ) ); - } - }.runTaskAsynchronously(LunaChat.getInstance()); - } -} diff --git a/src/main/java/com/github/ucchyocean/lc/bridge/VaultChatBridge.java b/src/main/java/com/github/ucchyocean/lc/bridge/VaultChatBridge.java index 67e3260..5937c6d 100644 --- a/src/main/java/com/github/ucchyocean/lc/bridge/VaultChatBridge.java +++ b/src/main/java/com/github/ucchyocean/lc/bridge/VaultChatBridge.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.bridge; diff --git a/src/main/java/com/github/ucchyocean/lc/channel/ChannelImpl.java b/src/main/java/com/github/ucchyocean/lc/channel/BukkitChannel.java similarity index 93% rename from src/main/java/com/github/ucchyocean/lc/channel/ChannelImpl.java rename to src/main/java/com/github/ucchyocean/lc/channel/BukkitChannel.java index 530615a..0343628 100644 --- a/src/main/java/com/github/ucchyocean/lc/channel/ChannelImpl.java +++ b/src/main/java/com/github/ucchyocean/lc/channel/BukkitChannel.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2014 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.channel; @@ -33,7 +33,7 @@ import com.github.ucchyocean.lc.japanize.JapanizeType; * チャンネルの実装クラス * @author ucchy */ -public class ChannelImpl extends Channel { +public class BukkitChannel extends Channel { private static final String PERMISSION_SPEAK_PREFIX = "lunachat.speak"; @@ -79,7 +79,7 @@ public class ChannelImpl extends Channel { * コンストラクタ * @param name チャンネル名 */ - protected ChannelImpl(String name) { + protected BukkitChannel(String name) { super(name); @@ -335,7 +335,7 @@ public class ChannelImpl extends Channel { // 範囲チャット Location origin = player.getPlayer().getLocation(); - for ( Player p : Utility.getOnlinePlayers() ) { + for ( Player p : Bukkit.getOnlinePlayers() ) { ChannelPlayer cp = ChannelPlayer.getChannelPlayer(p); if ( p.getWorld().equals(w) && origin.distance(p.getLocation()) <= getChatRange() && @@ -347,7 +347,7 @@ public class ChannelImpl extends Channel { } else { // ワールドチャット - for ( Player p : Utility.getOnlinePlayers() ) { + for ( Player p : Bukkit.getOnlinePlayers() ) { ChannelPlayer cp = ChannelPlayer.getChannelPlayer(p); if ( p.getWorld().equals(w) && !getHided().contains(cp) ) { recipients.add(ChannelPlayer.getChannelPlayer(p)); @@ -366,7 +366,7 @@ public class ChannelImpl extends Channel { } else { // 通常ブロードキャスト(全員へ送信) - for ( Player p : Utility.getOnlinePlayers() ) { + for ( Player p : Bukkit.getOnlinePlayers() ) { ChannelPlayer cp = ChannelPlayer.getChannelPlayer(p); if ( !getHided().contains(cp) ) { recipients.add(cp); @@ -388,7 +388,7 @@ public class ChannelImpl extends Channel { // パーミッション lunachat-admin.listen-all-channels を持つプレイヤーを // 受信者に加える。 if ( config.isOpListenAllChannel() ) { - for ( Player p : Utility.getOnlinePlayers() ) { + for ( Player p : Bukkit.getOnlinePlayers() ) { ChannelPlayer cp = ChannelPlayer.getChannelPlayer(p); if ( cp.hasPermission("lunachat-admin.listen-all-channels") && !recipients.contains(cp) ) { @@ -757,19 +757,20 @@ public class ChannelImpl extends Channel { logger.log(message, name); } - // Hawkeye Reloaded のチャットログへ記録 - if ( config.isLoggingChatToHawkEye() && LunaChat.getInstance().getHawkEye() != null - && player != null && player.getLocation() != null ) { - LunaChat.getInstance().getHawkEye().writeLog(name, player.getLocation(), - "channel(" + getName() + ")-" + Utility.stripColor(message)); - } - - // Prism のチャットログへ記録 - if ( config.isLoggingChatToPrism() && LunaChat.getInstance().getPrism() != null - && player != null && player.getPlayer() != null ) { - LunaChat.getInstance().getPrism().writeLog(player.getPlayer(), - "channel(" + getName() + ")-" + Utility.stripColor(message)); - } + // TODO ログ記録プラグイン連携を検討する +// // Hawkeye Reloaded のチャットログへ記録 +// if ( config.isLoggingChatToHawkEye() && LunaChat.getInstance().getHawkEye() != null +// && player != null && player.getLocation() != null ) { +// LunaChat.getInstance().getHawkEye().writeLog(name, player.getLocation(), +// "channel(" + getName() + ")-" + Utility.stripColor(message)); +// } +// +// // Prism のチャットログへ記録 +// if ( config.isLoggingChatToPrism() && LunaChat.getInstance().getPrism() != null +// && player != null && player.getPlayer() != null ) { +// LunaChat.getInstance().getPrism().writeLog(player.getPlayer(), +// "channel(" + getName() + ")-" + Utility.stripColor(message)); +// } } /** diff --git a/src/main/java/com/github/ucchyocean/lc/channel/Channel.java b/src/main/java/com/github/ucchyocean/lc/channel/Channel.java index aa92a12..9b7a330 100644 --- a/src/main/java/com/github/ucchyocean/lc/channel/Channel.java +++ b/src/main/java/com/github/ucchyocean/lc/channel/Channel.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.channel; @@ -471,7 +471,7 @@ public abstract class Channel implements ConfigurationSerializable { return null; } - Channel channel = new ChannelImpl(name); + Channel channel = new BukkitChannel(name); channel.alias = castWithDefault(data.get(KEY_ALIAS), ""); channel.description = castWithDefault(data.get(KEY_DESC), ""); channel.format = castWithDefault(data.get(KEY_FORMAT), channel.format); @@ -605,30 +605,6 @@ public abstract class Channel implements ConfigurationSerializable { return (Map)obj; } - /** - * チャンネルの設定ファイルが、UUID化のために一旦保存が必要かどうかを返す - * @param data チャンネルの実コンフィグデータ - */ - private static boolean isNeedToSaveForUUIDUpdate(Map data) { - - if ( !Utility.isCB178orLater() ) { - return false; - } - - List members = castToStringList(data.get(KEY_MEMBERS)); - if ( members.size() == 0 ) { - return false; - } - - for ( String member : members ) { - if ( member.startsWith("$") ) { - return false; - } - } - - return true; - } - /** * チャンネルの別名を返す * @return チャンネルの別名 @@ -974,12 +950,6 @@ public abstract class Channel implements ConfigurationSerializable { data.put(key, config.get(key)); } Channel channel = deserialize(data); - - // 自動アップデート - if ( isNeedToSaveForUUIDUpdate(data) ) { - channel.save(); - } - result.put(channel.name.toLowerCase(), channel); } diff --git a/src/main/java/com/github/ucchyocean/lc/channel/ChannelManager.java b/src/main/java/com/github/ucchyocean/lc/channel/ChannelManager.java index ad7b0b7..0f8e72e 100644 --- a/src/main/java/com/github/ucchyocean/lc/channel/ChannelManager.java +++ b/src/main/java/com/github/ucchyocean/lc/channel/ChannelManager.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.channel; @@ -447,7 +447,7 @@ public class ChannelManager implements LunaChatAPI { } String name = event.getChannelName(); - Channel channel = new ChannelImpl(name); + Channel channel = new BukkitChannel(name); channels.put(name.toLowerCase(), channel); channel.save(); return channel; diff --git a/src/main/java/com/github/ucchyocean/lc/channel/ChannelPlayer.java b/src/main/java/com/github/ucchyocean/lc/channel/ChannelPlayer.java index 4178041..0b95767 100644 --- a/src/main/java/com/github/ucchyocean/lc/channel/ChannelPlayer.java +++ b/src/main/java/com/github/ucchyocean/lc/channel/ChannelPlayer.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2014 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.channel; @@ -11,8 +11,6 @@ import org.bukkit.command.CommandSender; import org.bukkit.command.ConsoleCommandSender; import org.bukkit.entity.Player; -import com.github.ucchyocean.lc.Utility; - /** * プレイヤーの抽象クラス * @author ucchy @@ -136,14 +134,7 @@ public abstract class ChannelPlayer implements Comparable { String id = nameOrUuid.substring(1); return new ChannelPlayerUUID(id); } - if ( Utility.isCB178orLater() ) { - ChannelPlayer player = - ChannelPlayerUUID.getChannelPlayerUUIDFromName(nameOrUuid); - if ( player != null ) { - return player; - } - } - return new ChannelPlayerName(nameOrUuid); + return ChannelPlayerUUID.getChannelPlayerUUIDFromName(nameOrUuid); } /** @@ -158,9 +149,7 @@ public abstract class ChannelPlayer implements Comparable { return new ChannelPlayerBlock((BlockCommandSender)sender); } else if ( sender instanceof ConsoleCommandSender ) { return new ChannelPlayerConsole((ConsoleCommandSender)sender); - } else if ( Utility.isCB178orLater() ) { - return ChannelPlayerUUID.getChannelPlayer(sender); } - return new ChannelPlayerName(sender.getName()); + return ChannelPlayerUUID.getChannelPlayer(sender); } } diff --git a/src/main/java/com/github/ucchyocean/lc/channel/ChannelPlayerBlock.java b/src/main/java/com/github/ucchyocean/lc/channel/ChannelPlayerBlock.java index ee7960b..efb197b 100644 --- a/src/main/java/com/github/ucchyocean/lc/channel/ChannelPlayerBlock.java +++ b/src/main/java/com/github/ucchyocean/lc/channel/ChannelPlayerBlock.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2014 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.channel; diff --git a/src/main/java/com/github/ucchyocean/lc/channel/ChannelPlayerConsole.java b/src/main/java/com/github/ucchyocean/lc/channel/ChannelPlayerConsole.java index 0af73de..ed73c7a 100644 --- a/src/main/java/com/github/ucchyocean/lc/channel/ChannelPlayerConsole.java +++ b/src/main/java/com/github/ucchyocean/lc/channel/ChannelPlayerConsole.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2014 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.channel; diff --git a/src/main/java/com/github/ucchyocean/lc/channel/ChannelPlayerName.java b/src/main/java/com/github/ucchyocean/lc/channel/ChannelPlayerName.java index 2d1dcd7..fa5e458 100644 --- a/src/main/java/com/github/ucchyocean/lc/channel/ChannelPlayerName.java +++ b/src/main/java/com/github/ucchyocean/lc/channel/ChannelPlayerName.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2014 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.channel; diff --git a/src/main/java/com/github/ucchyocean/lc/channel/ChannelPlayerUUID.java b/src/main/java/com/github/ucchyocean/lc/channel/ChannelPlayerUUID.java index 4cf014d..94d553a 100644 --- a/src/main/java/com/github/ucchyocean/lc/channel/ChannelPlayerUUID.java +++ b/src/main/java/com/github/ucchyocean/lc/channel/ChannelPlayerUUID.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2014 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.channel; diff --git a/src/main/java/com/github/ucchyocean/lc/channel/DelayedJapanizeChannelChatTask.java b/src/main/java/com/github/ucchyocean/lc/channel/DelayedJapanizeChannelChatTask.java index 0eb0c0a..ee98077 100644 --- a/src/main/java/com/github/ucchyocean/lc/channel/DelayedJapanizeChannelChatTask.java +++ b/src/main/java/com/github/ucchyocean/lc/channel/DelayedJapanizeChannelChatTask.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2015 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.channel; diff --git a/src/main/java/com/github/ucchyocean/lc/channel/DelayedJapanizeConvertTask.java b/src/main/java/com/github/ucchyocean/lc/channel/DelayedJapanizeConvertTask.java index 9d1c7f8..ed47226 100644 --- a/src/main/java/com/github/ucchyocean/lc/channel/DelayedJapanizeConvertTask.java +++ b/src/main/java/com/github/ucchyocean/lc/channel/DelayedJapanizeConvertTask.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.channel; @@ -68,7 +68,7 @@ public class DelayedJapanizeConvertTask extends BukkitRunnable { HashMap keywordMap = new HashMap(); ArrayList keywords = new ArrayList(); if ( LunaChat.getInstance().getLunaChatConfig().isJapanizeIgnorePlayerName() ) { - for ( Player player : Utility.getOnlinePlayers() ) { + for ( Player player : Bukkit.getOnlinePlayers() ) { keywords.add(player.getName()); } } diff --git a/src/main/java/com/github/ucchyocean/lc/channel/DelayedJapanizeNormalChatTask.java b/src/main/java/com/github/ucchyocean/lc/channel/DelayedJapanizeNormalChatTask.java index fe286a1..aa704ba 100644 --- a/src/main/java/com/github/ucchyocean/lc/channel/DelayedJapanizeNormalChatTask.java +++ b/src/main/java/com/github/ucchyocean/lc/channel/DelayedJapanizeNormalChatTask.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2015 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.channel; diff --git a/src/main/java/com/github/ucchyocean/lc/channel/DelayedJapanizeRecipientChatTask.java b/src/main/java/com/github/ucchyocean/lc/channel/DelayedJapanizeRecipientChatTask.java index 4723ee8..c66b19e 100644 --- a/src/main/java/com/github/ucchyocean/lc/channel/DelayedJapanizeRecipientChatTask.java +++ b/src/main/java/com/github/ucchyocean/lc/channel/DelayedJapanizeRecipientChatTask.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2016 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.channel; 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 7b62d02..085b503 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/AcceptCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/AcceptCommand.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.command; 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 c5b7ba0..609f2e8 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/BanCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/BanCommand.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.command; 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 126daed..b898f28 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/CheckCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/CheckCommand.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.command; 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 b4ee96a..b4fb441 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/CreateCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/CreateCommand.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.command; diff --git a/src/main/java/com/github/ucchyocean/lc/command/DataMaps.java b/src/main/java/com/github/ucchyocean/lc/command/DataMaps.java index 26ae4f0..a84d508 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/DataMaps.java +++ b/src/main/java/com/github/ucchyocean/lc/command/DataMaps.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.command; diff --git a/src/main/java/com/github/ucchyocean/lc/command/DenyCommand.java b/src/main/java/com/github/ucchyocean/lc/command/DenyCommand.java index 3839354..db8b61a 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/DenyCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/DenyCommand.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.command; diff --git a/src/main/java/com/github/ucchyocean/lc/command/DicCommand.java b/src/main/java/com/github/ucchyocean/lc/command/DicCommand.java index 6cdcbb1..9716953 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/DicCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/DicCommand.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2014 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.command; diff --git a/src/main/java/com/github/ucchyocean/lc/command/DictionaryCommand.java b/src/main/java/com/github/ucchyocean/lc/command/DictionaryCommand.java index 171caf9..2a4be4f 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/DictionaryCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/DictionaryCommand.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2014 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.command; 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 0ce10e6..2bfee23 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/FormatCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/FormatCommand.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.command; diff --git a/src/main/java/com/github/ucchyocean/lc/command/HelpCommand.java b/src/main/java/com/github/ucchyocean/lc/command/HelpCommand.java index 066633a..a717722 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/HelpCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/HelpCommand.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.command; 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 c7b47c8..97b7fd9 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/HideCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/HideCommand.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.command; 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 f98983c..b9a1eea 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/InfoCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/InfoCommand.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.command; 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 7794d75..7dbdd1e 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/InviteCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/InviteCommand.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.command; 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 eb5bcb3..f9367dc 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/JoinCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/JoinCommand.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.command; 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 7b1fa96..665efad 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/KickCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/KickCommand.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.command; 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 4c3e08d..ae06a3a 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/LeaveCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/LeaveCommand.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.command; 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 63bac69..455f051 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/ListCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/ListCommand.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.command; diff --git a/src/main/java/com/github/ucchyocean/lc/command/LogCommand.java b/src/main/java/com/github/ucchyocean/lc/command/LogCommand.java index 3ee7a84..65167b0 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/LogCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/LogCommand.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2014 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.command; 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 77f22fb..680f988 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/LunaChatCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/LunaChatCommand.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.command; diff --git a/src/main/java/com/github/ucchyocean/lc/command/LunaChatJapanizeCommand.java b/src/main/java/com/github/ucchyocean/lc/command/LunaChatJapanizeCommand.java index 0ded70b..ef630bc 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/LunaChatJapanizeCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/LunaChatJapanizeCommand.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.command; 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 3c2551a..c3116bb 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/LunaChatMessageCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/LunaChatMessageCommand.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.command; diff --git a/src/main/java/com/github/ucchyocean/lc/command/LunaChatReplyCommand.java b/src/main/java/com/github/ucchyocean/lc/command/LunaChatReplyCommand.java index 3e98f23..8c66db3 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/LunaChatReplyCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/LunaChatReplyCommand.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.command; diff --git a/src/main/java/com/github/ucchyocean/lc/command/ModCommand.java b/src/main/java/com/github/ucchyocean/lc/command/ModCommand.java index 94be886..42410f0 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/ModCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/ModCommand.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.command; 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 0f5ebd8..bc5aa9b 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/ModeratorCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/ModeratorCommand.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.command; 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 2f4cbf2..1bcc075 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/MuteCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/MuteCommand.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.command; 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 54b9121..6fc9555 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/OptionCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/OptionCommand.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.command; 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 e8b67d4..c428772 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/PardonCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/PardonCommand.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.command; diff --git a/src/main/java/com/github/ucchyocean/lc/command/ReloadCommand.java b/src/main/java/com/github/ucchyocean/lc/command/ReloadCommand.java index 3ff88eb..4a7b299 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/ReloadCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/ReloadCommand.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.command; 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 1967408..9087f78 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/RemoveCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/RemoveCommand.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.command; diff --git a/src/main/java/com/github/ucchyocean/lc/command/SubCommandAbst.java b/src/main/java/com/github/ucchyocean/lc/command/SubCommandAbst.java index d092668..214eb3e 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/SubCommandAbst.java +++ b/src/main/java/com/github/ucchyocean/lc/command/SubCommandAbst.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.command; diff --git a/src/main/java/com/github/ucchyocean/lc/command/TemplateCommand.java b/src/main/java/com/github/ucchyocean/lc/command/TemplateCommand.java index 428b185..9c3c8e4 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/TemplateCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/TemplateCommand.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.command; 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 4f88e39..0d9965f 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/UnhideCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/UnhideCommand.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.command; 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 d894dbc..e3b4467 100644 --- a/src/main/java/com/github/ucchyocean/lc/command/UnmuteCommand.java +++ b/src/main/java/com/github/ucchyocean/lc/command/UnmuteCommand.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.command; diff --git a/src/main/java/com/github/ucchyocean/lc/event/LunaChatBaseCancellableEvent.java b/src/main/java/com/github/ucchyocean/lc/event/LunaChatBaseCancellableEvent.java index 8b49c98..b47c70f 100644 --- a/src/main/java/com/github/ucchyocean/lc/event/LunaChatBaseCancellableEvent.java +++ b/src/main/java/com/github/ucchyocean/lc/event/LunaChatBaseCancellableEvent.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.event; diff --git a/src/main/java/com/github/ucchyocean/lc/event/LunaChatBaseEvent.java b/src/main/java/com/github/ucchyocean/lc/event/LunaChatBaseEvent.java index 1fda0a3..372fffd 100644 --- a/src/main/java/com/github/ucchyocean/lc/event/LunaChatBaseEvent.java +++ b/src/main/java/com/github/ucchyocean/lc/event/LunaChatBaseEvent.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.event; diff --git a/src/main/java/com/github/ucchyocean/lc/event/LunaChatChannelChatEvent.java b/src/main/java/com/github/ucchyocean/lc/event/LunaChatChannelChatEvent.java index a068e00..4648da4 100644 --- a/src/main/java/com/github/ucchyocean/lc/event/LunaChatChannelChatEvent.java +++ b/src/main/java/com/github/ucchyocean/lc/event/LunaChatChannelChatEvent.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.event; diff --git a/src/main/java/com/github/ucchyocean/lc/event/LunaChatChannelCreateEvent.java b/src/main/java/com/github/ucchyocean/lc/event/LunaChatChannelCreateEvent.java index 9c3bf17..d753959 100644 --- a/src/main/java/com/github/ucchyocean/lc/event/LunaChatChannelCreateEvent.java +++ b/src/main/java/com/github/ucchyocean/lc/event/LunaChatChannelCreateEvent.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.event; diff --git a/src/main/java/com/github/ucchyocean/lc/event/LunaChatChannelMemberChangedEvent.java b/src/main/java/com/github/ucchyocean/lc/event/LunaChatChannelMemberChangedEvent.java index df6d05d..e917452 100644 --- a/src/main/java/com/github/ucchyocean/lc/event/LunaChatChannelMemberChangedEvent.java +++ b/src/main/java/com/github/ucchyocean/lc/event/LunaChatChannelMemberChangedEvent.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.event; diff --git a/src/main/java/com/github/ucchyocean/lc/event/LunaChatChannelMessageEvent.java b/src/main/java/com/github/ucchyocean/lc/event/LunaChatChannelMessageEvent.java index 9ea2935..c261ce8 100644 --- a/src/main/java/com/github/ucchyocean/lc/event/LunaChatChannelMessageEvent.java +++ b/src/main/java/com/github/ucchyocean/lc/event/LunaChatChannelMessageEvent.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.event; diff --git a/src/main/java/com/github/ucchyocean/lc/event/LunaChatChannelOptionChangedEvent.java b/src/main/java/com/github/ucchyocean/lc/event/LunaChatChannelOptionChangedEvent.java index 4f8a0fe..5dd8b40 100644 --- a/src/main/java/com/github/ucchyocean/lc/event/LunaChatChannelOptionChangedEvent.java +++ b/src/main/java/com/github/ucchyocean/lc/event/LunaChatChannelOptionChangedEvent.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.event; diff --git a/src/main/java/com/github/ucchyocean/lc/event/LunaChatChannelRemoveEvent.java b/src/main/java/com/github/ucchyocean/lc/event/LunaChatChannelRemoveEvent.java index 9cee361..d473f5b 100644 --- a/src/main/java/com/github/ucchyocean/lc/event/LunaChatChannelRemoveEvent.java +++ b/src/main/java/com/github/ucchyocean/lc/event/LunaChatChannelRemoveEvent.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.event; diff --git a/src/main/java/com/github/ucchyocean/lc/event/LunaChatPostJapanizeEvent.java b/src/main/java/com/github/ucchyocean/lc/event/LunaChatPostJapanizeEvent.java index b59769d..ff44dee 100644 --- a/src/main/java/com/github/ucchyocean/lc/event/LunaChatPostJapanizeEvent.java +++ b/src/main/java/com/github/ucchyocean/lc/event/LunaChatPostJapanizeEvent.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.event; diff --git a/src/main/java/com/github/ucchyocean/lc/event/LunaChatPreChatEvent.java b/src/main/java/com/github/ucchyocean/lc/event/LunaChatPreChatEvent.java index 29e3802..fa83043 100644 --- a/src/main/java/com/github/ucchyocean/lc/event/LunaChatPreChatEvent.java +++ b/src/main/java/com/github/ucchyocean/lc/event/LunaChatPreChatEvent.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2015 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.event; diff --git a/src/main/java/com/github/ucchyocean/lc/japanize/IMEConverter.java b/src/main/java/com/github/ucchyocean/lc/japanize/IMEConverter.java index 1ae4748..4a25cc1 100644 --- a/src/main/java/com/github/ucchyocean/lc/japanize/IMEConverter.java +++ b/src/main/java/com/github/ucchyocean/lc/japanize/IMEConverter.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.japanize; @@ -14,7 +14,6 @@ import java.net.ProtocolException; import java.net.URL; import java.net.URLEncoder; -import com.github.ucchyocean.lc.Utility; import com.google.common.io.CharStreams; /** @@ -80,9 +79,9 @@ public class IMEConverter { String json = CharStreams.toString(reader); String parsed = GoogleIME.parseJson(json); - if ( !Utility.isCB19orLater() ) { - parsed = YukiKanaConverter.fixBrackets(parsed); - } +// if ( !Utility.isCB19orLater() ) { +// parsed = YukiKanaConverter.fixBrackets(parsed); +// } return parsed; diff --git a/src/main/java/com/github/ucchyocean/lc/japanize/KanaConverter.java b/src/main/java/com/github/ucchyocean/lc/japanize/KanaConverter.java index 3f3307b..0e4e735 100644 --- a/src/main/java/com/github/ucchyocean/lc/japanize/KanaConverter.java +++ b/src/main/java/com/github/ucchyocean/lc/japanize/KanaConverter.java @@ -1,7 +1,7 @@ /* * @author ucchy * @license LGPLv3 - * @copyright Copyright ucchy 2013 + * @copyright Copyright ucchy 2020 */ package com.github.ucchyocean.lc.japanize; diff --git a/src/main/java/com/github/ucchyocean/lc/japanize/YukiKanaConverter.java b/src/main/java/com/github/ucchyocean/lc/japanize/YukiKanaConverter.java index 1458494..2efe1b9 100644 --- a/src/main/java/com/github/ucchyocean/lc/japanize/YukiKanaConverter.java +++ b/src/main/java/com/github/ucchyocean/lc/japanize/YukiKanaConverter.java @@ -40,9 +40,9 @@ public class YukiKanaConverter { builder.put("who", "うぉ"); // - builder.put("wyi", "ゐ"); // + + builder.put("wyi", "ゐ"); // - builder.put("wye", "ゑ"); // + + builder.put("wye", "ゑ"); // builder.put("la", "ぁ").put("xa", "ぁ"); @@ -52,7 +52,7 @@ public class YukiKanaConverter { builder.put("lo", "ぉ").put("xo", "ぉ"); // - builder.put("ye", "いぇ"); // + + builder.put("ye", "いぇ"); // // // @@ -79,7 +79,7 @@ public class YukiKanaConverter { builder.put("qwi", "くぃ").put("qi", "くぃ").put("qyi", "くぃ"); builder.put("qwu", "くぅ"); builder.put("qwe", "くぇ").put("qe", "くぇ").put("qye", "くぇ"); - builder.put("qwo", "くぉ").put("qo", "くぉ").put("kwo", "くぉ"); // + + builder.put("qwo", "くぉ").put("qo", "くぉ").put("kwo", "くぉ"); builder.put("ga", "が"); builder.put("gi", "ぎ"); @@ -191,7 +191,7 @@ public class YukiKanaConverter { // // - builder.put("ltu", "っ").put("xtu", "っ").put("ltsu", "っ").put("xtsu", "っ"); // + + builder.put("ltu", "っ").put("xtu", "っ").put("ltsu", "っ").put("xtsu", "っ"); // // diff --git a/src/main/resources/config_ja.yml b/src/main/resources/config_ja.yml index 51615bd..b33507e 100644 --- a/src/main/resources/config_ja.yml +++ b/src/main/resources/config_ja.yml @@ -1,7 +1,7 @@ # ${project.name} v${project.version} # @author ucchy # @license LGPLv3 -# @copyright Copyright ucchy 2013 +# @copyright Copyright ucchy 2020 # -------------------- 全般設定 -------------------- diff --git a/src/main/resources/messages.yml b/src/main/resources/messages.yml index a990594..2d9da3f 100644 --- a/src/main/resources/messages.yml +++ b/src/main/resources/messages.yml @@ -1,7 +1,7 @@ # ${project.name} v${project.version} # @author ucchy # @license LGPLv3 -# @copyright Copyright ucchy 2013 +# @copyright Copyright ucchy 2020 joinMessage: '&f[%color%ch&f]&7%player さんがチャンネルに参加しました。' quitMessage: '&f[%color%ch&f]&7%player さんがチャンネルから退出しました。' diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index f18e0d6..51bcd86 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -3,7 +3,7 @@ main: com.github.ucchyocean.lc.LunaChat version: ${project.version} authors: [ucchy, YukiLeafX, LazyGon] description: ${project.description} -softdepend: [Vault, dynmap, HawkEye, Multiverse-Core, mcMMO, Prism] +softdepend: [Vault, dynmap, Multiverse-Core, mcMMO] commands: lunachat: diff --git a/src/test/java/com/github/ucchyocean/lc/UtilityTest.java b/src/test/java/com/github/ucchyocean/lc/UtilityTest.java new file mode 100644 index 0000000..b867a22 --- /dev/null +++ b/src/test/java/com/github/ucchyocean/lc/UtilityTest.java @@ -0,0 +1,30 @@ +/* + * @author ucchy + * @license LGPLv3 + * @copyright Copyright ucchy 2020 + */ +package com.github.ucchyocean.lc; + +import org.bukkit.ChatColor; + +import junit.framework.TestCase; + +/** + * + * @author ucchy + */ +public class UtilityTest extends TestCase { + + public void testChatColor() { + + ChatColor w = ChatColor.WHITE; + System.out.println(w); + } + + public static void main(String[] args) { + + ChatColor w = ChatColor.WHITE; + System.out.println(w); + + } +}