Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Stuqad authored Jul 12, 2024
1 parent 0d0028f commit edb8070
Show file tree
Hide file tree
Showing 13 changed files with 142 additions and 0 deletions.
72 changes: 72 additions & 0 deletions sEndBoatFixer/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>uk.Stuqad</groupId>
<artifactId>sEndBoatFixer</artifactId>
<version>1.0</version>
<packaging>jar</packaging>

<name>sEndBoatFixer</name>

<description>This plugin is fixing boats in end</description>
<properties>
<java.version>1.8</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>

<repositories>
<repository>
<id>papermc-repo</id>
<url>https://repo.papermc.io/repository/maven-public/</url>
</repository>
<repository>
<id>sonatype</id>
<url>https://oss.sonatype.org/content/groups/public/</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>com.destroystokyo.paper</groupId>
<artifactId>paper-api</artifactId>
<version>1.16.5-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
14 changes: 14 additions & 0 deletions sEndBoatFixer/sEndBoatFixer.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<module version="4">
<component name="FacetManager">
<facet type="minecraft" name="Minecraft">
<configuration>
<autoDetectTypes>
<platformType>PAPER</platformType>
<platformType>ADVENTURE</platformType>
</autoDetectTypes>
<projectReimportVersion>1</projectReimportVersion>
</configuration>
</facet>
</component>
</module>
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package uk.stuqad.sendboatfixer.Listeners;

import org.bukkit.World;
import org.bukkit.event.EventHandler;
import org.bukkit.event.entity.EntityTeleportEvent;

public class OnEntityTeleportEvent {
@EventHandler
public void onEntityTeleportEvent(EntityTeleportEvent event) {
if (event.getEntity().getWorld().getEnvironment().equals(World.Environment.THE_END) && !event.getEntity().isEmpty()) {
event.setCancelled(true);
}

}
}
22 changes: 22 additions & 0 deletions sEndBoatFixer/src/main/java/uk/stuqad/sendboatfixer/Main.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package uk.stuqad.sendboatfixer;

import org.bukkit.event.Listener;
import org.bukkit.plugin.java.JavaPlugin;
import uk.stuqad.sendboatfixer.Listeners.OnEntityTeleportEvent;

public final class Main extends JavaPlugin {

@Override
public void onEnable() {
System.out.println("==============================");
System.out.println("[sEndBoatFixer] Plugin is on");
System.out.println("==============================");
}

@Override
public void onDisable() {
System.out.println("==============================");
System.out.println("[sEndBoatFixer] Plugin is off");
System.out.println("==============================");
}
}
6 changes: 6 additions & 0 deletions sEndBoatFixer/src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: sEndBoatFixer
version: '${project.version}'
main: uk.stuqad.sendboatfixer.Main
api-version: '1.16'
authors: [Stuqad]
description: This plugin is fixing boats in end
6 changes: 6 additions & 0 deletions sEndBoatFixer/target/classes/plugin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: sEndBoatFixer
version: '1.0'
main: uk.stuqad.sendboatfixer.Main
api-version: '1.16'
authors: [Stuqad]
description: This plugin is fixing boats in end
Binary file not shown.
Binary file not shown.
3 changes: 3 additions & 0 deletions sEndBoatFixer/target/maven-archiver/pom.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
artifactId=sEndBoatFixer
groupId=uk.Stuqad
version=1.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
uk\stuqad\sendboatfixer\Main.class
uk\stuqad\sendboatfixer\Listeners\OnEntityTeleportEvent.class
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
C:\Users\banol\IdeaProjects\sEndBoatFixer\src\main\java\uk\stuqad\sendboatfixer\Listeners\OnEntityTeleportEvent.java
C:\Users\banol\IdeaProjects\sEndBoatFixer\src\main\java\uk\stuqad\sendboatfixer\Main.java
Binary file not shown.
Binary file added sEndBoatFixer/target/sEndBoatFixer-1.0-shaded.jar
Binary file not shown.

0 comments on commit edb8070

Please sign in to comment.