Rename Geyser-Bukkit to Geyser-Spigot

This commit is contained in:
DoctorMacc 2020-06-21 16:27:42 -04:00
commit 63244ade53
16 changed files with 74 additions and 66 deletions

View File

@ -29,12 +29,12 @@ jobs:
with: with:
name: Geyser Standalone name: Geyser Standalone
path: bootstrap/standalone/target/Geyser.jar path: bootstrap/standalone/target/Geyser.jar
- name: Archive artifacts (Geyser Bukkit) - name: Archive artifacts (Geyser Spigot)
uses: actions/upload-artifact@v1 uses: actions/upload-artifact@v1
if: success() if: success()
with: with:
name: Geyser Bukkit name: Geyser Spigot
path: bootstrap/bukkit/target/Geyser-Bukkit.jar path: bootstrap/spigot/target/Geyser-Spigot.jar
- name: Archive artifacts (Geyser BungeeCord) - name: Archive artifacts (Geyser BungeeCord)
uses: actions/upload-artifact@v1 uses: actions/upload-artifact@v1
if: success() if: success()

View File

@ -35,8 +35,8 @@
</repository> </repository>
</repositories> </repositories>
<modules> <modules>
<module>bukkit</module>
<module>bungeecord</module> <module>bungeecord</module>
<module>spigot</module>
<module>sponge</module> <module>sponge</module>
<module>standalone</module> <module>standalone</module>
<module>velocity</module> <module>velocity</module>

View File

@ -9,7 +9,7 @@
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
<relativePath>../</relativePath> <relativePath>../</relativePath>
</parent> </parent>
<artifactId>bootstrap-bukkit</artifactId> <artifactId>bootstrap-spigot</artifactId>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.geysermc</groupId> <groupId>org.geysermc</groupId>
@ -31,7 +31,7 @@
</dependency> </dependency>
</dependencies> </dependencies>
<build> <build>
<finalName>${outputName}-Bukkit</finalName> <finalName>${outputName}-Spigot</finalName>
<resources> <resources>
<resource> <resource>
<directory>src/main/resources/</directory> <directory>src/main/resources/</directory>
@ -46,7 +46,7 @@
<configuration> <configuration>
<archive> <archive>
<manifestEntries> <manifestEntries>
<Main-Class>org.geysermc.platform.bukkit.GeyserBukkitMain</Main-Class> <Main-Class>org.geysermc.platform.spigot.GeyserSpigotMain</Main-Class>
</manifestEntries> </manifestEntries>
</archive> </archive>
</configuration> </configuration>
@ -65,11 +65,11 @@
<relocations> <relocations>
<relocation> <relocation>
<pattern>io.netty</pattern> <pattern>io.netty</pattern>
<shadedPattern>org.geysermc.platform.bukkit.shaded.netty</shadedPattern> <shadedPattern>org.geysermc.platform.spigot.shaded.netty</shadedPattern>
</relocation> </relocation>
<relocation> <relocation>
<pattern>it.unimi.dsi.fastutil</pattern> <pattern>it.unimi.dsi.fastutil</pattern>
<shadedPattern>org.geysermc.platform.bukkit.shaded.fastutil</shadedPattern> <shadedPattern>org.geysermc.platform.spigot.shaded.fastutil</shadedPattern>
</relocation> </relocation>
<relocation> <relocation>
<pattern>com.fasterxml.jackson</pattern> <pattern>com.fasterxml.jackson</pattern>

View File

