mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-04 03:03:43 +01:00 
			
		
		
		
	Fixes #452
This commit is contained in:
		@@ -26,7 +26,13 @@ public class DebugPaste extends SubCommand {
 | 
			
		||||
            public void run() {
 | 
			
		||||
                try {
 | 
			
		||||
                    String settingsYML = HastebinUtility.upload(PS.get().configFile);
 | 
			
		||||
                    String latestLOG = HastebinUtility.upload(new File(BukkitMain.THIS.getDirectory(), "../../logs/latest.log"));
 | 
			
		||||
                    String latestLOG;
 | 
			
		||||
                    try {
 | 
			
		||||
                        latestLOG = HastebinUtility.upload(new File(BukkitMain.THIS.getDirectory(), "../../logs/latest.log"));
 | 
			
		||||
                    } catch(final Exception e) {
 | 
			
		||||
                        plr.sendMessage("&clatest.log is too big to be pasted, will ignore");
 | 
			
		||||
                        latestLOG = "too big :(";
 | 
			
		||||
                    }
 | 
			
		||||
                    StringBuilder b = new StringBuilder();
 | 
			
		||||
                    b.append("# Welcome to this paste\n# It is meant to provide us at IntellectualSites with better information about your problem\n\n# We will start with some informational files\n");
 | 
			
		||||
                    b.append("links.settings_yml: '").append(settingsYML).append("'\n");
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user