LunaChat v2.6.0 : Updated dependencies.

このコミットが含まれているのは:
ucchyocean committed 2014-04-04 00:56:42 +09:00
1 親 592913440e
コミット 22cfbe56a6
14ファイル変更
+106 -93

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

+3 -3
ファイルの表示
@@ -5,11 +5,11 @@
*/
package com.github.ucchyocean.lc.command;
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;
/**
* banコマンドの実行クラス
@@ -21,7 +21,7 @@ public class BanCommand extends SubCommandAbst {
private static final String PERMISSION_NODE = "lunachat." + COMMAND_NAME;
private static final String USAGE_KEY1 = "usageBan";
private static final String USAGE_KEY2 = "usageBan2";
/**
* コマンドを取得します。
* @return コマンド
@@ -139,7 +139,7 @@ public class BanCommand extends SubCommandAbst {
}
// BAN実行
Player kicked = Bukkit.getPlayerExact(kickedName);
Player kicked = Utility.getPlayerExact(kickedName);
channel.getBanned().add(kickedName);
if ( expireMinutes != -1 ) {
long expire = System.currentTimeMillis() + expireMinutes * 60 * 1000;
+3 -2
ファイルの表示
@@ -5,10 +5,11 @@
*/
package com.github.ucchyocean.lc.command;
import org.bukkit.Bukkit;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import com.github.ucchyocean.lc.Utility;
/**
* denyコマンドの実行クラス
* @author ucchy
@@ -92,7 +93,7 @@ public class DenyCommand extends SubCommandAbst {
// メッセージ送信
sendResourceMessage(sender, PREINFO, "cmdmsgDeny");
Player inviter = Bukkit.getPlayerExact(inviterName);
Player inviter = Utility.getPlayerExact(inviterName);
if (inviter != null) {
sendResourceMessage(inviter, PREINFO, "cmdmsgDenyed");
}
+2 -2
ファイルの表示
@@ -5,11 +5,11 @@
*/
package com.github.ucchyocean.lc.command;
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;
/**
* inviteコマンドの実行クラス
@@ -104,7 +104,7 @@ public class InviteCommand extends SubCommandAbst {
}
// 招待相手が存在するかどうかを確認する
Player invited = Bukkit.getPlayerExact(invitedName);
Player invited = Utility.getPlayerExact(invitedName);
if (invited == null) {
sendResourceMessage(sender, PREERR,
"errmsgNotfoundPlayer", invitedName);
+3 -3
ファイルの表示
@@ -5,11 +5,11 @@
*/
package com.github.ucchyocean.lc.command;
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;
/**
* kickコマンドの実行クラス
@@ -20,7 +20,7 @@ public class KickCommand extends SubCommandAbst {
private static final String COMMAND_NAME = "kick";
private static final String PERMISSION_NODE = "lunachat." + COMMAND_NAME;
private static final String USAGE_KEY = "usageKick";
/**
* コマンドを取得します。
* @return コマンド
@@ -122,7 +122,7 @@ public class KickCommand extends SubCommandAbst {
sendResourceMessage(sender, PREINFO,
"cmdmsgKick", kickedName, channel.getName());
Player kicked = Bukkit.getPlayerExact(kickedName);
Player kicked = Utility.getPlayerExact(kickedName);
if (kicked != null) {
sendResourceMessage(kicked, PREINFO,
"cmdmsgKicked", channel.getName());
+3 -3
ファイルの表示
@@ -5,7 +5,6 @@
*/
package com.github.ucchyocean.lc.command;
import org.bukkit.Bukkit;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
@@ -14,6 +13,7 @@ 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;
/**
* Japanize変換設定コマンド
@@ -22,7 +22,7 @@ import com.github.ucchyocean.lc.Resources;
public class LunaChatJapanizeCommand implements CommandExecutor {
private static final String PERM_JAPANIZE_OTHER = "lunachat-admin.japanize-other";
private static final String PREINFO = Resources.get("infoPrefix");
private static final String PREERR = Resources.get("errorPrefix");
@@ -65,7 +65,7 @@ public class LunaChatJapanizeCommand implements CommandExecutor {
}
// 指定されたプレイヤーが存在するかチェック
Player target = Bukkit.getPlayerExact(args[0]);
Player target = Utility.getPlayerExact(args[0]);
if ( target == null ) {
sendResourceMessage(sender, PREERR,
"errmsgNotfoundPlayer", args[0]);
+2 -2
ファイルの表示
@@ -5,7 +5,6 @@
*/
package com.github.ucchyocean.lc.command;
import org.bukkit.Bukkit;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
@@ -15,6 +14,7 @@ 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;
/**
* 1:1チャット送信コマンド
@@ -74,7 +74,7 @@ public class LunaChatMessageCommand implements CommandExecutor {
protected void sendTellMessage(Player inviter, String invitedName, String message) {
// 招待相手が存在するかどうかを確認する
Player invited = Bukkit.getPlayerExact(invitedName);
Player invited = Utility.getPlayerExact(invitedName);
if (invited == null) {
sendResourceMessage(inviter, PREERR,
"errmsgNotfoundPlayer", invitedName);
+3 -3
ファイルの表示
@@ -5,11 +5,11 @@
*/
package com.github.ucchyocean.lc.command;
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;
/**
* muteコマンドの実行クラス
@@ -21,7 +21,7 @@ public class MuteCommand extends SubCommandAbst {
private static final String PERMISSION_NODE = "lunachat." + COMMAND_NAME;
private static final String USAGE_KEY1 = "usageMute";
private static final String USAGE_KEY2 = "usageMute2";
/**
* コマンドを取得します。
* @return コマンド
@@ -133,7 +133,7 @@ public class MuteCommand extends SubCommandAbst {
}
// Mute実行
Player kicked = Bukkit.getPlayerExact(kickedName);
Player kicked = Utility.getPlayerExact(kickedName);
channel.getMuted().add(kickedName);
if ( expireMinutes != -1 ) {
long expire = System.currentTimeMillis() + expireMinutes * 60 * 1000;
+3 -3
ファイルの表示
@@ -5,11 +5,11 @@
*/
package com.github.ucchyocean.lc.command;
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;
/**
* pardonコマンドの実行クラス
@@ -20,7 +20,7 @@ public class PardonCommand extends SubCommandAbst {
private static final String COMMAND_NAME = "pardon";
private static final String PERMISSION_NODE = "lunachat." + COMMAND_NAME;
private static final String USAGE_KEY = "usagePardon";
/**
* コマンドを取得します。
* @return コマンド
@@ -111,7 +111,7 @@ public class PardonCommand extends SubCommandAbst {
}
// BAN解除実行
Player kicked = Bukkit.getPlayerExact(kickedName);
Player kicked = Utility.getPlayerExact(kickedName);
channel.getBanned().remove(kickedName);
channel.save();
+3 -3
ファイルの表示
@@ -5,11 +5,11 @@
*/
package com.github.ucchyocean.lc.command;
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;
/**
* unmuteコマンドの実行クラス
@@ -20,7 +20,7 @@ public class UnmuteCommand extends SubCommandAbst {
private static final String COMMAND_NAME = "unmute";
private static final String PERMISSION_NODE = "lunachat." + COMMAND_NAME;
private static final String USAGE_KEY = "usageUnmute";
/**
* コマンドを取得します。
* @return コマンド
@@ -111,7 +111,7 @@ public class UnmuteCommand extends SubCommandAbst {
}
// Mute解除実行
Player kicked = Bukkit.getPlayerExact(kickedName);
Player kicked = Utility.getPlayerExact(kickedName);
channel.getMuted().remove(kickedName);
channel.save();