@ -23,7 +23,7 @@
* @link https://github.com/GeyserMC/Geyser * @link https://github.com/GeyserMC/Geyser
*/ */
package org.geysermc.platform.bukkit; package org.geysermc.platform.spigot;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
@ -38,14 +38,14 @@ import java.nio.file.Paths;
@Getter @Getter
@JsonIgnoreProperties(ignoreUnknown = true) @JsonIgnoreProperties(ignoreUnknown = true)
public class GeyserBukkitConfiguration extends GeyserJacksonConfiguration { public class GeyserSpigotConfiguration extends GeyserJacksonConfiguration {
@JsonProperty("floodgate-key-file") @JsonProperty("floodgate-key-file")
private String floodgateKeyFile; private String floodgateKeyFile;
private Path floodgateKey; private Path floodgateKey;
public void loadFloodgate(GeyserBukkitPlugin plugin) { public void loadFloodgate(GeyserSpigotPlugin plugin) {
Plugin floodgate = Bukkit.getPluginManager().getPlugin("floodgate-bukkit"); Plugin floodgate = Bukkit.getPluginManager().getPlugin("floodgate-bukkit");
floodgateKey = FloodgateKeyLoader.getKey(plugin.getGeyserLogger(), this, Paths.get(plugin.getDataFolder().toString(), plugin.getConfig().getString("floodgate-key-file", "public-key.pem")), floodgate, floodgate != null ? floodgate.getDataFolder().toPath() : null); floodgateKey = FloodgateKeyLoader.getKey(plugin.getGeyserLogger(), this, Paths.get(plugin.getDataFolder().toString(), plugin.getConfig().getString("floodgate-key-file", "public-key.pem")), floodgate, floodgate != null ? floodgate.getDataFolder().toPath() : null);
} }

View File

@ -23,7 +23,7 @@
* @link https://github.com/GeyserMC/Geyser * @link https://github.com/GeyserMC/Geyser
*/ */
package org.geysermc.platform.bukkit; package org.geysermc.platform.spigot;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
@ -33,7 +33,7 @@ import java.util.logging.Level;
import java.util.logging.Logger; import java.util.logging.Logger;
@AllArgsConstructor @AllArgsConstructor
public class GeyserBukkitLogger implements GeyserLogger { public class GeyserSpigotLogger implements GeyserLogger {
private Logger logger; private Logger logger;
private boolean debugMode; private boolean debugMode;

View File

@ -24,14 +24,14 @@
* *
*/ */
package org.geysermc.platform.bukkit; package org.geysermc.platform.spigot;
import org.geysermc.common.main.IGeyserMain; import org.geysermc.common.main.IGeyserMain;
public class GeyserBukkitMain extends IGeyserMain { public class GeyserSpigotMain extends IGeyserMain {
public static void main(String[] args) { public static void main(String[] args) {
new GeyserBukkitMain().displayMessage(); new GeyserSpigotMain().displayMessage();
} }
public String getPluginType() { public String getPluginType() {

View File

@ -24,7 +24,7 @@
* *
*/ */
package org.geysermc.platform.bukkit; package org.geysermc.platform.spigot;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
@ -39,9 +39,9 @@ import java.util.Collections;
import java.util.Iterator; import java.util.Iterator;
@AllArgsConstructor @AllArgsConstructor
public class GeyserBukkitPingPassthrough implements IGeyserPingPassthrough { public class GeyserSpigotPingPassthrough implements IGeyserPingPassthrough {
private final GeyserBukkitLogger logger; private final GeyserSpigotLogger logger;
@Override @Override
public GeyserPingInfo getPingInformation() { public GeyserPingInfo getPingInformation() {

View File

@ -23,7 +23,7 @@
* @link https://github.com/GeyserMC/Geyser * @link https://github.com/GeyserMC/Geyser
*/ */
package org.geysermc.platform.bukkit; package org.geysermc.platform.spigot;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin; import org.bukkit.plugin.java.JavaPlugin;
@ -35,27 +35,27 @@ import org.geysermc.connector.configuration.GeyserConfiguration;
import org.geysermc.connector.network.translators.world.WorldManager; import org.geysermc.connector.network.translators.world.WorldManager;
import org.geysermc.connector.ping.GeyserLegacyPingPassthrough; import org.geysermc.connector.ping.GeyserLegacyPingPassthrough;
import org.geysermc.connector.ping.IGeyserPingPassthrough; import org.geysermc.connector.ping.IGeyserPingPassthrough;
import org.geysermc.platform.spigot.command.GeyserSpigotCommandExecutor;
import org.geysermc.platform.spigot.command.GeyserSpigotCommandManager;
import org.geysermc.platform.spigot.world.GeyserSpigotBlockPlaceListener;
import org.geysermc.platform.spigot.world.GeyserSpigotWorldManager;
import org.geysermc.connector.utils.FileUtils; import org.geysermc.connector.utils.FileUtils;
import org.geysermc.platform.bukkit.command.GeyserBukkitCommandExecutor;
import org.geysermc.platform.bukkit.command.GeyserBukkitCommandManager;
import org.geysermc.platform.bukkit.world.GeyserBukkitBlockPlaceListener;
import org.geysermc.platform.bukkit.world.GeyserBukkitWorldManager;
import us.myles.ViaVersion.api.Via;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path; import java.nio.file.Path;
import java.util.UUID; import java.util.UUID;
import java.util.logging.Level; import java.util.logging.Level;
public class GeyserBukkitPlugin extends JavaPlugin implements GeyserBootstrap { public class GeyserSpigotPlugin extends JavaPlugin implements GeyserBootstrap {
private GeyserBukkitCommandManager geyserCommandManager; private GeyserSpigotCommandManager geyserCommandManager;
private GeyserBukkitConfiguration geyserConfig; private GeyserSpigotConfiguration geyserConfig;
private GeyserBukkitLogger geyserLogger; private GeyserSpigotLogger geyserLogger;
private IGeyserPingPassthrough geyserBukkitPingPassthrough; private IGeyserPingPassthrough geyserSpigotPingPassthrough;
private GeyserBukkitBlockPlaceListener blockPlaceListener; private GeyserSpigotBlockPlaceListener blockPlaceListener;
private GeyserBukkitWorldManager geyserWorldManager; private GeyserSpigotWorldManager geyserWorldManager;
private GeyserConnector connector; private GeyserConnector connector;
@ -63,10 +63,17 @@ public class GeyserBukkitPlugin extends JavaPlugin implements GeyserBootstrap {
public void onEnable() { public void onEnable() {
// This is manually done instead of using Bukkit methods to save the config because otherwise comments get removed // This is manually done instead of using Bukkit methods to save the config because otherwise comments get removed
try { try {
if (!getDataFolder().exists()) if (!getDataFolder().exists()) {
getDataFolder().mkdir(); getDataFolder().mkdir();
File bukkitConfig = new File("plugins/Geyser-Bukkit/config.yml");
if (bukkitConfig.exists()) { // Copy over old configs
getLogger().log(Level.INFO, "Existing config found in the Geyser-Bukkit folder; copying over...");
Files.copy(bukkitConfig.toPath(), new File(getDataFolder().toString() + "/config.yml").toPath());
getLogger().log(Level.INFO, "Copied!");
}
}
File configFile = FileUtils.fileOrCopiedFromResource(new File(getDataFolder(), "config.yml"), "config.yml", (x) -> x.replaceAll("generateduuid", UUID.randomUUID().toString())); File configFile = FileUtils.fileOrCopiedFromResource(new File(getDataFolder(), "config.yml"), "config.yml", (x) -> x.replaceAll("generateduuid", UUID.randomUUID().toString()));
this.geyserConfig = FileUtils.loadConfig(configFile, GeyserBukkitConfiguration.class); this.geyserConfig = FileUtils.loadConfig(configFile, GeyserSpigotConfiguration.class);
} catch (IOException ex) { } catch (IOException ex) {
getLogger().log(Level.WARNING, "Failed to read/create config.yml! Make sure it's up to date and/or readable+writable!", ex); getLogger().log(Level.WARNING, "Failed to read/create config.yml! Make sure it's up to date and/or readable+writable!", ex);
ex.printStackTrace(); ex.printStackTrace();
@ -80,7 +87,7 @@ public class GeyserBukkitPlugin extends JavaPlugin implements GeyserBootstrap {
geyserConfig.getRemote().setPort(Bukkit.getPort()); geyserConfig.getRemote().setPort(Bukkit.getPort());
this.geyserLogger = new GeyserBukkitLogger(getLogger(), geyserConfig.isDebugMode()); this.geyserLogger = new GeyserSpigotLogger(getLogger(), geyserConfig.isDebugMode());
GeyserConfiguration.checkGeyserConfiguration(geyserConfig, geyserLogger); GeyserConfiguration.checkGeyserConfiguration(geyserConfig, geyserLogger);
if (geyserConfig.getRemote().getAuthType().equals("floodgate") && Bukkit.getPluginManager().getPlugin("floodgate-bukkit") == null) { if (geyserConfig.getRemote().getAuthType().equals("floodgate") && Bukkit.getPluginManager().getPlugin("floodgate-bukkit") == null) {
@ -91,15 +98,15 @@ public class GeyserBukkitPlugin extends JavaPlugin implements GeyserBootstrap {
geyserConfig.loadFloodgate(this); geyserConfig.loadFloodgate(this);
this.connector = GeyserConnector.start(PlatformType.BUKKIT, this); this.connector = GeyserConnector.start(PlatformType.SPIGOT, this);
if (geyserConfig.isLegacyPingPassthrough()) { if (geyserConfig.isLegacyPingPassthrough()) {
this.geyserBukkitPingPassthrough = GeyserLegacyPingPassthrough.init(connector); this.geyserSpigotPingPassthrough = GeyserLegacyPingPassthrough.init(connector);
} else { } else {
this.geyserBukkitPingPassthrough = new GeyserBukkitPingPassthrough(geyserLogger); this.geyserSpigotPingPassthrough = new GeyserSpigotPingPassthrough(geyserLogger);
} }
this.geyserCommandManager = new GeyserBukkitCommandManager(this, connector); this.geyserCommandManager = new GeyserSpigotCommandManager(this, connector);
boolean isViaVersion = (Bukkit.getPluginManager().getPlugin("ViaVersion") != null); boolean isViaVersion = (Bukkit.getPluginManager().getPlugin("ViaVersion") != null);
// Used to determine if Block.getBlockData() is present. // Used to determine if Block.getBlockData() is present.
@ -107,11 +114,12 @@ public class GeyserBukkitPlugin extends JavaPlugin implements GeyserBootstrap {
if (isLegacy) if (isLegacy)
geyserLogger.debug("Legacy version of Minecraft (1.12.2 or older) detected."); geyserLogger.debug("Legacy version of Minecraft (1.12.2 or older) detected.");
this.geyserWorldManager = new GeyserBukkitWorldManager(isLegacy, isViaVersion); this.geyserWorldManager = new GeyserSpigotWorldManager(isLegacy, isViaVersion);
this.blockPlaceListener = new GeyserBukkitBlockPlaceListener(connector, isLegacy, isViaVersion); this.blockPlaceListener = new GeyserSpigotBlockPlaceListener(connector, isLegacy, isViaVersion);
Bukkit.getServer().getPluginManager().registerEvents(blockPlaceListener, this); Bukkit.getServer().getPluginManager().registerEvents(blockPlaceListener, this);
this.getCommand("geyser").setExecutor(new GeyserBukkitCommandExecutor(connector)); this.getCommand("geyser").setExecutor(new GeyserSpigotCommandExecutor(connector));
} }
@Override @Override
@ -121,12 +129,12 @@ public class GeyserBukkitPlugin extends JavaPlugin implements GeyserBootstrap {
} }
@Override @Override
public GeyserBukkitConfiguration getGeyserConfig() { public GeyserSpigotConfiguration getGeyserConfig() {
return geyserConfig; return geyserConfig;
} }
@Override @Override
public GeyserBukkitLogger getGeyserLogger() { public GeyserSpigotLogger getGeyserLogger() {
return geyserLogger; return geyserLogger;
} }
@ -137,7 +145,7 @@ public class GeyserBukkitPlugin extends JavaPlugin implements GeyserBootstrap {
@Override @Override
public IGeyserPingPassthrough getGeyserPingPassthrough() { public IGeyserPingPassthrough getGeyserPingPassthrough() {
return geyserBukkitPingPassthrough; return geyserSpigotPingPassthrough;
} }
@Override @Override

View File

@ -23,7 +23,7 @@
* @link https://github.com/GeyserMC/Geyser * @link https://github.com/GeyserMC/Geyser
*/ */
package org.geysermc.platform.bukkit.command; package org.geysermc.platform.spigot.command;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
@ -39,7 +39,7 @@ import java.util.Arrays;
import java.util.List; import java.util.List;
@AllArgsConstructor @AllArgsConstructor
public class GeyserBukkitCommandExecutor implements TabExecutor { public class GeyserSpigotCommandExecutor implements TabExecutor {
private GeyserConnector connector; private GeyserConnector connector;
@ -51,11 +51,11 @@ public class GeyserBukkitCommandExecutor implements TabExecutor {
sender.sendMessage(ChatColor.RED + "You do not have permission to execute this command!"); sender.sendMessage(ChatColor.RED + "You do not have permission to execute this command!");
return true; return true;
} }
getCommand(args[0]).execute(new BukkitCommandSender(sender), args); getCommand(args[0]).execute(new SpigotCommandSender(sender), args);
return true; return true;
} }
} else { } else {
getCommand("help").execute(new BukkitCommandSender(sender), args); getCommand("help").execute(new SpigotCommandSender(sender), args);
return true; return true;
} }
return true; return true;

View File

@ -23,18 +23,18 @@
* @link https://github.com/GeyserMC/Geyser * @link https://github.com/GeyserMC/Geyser
*/ */
package org.geysermc.platform.bukkit.command; package org.geysermc.platform.spigot.command;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.command.Command; import org.bukkit.command.Command;
import org.bukkit.command.CommandMap; import org.bukkit.command.CommandMap;
import org.geysermc.connector.GeyserConnector; import org.geysermc.connector.GeyserConnector;
import org.geysermc.connector.command.CommandManager; import org.geysermc.connector.command.CommandManager;
import org.geysermc.platform.bukkit.GeyserBukkitPlugin; import org.geysermc.platform.spigot.GeyserSpigotPlugin;
import java.lang.reflect.Field; import java.lang.reflect.Field;
public class GeyserBukkitCommandManager extends CommandManager { public class GeyserSpigotCommandManager extends CommandManager {
private static CommandMap COMMAND_MAP; private static CommandMap COMMAND_MAP;
@ -48,9 +48,9 @@ public class GeyserBukkitCommandManager extends CommandManager {
} }
} }
private GeyserBukkitPlugin plugin; private GeyserSpigotPlugin plugin;
public GeyserBukkitCommandManager(GeyserBukkitPlugin plugin, GeyserConnector connector) { public GeyserSpigotCommandManager(GeyserSpigotPlugin plugin, GeyserConnector connector) {
super(connector); super(connector);
this.plugin = plugin; this.plugin = plugin;

View File

@ -23,7 +23,7 @@
* @link https://github.com/GeyserMC/Geyser * @link https://github.com/GeyserMC/Geyser
*/ */
package org.geysermc.platform.bukkit.command; package org.geysermc.platform.spigot.command;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
@ -31,7 +31,7 @@ import org.bukkit.command.ConsoleCommandSender;
import org.geysermc.connector.command.CommandSender; import org.geysermc.connector.command.CommandSender;
@AllArgsConstructor @AllArgsConstructor
public class BukkitCommandSender implements CommandSender { public class SpigotCommandSender implements CommandSender {
private org.bukkit.command.CommandSender handle; private org.bukkit.command.CommandSender handle;

View File

@ -24,7 +24,7 @@
* *
*/ */
package org.geysermc.platform.bukkit.world; package org.geysermc.platform.spigot.world;
import com.nukkitx.math.vector.Vector3f; import com.nukkitx.math.vector.Vector3f;
import com.nukkitx.protocol.bedrock.data.SoundEvent; import com.nukkitx.protocol.bedrock.data.SoundEvent;
@ -39,7 +39,7 @@ import org.geysermc.connector.network.session.GeyserSession;
import org.geysermc.connector.network.translators.world.block.BlockTranslator; import org.geysermc.connector.network.translators.world.block.BlockTranslator;
@AllArgsConstructor @AllArgsConstructor
public class GeyserBukkitBlockPlaceListener implements Listener { public class GeyserSpigotBlockPlaceListener implements Listener {
private final GeyserConnector connector; private final GeyserConnector connector;
private final boolean isLegacy; private final boolean isLegacy;
@ -55,7 +55,7 @@ public class GeyserBukkitBlockPlaceListener implements Listener {
placeBlockSoundPacket.setBabySound(false); placeBlockSoundPacket.setBabySound(false);
String javaBlockId; String javaBlockId;
if (isLegacy) { if (isLegacy) {
javaBlockId = BlockTranslator.getJavaIdBlockMap().inverse().get(GeyserBukkitWorldManager.getLegacyBlock(session, javaBlockId = BlockTranslator.getJavaIdBlockMap().inverse().get(GeyserSpigotWorldManager.getLegacyBlock(session,
event.getBlockPlaced().getX(), event.getBlockPlaced().getY(), event.getBlockPlaced().getZ(), isViaVersion)); event.getBlockPlaced().getX(), event.getBlockPlaced().getY(), event.getBlockPlaced().getZ(), isViaVersion));
} else { } else {
javaBlockId = event.getBlockPlaced().getBlockData().getAsString(); javaBlockId = event.getBlockPlaced().getBlockData().getAsString();

View File

@ -24,7 +24,7 @@
* *
*/ */
package org.geysermc.platform.bukkit.world; package org.geysermc.platform.spigot.world;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
@ -36,7 +36,7 @@ import us.myles.ViaVersion.protocols.protocol1_13_1to1_13.Protocol1_13_1To1_13;
import us.myles.ViaVersion.protocols.protocol1_16to1_15_2.data.MappingData; import us.myles.ViaVersion.protocols.protocol1_16to1_15_2.data.MappingData;
@AllArgsConstructor @AllArgsConstructor
public class GeyserBukkitWorldManager extends WorldManager { public class GeyserSpigotWorldManager extends WorldManager {
private final boolean isLegacy; private final boolean isLegacy;
// You need ViaVersion to connect to an older server with Geyser. // You need ViaVersion to connect to an older server with Geyser.

View File

@ -1,5 +1,5 @@
main: org.geysermc.platform.bukkit.GeyserBukkitPlugin main: org.geysermc.platform.spigot.GeyserSpigotPlugin
name: ${outputName}-Bukkit name: ${outputName}-Spigot
author: ${project.organization.name} author: ${project.organization.name}
website: ${project.organization.url} website: ${project.organization.url}
version: ${project.version} version: ${project.version}

View File

@ -7,8 +7,8 @@ import lombok.Getter;
@AllArgsConstructor @AllArgsConstructor
public enum PlatformType { public enum PlatformType {
BUKKIT("Bukkit"),
BUNGEECORD("BungeeCord"), BUNGEECORD("BungeeCord"),
SPIGOT("Spigot"),
SPONGE("Sponge"), SPONGE("Sponge"),
STANDALONE("Standalone"), STANDALONE("Standalone"),
VELOCITY("Velocity"); VELOCITY("Velocity");

View File

@ -47,7 +47,7 @@ public class JavaBlockChangeTranslator extends PacketTranslator<ServerBlockChang
Position pos = packet.getRecord().getPosition(); Position pos = packet.getRecord().getPosition();
boolean updatePlacement = !(session.getConnector().getConfig().isCacheChunks() && session.getConnector().getWorldManager().getBlockAt(session, pos.getX(), pos.getY(), pos.getZ()) == packet.getRecord().getBlock()); boolean updatePlacement = !(session.getConnector().getConfig().isCacheChunks() && session.getConnector().getWorldManager().getBlockAt(session, pos.getX(), pos.getY(), pos.getZ()) == packet.getRecord().getBlock());
ChunkUtils.updateBlock(session, packet.getRecord().getBlock(), packet.getRecord().getPosition()); ChunkUtils.updateBlock(session, packet.getRecord().getBlock(), packet.getRecord().getPosition());
if (updatePlacement && session.getConnector().getPlatformType() != PlatformType.BUKKIT) { if (updatePlacement && session.getConnector().getPlatformType() != PlatformType.SPIGOT) {
this.checkPlace(session, packet); this.checkPlace(session, packet);
} }
this.checkInteract(session, packet); this.checkInteract(session, packet);