13
0
Dieses Repository wurde am 2024-08-05 archiviert. Du kannst Dateien ansehen und es klonen, aber nicht pushen oder Issues/Pull-Requests öffnen.
SchematicSystem/SchematicSystem_Main/src/de/steamwar/schematicsystem/WorldEdit.java

31 Zeilen
1.0 KiB
Java

2019-11-10 17:31:30 +01:00
package de.steamwar.schematicsystem;
import com.sk89q.worldedit.EditSession;
import de.steamwar.core.Core;
2019-12-05 11:51:54 +01:00
import de.steamwar.sql.NoClipboardException;
import de.steamwar.sql.Schematic;
2019-11-10 17:31:30 +01:00
import org.bukkit.entity.Player;
import java.io.IOException;
public class WorldEdit {
private WorldEdit(){}
2019-12-05 11:51:54 +01:00
public static EditSession pasteSchematic(Player player, Schematic schematic) throws Schematic.WrongVersionException, IOException, NoClipboardException {
2019-11-10 17:31:30 +01:00
switch(Core.getVersion()){
2019-12-20 21:31:42 +01:00
case 15:
return WorldEdit_15.pasteSchematic(player, schematic);
2019-12-20 21:47:39 +01:00
case 14:
return WorldEdit_14.pasteSchematic(player, schematic);
case 10:
return WorldEdit_10.pasteSchematic(player, schematic);
case 9:
return WorldEdit_9.pasteSchematic(player, schematic);
case 8:
return WorldEdit_8.pasteSchematic(player, schematic);
2019-11-10 17:31:30 +01:00
default:
2019-11-20 14:12:17 +01:00
return WorldEdit_12.pasteSchematic(player, schematic);
2019-11-10 17:31:30 +01:00
}
}
}