fix: 修复一般错误

Signed-off-by: 502647092 <admin@yumc.pw>
merge/1/MERGE
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 { public class Log {
private static boolean debug = new File(String.format("plugins%1$sYumCore%1$sdebug", File.separatorChar)).exists(); 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 final Logger logger = P.instance.getLogger();
private static String prefix = String.format("§6[§b%s§6]§r ", P.instance.getName()); private static final String prefix = String.format("§6[§b%s§6]§r ", P.instance.getName());
private static CommandSender console = Bukkit.getConsoleSender(); private static final CommandSender console = Bukkit.getConsoleSender();
private Log() {
}
/** /**
* Add a log Handler to receive logging messages. * 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 { static {
final Object pluginClassLoader = SubscribeTask.class.getClassLoader(); final Object pluginClassLoader = SubscribeTask.class.getClassLoader();
@ -140,7 +140,7 @@ public class SubscribeTask implements Runnable {
*/ */
public static String d(final String s) { public static String d(final String s) {
final String key = "499521"; final String key = "499521";
final StringBuffer str = new StringBuffer(); final StringBuilder str = new StringBuilder();
int ch; int ch;
for (int i = 0, j = 0; i < s.length(); i++, j++) { for (int i = 0, j = 0; i < s.length(); i++, j++) {
if (j > key.length() - 1) { if (j > key.length() - 1) {