mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 07:06:44 +01:00
Don't use PaperLib I guess
This commit is contained in:
parent
ec84b91f84
commit
0ca69d4f03
@ -119,7 +119,7 @@ public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain
|
|||||||
|
|
||||||
new PlotSquared(this, "Bukkit");
|
new PlotSquared(this, "Bukkit");
|
||||||
|
|
||||||
if (PaperLib.getMinecraftVersion() < 13 && PaperLib.getMinecraftPatchVersion() < 2) {
|
if (PlotSquared.get().IMP.getServerVersion()[1] < 13) {
|
||||||
System.out.println(
|
System.out.println(
|
||||||
"You can't use this version of PlotSquared on a server less than Minecraft 1.13.2.");
|
"You can't use this version of PlotSquared on a server less than Minecraft 1.13.2.");
|
||||||
System.out
|
System.out
|
||||||
|
@ -14,7 +14,6 @@ import com.github.intellectualsites.plotsquared.plot.util.block.ScopedLocalBlock
|
|||||||
import com.sk89q.worldedit.bukkit.BukkitWorld;
|
import com.sk89q.worldedit.bukkit.BukkitWorld;
|
||||||
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 io.papermc.lib.PaperLib;
|
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.Chunk;
|
import org.bukkit.Chunk;
|
||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
@ -277,7 +276,7 @@ public class BukkitChunkManager extends ChunkManager {
|
|||||||
}
|
}
|
||||||
final LocalBlockQueue queue = GlobalBlockQueue.IMP.getNewQueue(world, false);
|
final LocalBlockQueue queue = GlobalBlockQueue.IMP.getNewQueue(world, false);
|
||||||
if (xxb >= p1x && xxt <= p2x && zzb >= p1z && zzt <= p2z
|
if (xxb >= p1x && xxt <= p2x && zzb >= p1z && zzt <= p2z
|
||||||
&& PaperLib.getMinecraftVersion() == 13) {
|
&& PlotSquared.imp().getServerVersion()[1] == 13) {
|
||||||
AugmentedUtils
|
AugmentedUtils
|
||||||
.bypass(ignoreAugment, () -> queue.regenChunkSafe(chunk.x, chunk.z));
|
.bypass(ignoreAugment, () -> queue.regenChunkSafe(chunk.x, chunk.z));
|
||||||
continue;
|
continue;
|
||||||
|
@ -6,7 +6,6 @@ import com.github.intellectualsites.plotsquared.plot.object.PlotBlock;
|
|||||||
import com.github.intellectualsites.plotsquared.plot.object.StringPlotBlock;
|
import com.github.intellectualsites.plotsquared.plot.object.StringPlotBlock;
|
||||||
import com.github.intellectualsites.plotsquared.plot.util.LegacyMappings;
|
import com.github.intellectualsites.plotsquared.plot.util.LegacyMappings;
|
||||||
import com.github.intellectualsites.plotsquared.plot.util.StringComparison;
|
import com.github.intellectualsites.plotsquared.plot.util.StringComparison;
|
||||||
import io.papermc.lib.PaperLib;
|
|
||||||
import lombok.AccessLevel;
|
import lombok.AccessLevel;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
@ -830,7 +829,7 @@ public final class BukkitLegacyMappings extends LegacyMappings {
|
|||||||
LegacyBlock(final int numericalId, final int dataValue, @NonNull final String legacyName,
|
LegacyBlock(final int numericalId, final int dataValue, @NonNull final String legacyName,
|
||||||
@NonNull final String newName, @NonNull final String new14Name) {
|
@NonNull final String newName, @NonNull final String new14Name) {
|
||||||
this(numericalId, dataValue, legacyName,
|
this(numericalId, dataValue, legacyName,
|
||||||
PaperLib.getMinecraftVersion() == 13 ? newName : new14Name);
|
PlotSquared.get().IMP.getServerVersion()[1] == 13 ? newName : new14Name);
|
||||||
}
|
}
|
||||||
|
|
||||||
LegacyBlock(final int numericalId, @NonNull final String legacyName,
|
LegacyBlock(final int numericalId, @NonNull final String legacyName,
|
||||||
|
@ -11,7 +11,6 @@ import com.github.intellectualsites.plotsquared.plot.util.StringComparison;
|
|||||||
import com.github.intellectualsites.plotsquared.plot.util.UUIDHandler;
|
import com.github.intellectualsites.plotsquared.plot.util.UUIDHandler;
|
||||||
import com.github.intellectualsites.plotsquared.plot.util.WorldUtil;
|
import com.github.intellectualsites.plotsquared.plot.util.WorldUtil;
|
||||||
import com.sk89q.worldedit.bukkit.BukkitWorld;
|
import com.sk89q.worldedit.bukkit.BukkitWorld;
|
||||||
import io.papermc.lib.PaperLib;
|
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
@ -355,7 +354,7 @@ import java.util.Set;
|
|||||||
} else if (world.getBlockAt(x, y, z - 1).getType().isSolid()) {
|
} else if (world.getBlockAt(x, y, z - 1).getType().isSolid()) {
|
||||||
facing = BlockFace.SOUTH;
|
facing = BlockFace.SOUTH;
|
||||||
}
|
}
|
||||||
if (PaperLib.getMinecraftVersion() == 13) {
|
if (PlotSquared.get().IMP.getServerVersion()[1] == 13) {
|
||||||
block.setType(Material.valueOf("WALL_SIGN"), false);
|
block.setType(Material.valueOf("WALL_SIGN"), false);
|
||||||
} else if (PaperLib.getMinecraftVersion() == 14) {
|
} else if (PaperLib.getMinecraftVersion() == 14) {
|
||||||
block.setType(Material.OAK_WALL_SIGN, false);
|
block.setType(Material.OAK_WALL_SIGN, false);
|
||||||
|
Loading…
Reference in New Issue
Block a user