package de.steamwar.schematicsystem; import com.sk89q.worldedit.EditSession; import de.steamwar.core.Core; import de.steamwar.sql.NoClipboardException; import de.steamwar.sql.Schematic; import org.bukkit.entity.Player; import java.io.IOException; public class WorldEdit { private WorldEdit(){} public static EditSession pasteSchematic(Player player, Schematic schematic) throws Schematic.WrongVersionException, IOException, NoClipboardException { switch(Core.getVersion()){ case 15: return WorldEdit_15.pasteSchematic(player, schematic); default: return WorldEdit_12.pasteSchematic(player, schematic); } } }