diff --git a/.gitignore b/.gitignore index 968cb1a..ac5bf36 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ target .idea -dependency-reduced-pom.xml VanillaTerra.iml \ No newline at end of file diff --git a/pom.xml b/pom.xml index 2a4c27c..01249df 100644 --- a/pom.xml +++ b/pom.xml @@ -4,9 +4,12 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - org.example - VanillaTerra - 1.0.3-SNAPSHOT + com.github.vaporrrr + vanillaterra + 1.0.4 + jar + + VanillaTerra 16 @@ -55,6 +58,7 @@ + ${project.name}-${project.version}-SNAPSHOT org.apache.maven.plugins @@ -85,6 +89,7 @@ + false true diff --git a/src/main/java/me/vapor/vanillaterra/VanillaTerra.java b/src/main/java/com/github/vaporrrr/vanillaterra/VanillaTerra.java similarity index 69% rename from src/main/java/me/vapor/vanillaterra/VanillaTerra.java rename to src/main/java/com/github/vaporrrr/vanillaterra/VanillaTerra.java index 0e72d68..c6980c8 100644 --- a/src/main/java/me/vapor/vanillaterra/VanillaTerra.java +++ b/src/main/java/com/github/vaporrrr/vanillaterra/VanillaTerra.java @@ -1,8 +1,8 @@ -package me.vapor.vanillaterra; +package com.github.vaporrrr.vanillaterra; -import me.vapor.vanillaterra.commands.Distortion; -import me.vapor.vanillaterra.commands.Tpll; -import me.vapor.vanillaterra.commands.Where; +import com.github.vaporrrr.vanillaterra.commands.Distortion; +import com.github.vaporrrr.vanillaterra.commands.Tpll; +import com.github.vaporrrr.vanillaterra.commands.Where; import org.bukkit.plugin.java.JavaPlugin; import java.util.Objects; diff --git a/src/main/java/me/vapor/vanillaterra/commands/Distortion.java b/src/main/java/com/github/vaporrrr/vanillaterra/commands/Distortion.java similarity index 98% rename from src/main/java/me/vapor/vanillaterra/commands/Distortion.java rename to src/main/java/com/github/vaporrrr/vanillaterra/commands/Distortion.java index c42f569..53be127 100644 --- a/src/main/java/me/vapor/vanillaterra/commands/Distortion.java +++ b/src/main/java/com/github/vaporrrr/vanillaterra/commands/Distortion.java @@ -1,4 +1,4 @@ -package me.vapor.vanillaterra.commands; +package com.github.vaporrrr.vanillaterra.commands; import net.buildtheearth.terraminusminus.generator.EarthGeneratorSettings; import net.buildtheearth.terraminusminus.projection.GeographicProjection; diff --git a/src/main/java/me/vapor/vanillaterra/commands/Tpll.java b/src/main/java/com/github/vaporrrr/vanillaterra/commands/Tpll.java similarity index 99% rename from src/main/java/me/vapor/vanillaterra/commands/Tpll.java rename to src/main/java/com/github/vaporrrr/vanillaterra/commands/Tpll.java index 134baed..1e33478 100644 --- a/src/main/java/me/vapor/vanillaterra/commands/Tpll.java +++ b/src/main/java/com/github/vaporrrr/vanillaterra/commands/Tpll.java @@ -1,4 +1,4 @@ -package me.vapor.vanillaterra.commands; +package com.github.vaporrrr.vanillaterra.commands; import net.buildtheearth.terraminusminus.generator.EarthGeneratorSettings; import net.buildtheearth.terraminusminus.projection.GeographicProjection; diff --git a/src/main/java/me/vapor/vanillaterra/commands/Where.java b/src/main/java/com/github/vaporrrr/vanillaterra/commands/Where.java similarity index 91% rename from src/main/java/me/vapor/vanillaterra/commands/Where.java rename to src/main/java/com/github/vaporrrr/vanillaterra/commands/Where.java index 737a259..2542e6e 100644 --- a/src/main/java/me/vapor/vanillaterra/commands/Where.java +++ b/src/main/java/com/github/vaporrrr/vanillaterra/commands/Where.java @@ -1,4 +1,4 @@ -package me.vapor.vanillaterra.commands; +package com.github.vaporrrr.vanillaterra.commands; import net.buildtheearth.terraminusminus.generator.EarthGeneratorSettings; import net.buildtheearth.terraminusminus.projection.GeographicProjection; @@ -50,7 +50,8 @@ public boolean onCommand(CommandSender commandSender, @NotNull Command command, .append(Component.text(", ", NamedTextColor.GRAY).decoration(TextDecoration.BOLD, true)) .append(Component.text(c[0], NamedTextColor.GREEN).decoration(TextDecoration.BOLD, true))).clickEvent(ClickEvent.copyToClipboard(c[1] + " " + c[0])) .append(Component.text("\n"))) - .append(Component.text("[Google Maps Link]", NamedTextColor.YELLOW).clickEvent(ClickEvent.openUrl("https://www.google.com/maps/search/?api=1&query=" + c[1] + "," + c[0])).decoration(TextDecoration.BOLD, true)); + .append(Component.text("[Google Maps Link]", NamedTextColor.YELLOW).clickEvent(ClickEvent.openUrl("https://www.google.com/maps/search/?api=1&query=" + c[1] + "," + c[0])).decoration(TextDecoration.BOLD, true)) + .append(Component.text(" [Yandex Link]", NamedTextColor.YELLOW).clickEvent(ClickEvent.openUrl("https://yandex.com/maps/?ll=" + c[0] + "%2C" + c[1] + "z=10")).decoration(TextDecoration.BOLD, true)); commandSender.sendMessage(textComponent); }catch(Exception e){ commandSender.sendMessage("A unknown error occurred. Please contact the server's developers."); diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 6d43ad3..6b7ff04 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -38,6 +38,6 @@ permissions: description: "Allows usage of /distortion" vt.terra.where: description: "Allows usage of /where" -main: me.vapor.vanillaterra.VanillaTerra -name: VanillaTerra -version: "1.0.2" \ No newline at end of file +main: "com.github.vaporrrr.vanillaterra.VanillaTerra" +name: "VanillaTerra" +version: ${project.version} \ No newline at end of file