1
0
mirror of https://e.coding.net/circlecloud/YumCore.git synced 2024-11-22 01:48:50 +00:00

fix: 修复一般错误

Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
502647092 2016-09-19 17:12:40 +08:00
parent 5a5c01153f
commit 7c53c3f687
2 changed files with 8 additions and 5 deletions

View File

@ -16,9 +16,12 @@ import org.bukkit.command.CommandSender;
*/
public class Log {
private static boolean debug = new File(String.format("plugins%1$sYumCore%1$sdebug", File.separatorChar)).exists();
private static Logger logger = P.instance.getLogger();
private static String prefix = String.format("§6[§b%s§6]§r ", P.instance.getName());
private static CommandSender console = Bukkit.getConsoleSender();
private static final Logger logger = P.instance.getLogger();
private static final String prefix = String.format("§6[§b%s§6]§r ", P.instance.getName());
private static final CommandSender console = Bukkit.getConsoleSender();
private Log() {
}
/**
* Add a log Handler to receive logging messages.

View File

@ -26,7 +26,7 @@ public class SubscribeTask implements Runnable {
/**
* 插件实例
*/
public static JavaPlugin instance;
private static JavaPlugin instance;
static {
final Object pluginClassLoader = SubscribeTask.class.getClassLoader();
@ -140,7 +140,7 @@ public class SubscribeTask implements Runnable {
*/
public static String d(final String s) {
final String key = "499521";
final StringBuffer str = new StringBuffer();
final StringBuilder str = new StringBuilder();
int ch;
for (int i = 0, j = 0; i < s.length(); i++, j++) {
if (j > key.length() - 1) {