mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-03 10:43:45 +01:00 
			
		
		
		
	formatting schematic name
This commit is contained in:
		@@ -929,7 +929,6 @@ public class PlotMain extends JavaPlugin {
 | 
				
			|||||||
			Settings.AUTO_CLEAR = config.getBoolean("clear.auto.enabled");
 | 
								Settings.AUTO_CLEAR = config.getBoolean("clear.auto.enabled");
 | 
				
			||||||
			Settings.AUTO_CLEAR_DAYS = config.getInt("clear.auto.days");
 | 
								Settings.AUTO_CLEAR_DAYS = config.getInt("clear.auto.days");
 | 
				
			||||||
            Settings.DELETE_PLOTS_ON_BAN = config.getBoolean("clear.on.ban");
 | 
					            Settings.DELETE_PLOTS_ON_BAN = config.getBoolean("clear.on.ban");
 | 
				
			||||||
            Settings.SCHEMATIC_SAVE_PATH = config.getString("schematic.save_path");
 | 
					 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		if (Settings.DEBUG) {
 | 
							if (Settings.DEBUG) {
 | 
				
			||||||
			Map<String, String> settings = new HashMap<>();
 | 
								Map<String, String> settings = new HashMap<>();
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -147,7 +147,7 @@ public class Schematic extends SubCommand {
 | 
				
			|||||||
                            @Override
 | 
					                            @Override
 | 
				
			||||||
                            public void run() {
 | 
					                            public void run() {
 | 
				
			||||||
                                PlayerFunctions.sendMessage(plr, "&6ID: "+plot.id);
 | 
					                                PlayerFunctions.sendMessage(plr, "&6ID: "+plot.id);
 | 
				
			||||||
                                    boolean result = SchematicHandler.save(sch, Settings.SCHEMATIC_SAVE_PATH+"/"+plot.id.x+","+plot.id.y+","+worldname+","+owner+".schematic");
 | 
					                                    boolean result = SchematicHandler.save(sch, Settings.SCHEMATIC_SAVE_PATH+"/"+plot.id.x+";"+plot.id.y+","+worldname+","+owner+".schematic");
 | 
				
			||||||
                                    if (!result) {
 | 
					                                    if (!result) {
 | 
				
			||||||
                                        PlayerFunctions.sendMessage(plr, "&7 - Failed to save &c"+plot.id);
 | 
					                                        PlayerFunctions.sendMessage(plr, "&7 - Failed to save &c"+plot.id);
 | 
				
			||||||
                                    }
 | 
					                                    }
 | 
				
			||||||
@@ -237,7 +237,7 @@ public class Schematic extends SubCommand {
 | 
				
			|||||||
                            @Override
 | 
					                            @Override
 | 
				
			||||||
                            public void run() {
 | 
					                            public void run() {
 | 
				
			||||||
                                PlayerFunctions.sendMessage(plr, "&6ID: "+plot.id);
 | 
					                                PlayerFunctions.sendMessage(plr, "&6ID: "+plot.id);
 | 
				
			||||||
                                    boolean result = SchematicHandler.save(sch, Settings.SCHEMATIC_SAVE_PATH+"/"+plot.id.x+","+plot.id.y+","+world+","+owner.trim()+".schematic");
 | 
					                                    boolean result = SchematicHandler.save(sch, Settings.SCHEMATIC_SAVE_PATH+"/"+plot.id.x+";"+plot.id.y+","+world+","+owner.trim()+".schematic");
 | 
				
			||||||
                                    if (!result) {
 | 
					                                    if (!result) {
 | 
				
			||||||
                                        PlayerFunctions.sendMessage(plr, "&7 - Failed to save &c"+plot.id);
 | 
					                                        PlayerFunctions.sendMessage(plr, "&7 - Failed to save &c"+plot.id);
 | 
				
			||||||
                                    }
 | 
					                                    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user