LunaChat v3-k2 : Added BungeeCord implementation.
このコミットが含まれているのは:
1 親
5ddd0959d8
コミット
3027bedb10
26ファイル変更
+1247
-244
検索条件に一致するファイルはありません
@@ -11,7 +11,7 @@ import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import com.github.ucchyocean.lc.Resources;
|
||||
import com.github.ucchyocean.lc.Utility;
|
||||
import com.github.ucchyocean.lc.UtilityBukkit;
|
||||
import com.github.ucchyocean.lc.channel.Channel;
|
||||
import com.github.ucchyocean.lc.channel.ChannelPlayer;
|
||||
|
||||
@@ -135,7 +135,7 @@ public class HideCommand extends SubCommandAbst {
|
||||
Channel channel = api.getChannel(cname);
|
||||
if ( !isPlayerCommand && channel != null ) {
|
||||
isChannelCommand = true;
|
||||
} else if ( Utility.getOfflinePlayer(cname) == null ) {
|
||||
} else if ( UtilityBukkit.getOfflinePlayer(cname) == null ) {
|
||||
sendResourceMessage(sender, PREERR, "errmsgNotExistChannelAndPlayer");
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ import org.bukkit.entity.Player;
|
||||
|
||||
import com.github.ucchyocean.lc.LunaChat;
|
||||
import com.github.ucchyocean.lc.Resources;
|
||||
import com.github.ucchyocean.lc.Utility;
|
||||
import com.github.ucchyocean.lc.UtilityBukkit;
|
||||
import com.github.ucchyocean.lc.channel.Channel;
|
||||
import com.github.ucchyocean.lc.channel.ChannelPlayer;
|
||||
|
||||
@@ -188,7 +188,7 @@ public class LunaChatCommand implements CommandExecutor {
|
||||
// プレイヤー名で補完する
|
||||
String arg = args[1].toLowerCase();
|
||||
ArrayList<String> items = new ArrayList<String>();
|
||||
for ( Player player : Utility.getOnlinePlayers() ) {
|
||||
for ( Player player : UtilityBukkit.getOnlinePlayers() ) {
|
||||
String pname = player.getName();
|
||||
pname = pname == null ? "" : pname.toLowerCase();
|
||||
if ( pname.startsWith(arg) ) {
|
||||
@@ -226,7 +226,7 @@ public class LunaChatCommand implements CommandExecutor {
|
||||
items.add(name);
|
||||
}
|
||||
}
|
||||
for ( Player player : Utility.getOnlinePlayers() ) {
|
||||
for ( Player player : UtilityBukkit.getOnlinePlayers() ) {
|
||||
String pname = player.getName();
|
||||
pname = pname == null ? "" : pname.toLowerCase();
|
||||
if ( pname.startsWith(arg) ) {
|
||||
@@ -249,7 +249,7 @@ public class LunaChatCommand implements CommandExecutor {
|
||||
// プレイヤー名で補完する
|
||||
String arg = args[2].toLowerCase();
|
||||
ArrayList<String> items = new ArrayList<String>();
|
||||
for ( Player player : Utility.getOnlinePlayers() ) {
|
||||
for ( Player player : UtilityBukkit.getOnlinePlayers() ) {
|
||||
String pname = player.getName();
|
||||
pname = pname == null ? "" : pname.toLowerCase();
|
||||
if ( pname.startsWith(arg) ) {
|
||||
@@ -325,7 +325,7 @@ public class LunaChatCommand implements CommandExecutor {
|
||||
// プレイヤー名で補完する
|
||||
String arg = args[2].toLowerCase();
|
||||
ArrayList<String> items = new ArrayList<String>();
|
||||
for ( Player player : Utility.getOnlinePlayers() ) {
|
||||
for ( Player player : UtilityBukkit.getOnlinePlayers() ) {
|
||||
String pname = player.getName();
|
||||
pname = pname == null ? "" : pname.toLowerCase();
|
||||
if ( pname.startsWith(arg) ) {
|
||||
|
||||
@@ -13,6 +13,7 @@ import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import com.github.ucchyocean.lc.Utility;
|
||||
import com.github.ucchyocean.lc.UtilityBukkit;
|
||||
import com.github.ucchyocean.lc.channel.Channel;
|
||||
import com.github.ucchyocean.lc.event.LunaChatChannelOptionChangedEvent;
|
||||
import com.github.ucchyocean.lc.japanize.JapanizeType;
|
||||
@@ -213,10 +214,10 @@ public class OptionCommand extends SubCommandAbst {
|
||||
} else {
|
||||
|
||||
String code = options.get("color");
|
||||
if ( Utility.isValidColor(code) ) {
|
||||
code = Utility.changeToColorCode(code);
|
||||
if ( UtilityBukkit.isValidColor(code) ) {
|
||||
code = UtilityBukkit.changeToColorCode(code);
|
||||
}
|
||||
if ( Utility.isValidColorCode(code) ) {
|
||||
if ( Utility.isAltColorCode(code) ) {
|
||||
channel.setColorCode(code);
|
||||
sendResourceMessage(sender, PREINFO,
|
||||
"cmdmsgOption", "color", options.get("color"));
|
||||
|
||||
@@ -7,6 +7,8 @@ package com.github.ucchyocean.lc.command;
|
||||
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import com.github.ucchyocean.lc.LunaChat;
|
||||
|
||||
/**
|
||||
* reloadコマンドの実行クラス
|
||||
* @author ucchy
|
||||
@@ -72,7 +74,7 @@ public class ReloadCommand extends SubCommandAbst {
|
||||
CommandSender sender, String label, String[] args) {
|
||||
|
||||
api.reloadAllData();
|
||||
config.reloadConfig();
|
||||
config.reloadConfig(LunaChat.getInstance().getDataFolder(), LunaChat.getPluginJarFile());
|
||||
sendResourceMessage(sender, PREINFO, "cmdmsgReload");
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ package com.github.ucchyocean.lc.command;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import com.github.ucchyocean.lc.Utility;
|
||||
import com.github.ucchyocean.lc.UtilityBukkit;
|
||||
import com.github.ucchyocean.lc.channel.Channel;
|
||||
|
||||
public class SetCommand extends SubCommandAbst {
|
||||
@@ -91,7 +91,7 @@ public class SetCommand extends SubCommandAbst {
|
||||
|
||||
sendResourceMessage(sender, PREINFO, "cmdmsgSetDefault", targetPlayer, targetChannel.getName());
|
||||
|
||||
Player target = Utility.getPlayerExact(targetPlayer);
|
||||
Player target = UtilityBukkit.getPlayerExact(targetPlayer);
|
||||
if ( target != null ) {
|
||||
sendResourceMessage(target, PREINFO, "cmdmsgSet", targetChannel.getName());
|
||||
}
|
||||
|
||||
@@ -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.Utility;
|
||||
import com.github.ucchyocean.lc.UtilityBukkit;
|
||||
import com.github.ucchyocean.lc.channel.Channel;
|
||||
import com.github.ucchyocean.lc.channel.ChannelPlayer;
|
||||
|
||||
@@ -117,7 +117,7 @@ public class UnhideCommand extends SubCommandAbst {
|
||||
Channel channel = api.getChannel(cname);
|
||||
if ( !isPlayerCommand && channel != null ) {
|
||||
isChannelCommand = true;
|
||||
} else if ( Utility.getOfflinePlayer(cname) == null ) {
|
||||
} else if ( UtilityBukkit.getOfflinePlayer(cname) == null ) {
|
||||
sendResourceMessage(sender, PREERR, "errmsgNotExistChannelAndPlayer");
|
||||
return true;
|
||||
}
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする