Skip to content

Commit

Permalink
yandex & rename package
Browse files Browse the repository at this point in the history
  • Loading branch information
yyrichy committed Jan 12, 2022
1 parent 85c35cd commit 98246ef
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 15 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
target
.idea
dependency-reduced-pom.xml
VanillaTerra.iml
11 changes: 8 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@
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>org.example</groupId>
<artifactId>VanillaTerra</artifactId>
<version>1.0.3-SNAPSHOT</version>
<groupId>com.github.vaporrrr</groupId>
<artifactId>vanillaterra</artifactId>
<version>1.0.4</version>
<packaging>jar</packaging>

<name>VanillaTerra</name>

<properties>
<maven.compiler.source>16</maven.compiler.source>
Expand Down Expand Up @@ -55,6 +58,7 @@
</dependencies>

<build>
<finalName>${project.name}-${project.version}-SNAPSHOT</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -85,6 +89,7 @@
</excludes>
</filter>
</filters>
<createDependencyReducedPom>false</createDependencyReducedPom>
<minimizeJar>true</minimizeJar>
</configuration>
</execution>
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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.");
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
main: "com.github.vaporrrr.vanillaterra.VanillaTerra"
name: "VanillaTerra"
version: ${project.version}

0 comments on commit 98246ef

Please sign in to comment.