mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-04 11:13:45 +01:00 
			
		
		
		
	new library in gradle and another change I can't remember.
This commit is contained in:
		@@ -11,7 +11,7 @@ dependencies {
 | 
				
			|||||||
    testCompileOnly("org.projectlombok:lombok:1.18.6")
 | 
					    testCompileOnly("org.projectlombok:lombok:1.18.6")
 | 
				
			||||||
    annotationProcessor("org.projectlombok:lombok:1.18.6")
 | 
					    annotationProcessor("org.projectlombok:lombok:1.18.6")
 | 
				
			||||||
    testAnnotationProcessor("org.projectlombok:lombok:1.18.6")
 | 
					    testAnnotationProcessor("org.projectlombok:lombok:1.18.6")
 | 
				
			||||||
 | 
					    implementation 'net.kyori:text-adapter-bukkit:3.0.2'
 | 
				
			||||||
    implementation 'com.github.Sauilitired:Jenkins4J:2.0-SNAPSHOT'
 | 
					    implementation 'com.github.Sauilitired:Jenkins4J:2.0-SNAPSHOT'
 | 
				
			||||||
    implementation 'com.squareup.okhttp3:okhttp:3.14.0'
 | 
					    implementation 'com.squareup.okhttp3:okhttp:3.14.0'
 | 
				
			||||||
    implementation 'com.squareup.okio:okio:2.2.2'
 | 
					    implementation 'com.squareup.okio:okio:2.2.2'
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -28,6 +28,7 @@ import com.sk89q.worldedit.extent.clipboard.io.MCEditSchematicReader;
 | 
				
			|||||||
import com.sk89q.worldedit.extent.clipboard.io.SpongeSchematicReader;
 | 
					import com.sk89q.worldedit.extent.clipboard.io.SpongeSchematicReader;
 | 
				
			||||||
import com.sk89q.worldedit.math.BlockVector3;
 | 
					import com.sk89q.worldedit.math.BlockVector3;
 | 
				
			||||||
import com.sk89q.worldedit.world.block.BaseBlock;
 | 
					import com.sk89q.worldedit.world.block.BaseBlock;
 | 
				
			||||||
 | 
					import org.jetbrains.annotations.NotNull;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import java.io.*;
 | 
					import java.io.*;
 | 
				
			||||||
import java.net.URL;
 | 
					import java.net.URL;
 | 
				
			||||||
@@ -64,15 +65,16 @@ public abstract class SchematicHandler {
 | 
				
			|||||||
                Iterator<Plot> i = plots.iterator();
 | 
					                Iterator<Plot> i = plots.iterator();
 | 
				
			||||||
                final Plot plot = i.next();
 | 
					                final Plot plot = i.next();
 | 
				
			||||||
                i.remove();
 | 
					                i.remove();
 | 
				
			||||||
                String o = UUIDHandler.getName(plot.guessOwner());
 | 
					                String owner = UUIDHandler.getName(plot.guessOwner());
 | 
				
			||||||
                if (o == null) {
 | 
					                if (owner == null) {
 | 
				
			||||||
                    o = "unknown";
 | 
					                    owner = "unknown";
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                final String name;
 | 
					                final String name;
 | 
				
			||||||
                if (namingScheme == null) {
 | 
					                if (namingScheme == null) {
 | 
				
			||||||
                    name = plot.getId().x + ";" + plot.getId().y + ',' + plot.getArea() + ',' + o;
 | 
					                    name =
 | 
				
			||||||
 | 
					                        plot.getId().x + ";" + plot.getId().y + ',' + plot.getArea() + ',' + owner;
 | 
				
			||||||
                } else {
 | 
					                } else {
 | 
				
			||||||
                    name = namingScheme.replaceAll("%owner%", o)
 | 
					                    name = namingScheme.replaceAll("%owner%", owner)
 | 
				
			||||||
                        .replaceAll("%id%", plot.getId().toString())
 | 
					                        .replaceAll("%id%", plot.getId().toString())
 | 
				
			||||||
                        .replaceAll("%idx%", plot.getId().x + "")
 | 
					                        .replaceAll("%idx%", plot.getId().x + "")
 | 
				
			||||||
                        .replaceAll("%idy%", plot.getId().y + "")
 | 
					                        .replaceAll("%idy%", plot.getId().y + "")
 | 
				
			||||||
@@ -323,7 +325,7 @@ public abstract class SchematicHandler {
 | 
				
			|||||||
        return null;
 | 
					        return null;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public Schematic getSchematic(URL url) {
 | 
					    public Schematic getSchematic(@NotNull URL url) {
 | 
				
			||||||
        try {
 | 
					        try {
 | 
				
			||||||
            ReadableByteChannel rbc = Channels.newChannel(url.openStream());
 | 
					            ReadableByteChannel rbc = Channels.newChannel(url.openStream());
 | 
				
			||||||
            InputStream is = Channels.newInputStream(rbc);
 | 
					            InputStream is = Channels.newInputStream(rbc);
 | 
				
			||||||
@@ -334,10 +336,7 @@ public abstract class SchematicHandler {
 | 
				
			|||||||
        return null;
 | 
					        return null;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public Schematic getSchematic(InputStream is) {
 | 
					    public Schematic getSchematic(@NotNull InputStream is) {
 | 
				
			||||||
        if (is == null) {
 | 
					 | 
				
			||||||
            return null;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        try {
 | 
					        try {
 | 
				
			||||||
            SpongeSchematicReader ssr =
 | 
					            SpongeSchematicReader ssr =
 | 
				
			||||||
                new SpongeSchematicReader(new NBTInputStream(new GZIPInputStream(is)));
 | 
					                new SpongeSchematicReader(new NBTInputStream(new GZIPInputStream(is)));
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -67,6 +67,7 @@ subprojects {
 | 
				
			|||||||
            exclude(module: 'mockito-core')
 | 
					            exclude(module: 'mockito-core')
 | 
				
			||||||
            exclude(module: 'dummypermscompat')
 | 
					            exclude(module: 'dummypermscompat')
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					        implementation 'net.kyori:text-api:3.0.0'
 | 
				
			||||||
        //Minecraft uses Guava 21 as of 1.13.
 | 
					        //Minecraft uses Guava 21 as of 1.13.
 | 
				
			||||||
        compile 'com.google.guava:guava:21.0'
 | 
					        compile 'com.google.guava:guava:21.0'
 | 
				
			||||||
        compileOnly 'org.jetbrains:annotations:17.0.0'
 | 
					        compileOnly 'org.jetbrains:annotations:17.0.0'
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user