-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
142 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
15 changes: 15 additions & 0 deletions
15
sEndBoatFixer/src/main/java/uk/stuqad/sendboatfixer/Listeners/OnEntityTeleportEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
22
sEndBoatFixer/src/main/java/uk/stuqad/sendboatfixer/Main.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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("=============================="); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 added
BIN
+1.17 KB
sEndBoatFixer/target/classes/uk/stuqad/sendboatfixer/Listeners/OnEntityTeleportEvent.class
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
artifactId=sEndBoatFixer | ||
groupId=uk.Stuqad | ||
version=1.0 |
2 changes: 2 additions & 0 deletions
2
...tFixer/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
2 changes: 2 additions & 0 deletions
2
...oatFixer/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.