Added pom.xml and updated to 1.13-R0.1-SNAPSHOT

This commit is contained in:
Jimmy Allen 2018-07-26 18:39:00 +12:00
parent 0d03f5ec80
commit 776ad29261
8 changed files with 175 additions and 3 deletions

25
.vscode/tasks.json vendored Normal file
View File

@ -0,0 +1,25 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "verify",
"type": "shell",
"command": "mvn -B verify",
"group": "build"
},
{
"label": "test",
"type": "shell",
"command": "mvn -B test",
"group": "test"
},
{
"label": "Build",
"type": "shell",
"command": "mvn",
"problemMatcher": []
}
]
}

111
pom.xml Normal file
View File

@ -0,0 +1,111 @@
<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>nz.1248.easyspawn</groupId>
<artifactId>EasySpawn</artifactId>
<!-- Version is used in plugin.yml -->
<version>1.13-R0.1-Snapshot</version>
<packaging>jar</packaging>
<!-- Plugin Information -->
<!-- Name, Description, and URL are used in plugin.yml -->
<name>Easyspawn</name>
<description></description>
<url></url>
<properties>
<!-- Author and MainClass are used in plugin.yml -->
<author>Jimmy Allen</author>
<mainClass>nz.jimmy.easyspawn.EasySpawn</mainClass>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<repositories>
<repository>
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>
</repositories>
<dependencies>
<!--Spigot API-->
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.13-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<!--Bukkit API-->
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>bukkit</artifactId>
<version>1.13-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<sourceDirectory>src/main/java</sourceDirectory>
<defaultGoal>clean install</defaultGoal>
<resources>
<resource>
<directory>src/main/resources</directory>
<!-- Keeping filtering at true here reduces plugin.yml redundancy! -->
<filtering>true</filtering>
<includes>
<include>plugin.yml</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
<!-- Keep filtering at false for other resources to prevent bad magic -->
<filtering>false</filtering>
<excludes>
<exclude>**/*.java</exclude>
<exclude>plugin.yml</exclude>
</excludes>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
<repositories>
<repository>
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>
</repositories>
<dependencies>
<!--Spigot API-->
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.13-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<!--Bukkit API-->
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>bukkit</artifactId>
<version>1.13-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>

View File

@ -1,4 +1,4 @@
package net.jimmy1248.easyspawn;
package nz.jimmy.easyspawn;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;

View File

@ -1,6 +1,6 @@
name: EasySpawn
main: net.jimmy1248.easyspawn.EasySpawn
version: 1.7.5-R0.1
main: nz.jimmy.easyspawn.EasySpawn
version: 1.13-R0.1-Snapshot
commands:
spawn:
description: Teleports you to spawn

29
target/classes/plugin.yml Normal file
View File

@ -0,0 +1,29 @@
name: EasySpawn
main: nz.jimmy.easyspawn.EasySpawn
version: 1.13-R0.1-Snapshot
commands:
spawn:
description: Teleports you to spawn
usage: /spawn
permission: easyspawn.spawn
permission-message: You don't have <permission>
bed:
description: Teleports you to your bed
usage: /bed
permission: easyspawn.bed
permission-message: You don't have <permission>
setspawn:
description: Sets spawn location
usage: /setspawn
permission: easyspawn.setspawn
permission-message: You don't have <permission>
permissions:
easyspawn.spawn:
description: Teleports you to spawn
default: true
easyspawn.bed:
description: Teleports you to your bed
default: true
easyspawn.setspawn:
description: Sets spawn location
default: op

View File

@ -0,0 +1,5 @@
#Generated by Maven
#Thu Jul 26 06:24:12 GMT 2018
version=1.13-R0.1-Snapshot
groupId=nz.1248.easyspawn
artifactId=EasySpawn

View File

@ -0,0 +1 @@
nz/jimmy/easyspawn/EasySpawn.class

View File

@ -0,0 +1 @@
/mnt/d/cloud/Documents/code/Java/EasySpawn/src/main/java/nz/1248/easyspawn/EasySpawn.java