-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Javadoc, version bump (dutchycore), hometeleportevent
- Loading branch information
TheDutchMC
committed
Feb 10, 2021
1 parent
c5e64ac
commit 34f781e
Showing
7 changed files
with
96 additions
and
18 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 |
---|---|---|
|
@@ -3,9 +3,11 @@ import org.apache.tools.ant.filters.ReplaceTokens | |
plugins { | ||
id 'java' | ||
id 'eclipse' | ||
id 'maven-publish' | ||
} | ||
|
||
version = '2.1.0' | ||
version = '2.1.2' | ||
group = 'nl.thedutchmc' | ||
|
||
sourceCompatibility = 1.11 | ||
targetCompatibility = 1.11 | ||
|
@@ -16,6 +18,11 @@ processResources { | |
} | ||
} | ||
|
||
java { | ||
withSourcesJar() | ||
withJavadocJar() | ||
} | ||
|
||
repositories { | ||
jcenter() | ||
maven{ url "https://hub.spigotmc.org/nexus/content/repositories/snapshots" } | ||
|
@@ -26,12 +33,12 @@ repositories { | |
|
||
dependencies { | ||
//Dev only: | ||
//compileOnly 'nl.thedutchmc:dutchycore:0.0.33' | ||
//compileOnly 'nl.thedutchmc:dutchycore:0.0.47' | ||
//compileOnly 'nl.thedutchmc:offlineplayers:1.1.0' | ||
|
||
//bug in jitpack, cant use nl.thedutchmc here :/ | ||
compileOnly 'com.github.DutchyPlugins:DutchyCore:0.0.34' | ||
compileOnly 'com.github.DutchyPlugins:OfflinePlayers:1.1.0' | ||
compileOnly 'com.github.DutchyPlugins:DutchyCore:0.0.47' | ||
compileOnly 'com.github.DutchyPlugins:OfflinePlayers:1.1.1' | ||
|
||
//Spigot API | ||
compileOnly 'org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT' | ||
|
@@ -47,3 +54,26 @@ task ghActions(type: Jar) { | |
|
||
destinationDirectory = file("$rootDir/actions") | ||
} | ||
|
||
publishing { | ||
publications { | ||
mavenJava(MavenPublication) { | ||
artifactId = 'dutchyhome' | ||
from components.java | ||
|
||
pom { | ||
name = 'DutchyHome' | ||
description = 'DutchyHome plugin' | ||
url = 'https://thedutchmc.nl' | ||
|
||
developers { | ||
developer { | ||
id = 'thedutchmc' | ||
name = 'Tobias de Bruijn' | ||
email = '[email protected]' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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
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
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
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
42 changes: 42 additions & 0 deletions
42
src/main/java/nl/thedutchmc/dutchyhome/events/HomeTeleportEvent.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,42 @@ | ||
package nl.thedutchmc.dutchyhome.events; | ||
|
||
import org.bukkit.Location; | ||
import org.bukkit.entity.Player; | ||
|
||
import nl.thedutchmc.dutchycore.module.events.ModuleEvent; | ||
|
||
public class HomeTeleportEvent extends ModuleEvent { | ||
|
||
private Player teleportedPlayer; | ||
private Location preTeleportLocation, postTeleportLocation; | ||
|
||
public HomeTeleportEvent(Player teleportedPlayer, Location preTeleportLocation, Location postTeleportLocation) { | ||
this.teleportedPlayer = teleportedPlayer; | ||
this.preTeleportLocation = preTeleportLocation; | ||
this.postTeleportLocation = postTeleportLocation; | ||
} | ||
|
||
/** | ||
* Get the player that was teleported | ||
* @return Returns a player | ||
*/ | ||
public Player getTeleportedPlayer() { | ||
return this.teleportedPlayer; | ||
} | ||
|
||
/** | ||
* Get the location the player was at before they got teleported | ||
* @return Returns a Location | ||
*/ | ||
public Location getPreTeleportLocation() { | ||
return this.preTeleportLocation; | ||
} | ||
|
||
/** | ||
* Get the location the player was teleported to | ||
* @return Returns a Location | ||
*/ | ||
public Location getPostTeleportLocation() { | ||
return this.postTeleportLocation; | ||
} | ||
} |
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