mirror of
				https://e.coding.net/circlecloud/YumCore.git
				synced 2025-11-03 23:06:02 +00:00 
			
		
		
		
	@@ -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.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user