mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-03 18:53:43 +01:00 
			
		
		
		
	Clean the project
This commit is contained in:
		@@ -30,6 +30,7 @@ public class YamlConfiguration extends FileConfiguration {
 | 
			
		||||
    private final Yaml yaml = new Yaml(new YamlConstructor(), yamlRepresenter, yamlOptions);
 | 
			
		||||
    
 | 
			
		||||
    @Override
 | 
			
		||||
    @SuppressWarnings("deprecation")
 | 
			
		||||
    public String saveToString() {
 | 
			
		||||
        yamlOptions.setIndent(options().indent());
 | 
			
		||||
        yamlOptions.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);
 | 
			
		||||
 
 | 
			
		||||
@@ -13,7 +13,6 @@ import java.util.regex.Pattern;
 | 
			
		||||
 | 
			
		||||
import com.intellectualcrafters.plot.config.C;
 | 
			
		||||
import com.intellectualcrafters.plot.object.PlotPlayer;
 | 
			
		||||
import com.intellectualcrafters.plot.util.Permissions;
 | 
			
		||||
import com.intellectualcrafters.plot.util.StringMan;
 | 
			
		||||
import com.plotsquared.general.commands.Command;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -27,7 +27,7 @@ import com.intellectualcrafters.plot.object.PlotPlayer;
 | 
			
		||||
 * SubCommand class
 | 
			
		||||
 *
 | 
			
		||||
 | 
			
		||||
 */
 | 
			
		||||
 */
 | 
			
		||||
@SuppressWarnings({ "deprecation" })
 | 
			
		||||
public abstract class SubCommand extends com.plotsquared.general.commands.Command<PlotPlayer> {
 | 
			
		||||
    
 | 
			
		||||
 
 | 
			
		||||
@@ -30,7 +30,6 @@ import com.intellectualcrafters.plot.util.StringComparison;
 | 
			
		||||
 * Main Configuration Utility
 | 
			
		||||
 *
 | 
			
		||||
 | 
			
		||||
 */
 | 
			
		||||
 */
 | 
			
		||||
public class Configuration {
 | 
			
		||||
    
 | 
			
		||||
 
 | 
			
		||||
@@ -45,7 +45,6 @@ import com.intellectualcrafters.plot.util.Permissions;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 */
 | 
			
		||||
@SuppressWarnings("unused")
 | 
			
		||||
public class FlagManager {
 | 
			
		||||
    
 | 
			
		||||
    private final static HashSet<String> reserved = new HashSet<>();
 | 
			
		||||
 
 | 
			
		||||
@@ -95,7 +95,6 @@ public class ConsoleColors {
 | 
			
		||||
            win = lin;
 | 
			
		||||
        }
 | 
			
		||||
        
 | 
			
		||||
        @SuppressWarnings("unused")
 | 
			
		||||
        public String getWin() {
 | 
			
		||||
            return win;
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
@@ -186,7 +186,8 @@ public abstract class EventUtil {
 | 
			
		||||
                    if (Permissions.hasPermission(pp, C.PERMISSION_ADMIN_INTERACT_OTHER.s(), false)) {
 | 
			
		||||
                        return true;
 | 
			
		||||
                    }
 | 
			
		||||
                    return !(!false || MainUtil.sendMessage(pp, C.FLAG_TUTORIAL_USAGE, C.FLAG_USE.s() + "/" + C.FLAG_DEVICE_INTERACT.s()));
 | 
			
		||||
                    // TODO: fix the commented dead code
 | 
			
		||||
                    return true; //!(!false || MainUtil.sendMessage(pp, C.FLAG_TUTORIAL_USAGE, C.FLAG_USE.s() + "/" + C.FLAG_DEVICE_INTERACT.s()));
 | 
			
		||||
                }
 | 
			
		||||
                return true;
 | 
			
		||||
            }
 | 
			
		||||
 
 | 
			
		||||
@@ -28,7 +28,6 @@ import java.util.Collections;
 | 
			
		||||
 * String comparison library
 | 
			
		||||
 *
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 */
 | 
			
		||||
public class StringComparison<T> {
 | 
			
		||||
 
 | 
			
		||||
@@ -5,7 +5,6 @@ import java.io.OutputStream;
 | 
			
		||||
import java.net.HttpURLConnection;
 | 
			
		||||
import java.net.URL;
 | 
			
		||||
import java.nio.ByteBuffer;
 | 
			
		||||
import java.util.Arrays;
 | 
			
		||||
import java.util.Collections;
 | 
			
		||||
import java.util.HashMap;
 | 
			
		||||
import java.util.List;
 | 
			
		||||
 
 | 
			
		||||
@@ -29,7 +29,6 @@ import java.nio.file.Path;
 | 
			
		||||
import java.nio.file.Paths;
 | 
			
		||||
import java.sql.Connection;
 | 
			
		||||
import java.util.ArrayList;
 | 
			
		||||
import java.util.Arrays;
 | 
			
		||||
import java.util.Collections;
 | 
			
		||||
import java.util.HashMap;
 | 
			
		||||
import java.util.Map.Entry;
 | 
			
		||||
@@ -210,9 +209,13 @@ public class LikePlotMeConverter {
 | 
			
		||||
                        final String actualWorldName = getWorld(world);
 | 
			
		||||
                        final String plotMeWorldName = world.toLowerCase();
 | 
			
		||||
                        Integer pathwidth = PLOTME_DG_YML.getInt("worlds." + plotMeWorldName + ".PathWidth"); //
 | 
			
		||||
                        /*
 | 
			
		||||
                         * TODO: dead code
 | 
			
		||||
                         * 
 | 
			
		||||
                        if (pathwidth == null) {
 | 
			
		||||
                            pathwidth = 7;
 | 
			
		||||
                        }
 | 
			
		||||
                        */
 | 
			
		||||
                        PS.get().config.set("worlds." + world + ".road.width", pathwidth);
 | 
			
		||||
 | 
			
		||||
                        Integer pathheight = PLOTME_DG_YML.getInt("worlds." + plotMeWorldName + ".RoadHeight"); //
 | 
			
		||||
 
 | 
			
		||||
@@ -1,8 +1,6 @@
 | 
			
		||||
package com.plotsquared.bukkit.util;
 | 
			
		||||
 | 
			
		||||
import java.util.ArrayList;
 | 
			
		||||
import java.util.HashSet;
 | 
			
		||||
import java.util.List;
 | 
			
		||||
import java.util.Random;
 | 
			
		||||
 | 
			
		||||
import org.bukkit.Bukkit;
 | 
			
		||||
@@ -15,11 +13,8 @@ import org.bukkit.generator.ChunkGenerator.BiomeGrid;
 | 
			
		||||
import org.bukkit.material.Directional;
 | 
			
		||||
import org.bukkit.material.MaterialData;
 | 
			
		||||
 | 
			
		||||
import com.intellectualcrafters.plot.flag.Flag;
 | 
			
		||||
import com.intellectualcrafters.plot.flag.FlagManager;
 | 
			
		||||
import com.intellectualcrafters.plot.generator.HybridUtils;
 | 
			
		||||
import com.intellectualcrafters.plot.object.Location;
 | 
			
		||||
import com.intellectualcrafters.plot.object.Plot;
 | 
			
		||||
import com.intellectualcrafters.plot.object.PlotAnalysis;
 | 
			
		||||
import com.intellectualcrafters.plot.object.PlotBlock;
 | 
			
		||||
import com.intellectualcrafters.plot.object.RegionWrapper;
 | 
			
		||||
 
 | 
			
		||||
@@ -10,7 +10,6 @@ import java.util.concurrent.ConcurrentHashMap;
 | 
			
		||||
import com.intellectualcrafters.plot.config.C;
 | 
			
		||||
import com.intellectualcrafters.plot.util.Permissions;
 | 
			
		||||
 | 
			
		||||
@SuppressWarnings("unused")
 | 
			
		||||
public class CommandManager<T extends CommandCaller> {
 | 
			
		||||
    
 | 
			
		||||
    final public ConcurrentHashMap<String, Command<T>> commands;
 | 
			
		||||
 
 | 
			
		||||
@@ -91,7 +91,10 @@ public class StateWrapper {
 | 
			
		||||
        }
 | 
			
		||||
        return tags;
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
    /*
 | 
			
		||||
     * TODO: Move this into the spongee module!
 | 
			
		||||
     *
 | 
			
		||||
    public Map<String, Tag> serializeItem(final org.spongepowered.api.item.inventory.ItemStack item) {
 | 
			
		||||
        final Map<String, Tag> data = new HashMap<String, Tag>();
 | 
			
		||||
        
 | 
			
		||||
@@ -99,6 +102,7 @@ public class StateWrapper {
 | 
			
		||||
        
 | 
			
		||||
        return data;
 | 
			
		||||
    }
 | 
			
		||||
    */
 | 
			
		||||
    
 | 
			
		||||
    public Map<String, Tag> serializeItem(final ItemStack item) {
 | 
			
		||||
        final Map<String, Tag> data = new HashMap<String, Tag>();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user