This commit is contained in:
Kiran Hart 2021-12-14 14:00:41 -05:00
parent 4fdd4e552d
commit f1dbcc4eea
3 changed files with 34 additions and 0 deletions

22
pom.xml
View File

@ -179,6 +179,16 @@
<id>neetgames</id>
<url>https://nexus.neetgames.com/repository/maven-releases/</url>
</repository>
<repository>
<id>opencollab-snapshot-repo</id>
<url>https://repo.opencollab.dev/maven-snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<dependencies>
<dependency>
@ -230,6 +240,18 @@
<version>1.4.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.geysermc</groupId>
<artifactId>core</artifactId>
<version>2.0.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.geysermc.floodgate</groupId>
<artifactId>api</artifactId>
<version>2.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,10 @@
package ca.tweetzy.auctionhouse.api.hook;
/**
* The current file has been created by Kiran Hart
* Date Created: December 14 2021
* Time Created: 1:57 p.m.
* Usage of any code found within this class is prohibited unless given explicit permission otherwise
*/
public final class FloodGateHook {
}

View File

@ -73,6 +73,8 @@ public class PlayerListeners implements Listener {
@EventHandler
public void onAuctionChestClick(PlayerInteractEvent e) {
if (ServerVersion.isServerVersionBelow(ServerVersion.V1_14)) return;
final Player player = e.getPlayer();
final Block block = e.getClickedBlock();