From 7db5b2c32cd6e41fc209693022f64d0b1bafa267 Mon Sep 17 00:00:00 2001 From: Louis Vallat Date: Thu, 16 Apr 2020 11:06:32 +0200 Subject: [PATCH] Initial commit --- .gitignore | 3 + pom.xml | 77 +++++++++++++++++++ .../louisvallat/sweetdreams/SweetDreams.java | 21 +++++ src/main/resources/plugin.yml | 8 ++ 4 files changed, 109 insertions(+) create mode 100644 .gitignore create mode 100644 pom.xml create mode 100644 src/main/java/xyz/louisvallat/sweetdreams/SweetDreams.java create mode 100644 src/main/resources/plugin.yml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..395dde9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.iml +.idea/ +target/ \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..e86186c --- /dev/null +++ b/pom.xml @@ -0,0 +1,77 @@ + + + 4.0.0 + + xyz.louis-vallat + SweetDreams + 1.0 + jar + + SweetDreams + + A plugin to enhance the sleeping system on Spigot servers. + + 1.8 + UTF-8 + + louis-vallat.xyz + + + clean package + + + org.apache.maven.plugins + maven-compiler-plugin + 3.7.0 + + ${java.version} + ${java.version} + + + + org.apache.maven.plugins + maven-shade-plugin + 3.1.0 + + + package + + shade + + + false + + + + + + + + src/main/resources + true + + + + + + + spigotmc-repo + https://hub.spigotmc.org/nexus/content/repositories/snapshots/ + + + sonatype + https://oss.sonatype.org/content/groups/public/ + + + + + + org.spigotmc + spigot-api + 1.15.2-R0.1-SNAPSHOT + provided + + + diff --git a/src/main/java/xyz/louisvallat/sweetdreams/SweetDreams.java b/src/main/java/xyz/louisvallat/sweetdreams/SweetDreams.java new file mode 100644 index 0000000..9a7e0b5 --- /dev/null +++ b/src/main/java/xyz/louisvallat/sweetdreams/SweetDreams.java @@ -0,0 +1,21 @@ +package xyz.louisvallat.sweetdreams; + +import org.bukkit.Bukkit; +import org.bukkit.event.Listener; +import org.bukkit.plugin.java.JavaPlugin; + +public final class SweetDreams extends JavaPlugin implements Listener { + + @Override + public void onEnable() { + getLogger().info("Enabling plugin..."); + Bukkit.getServer().getPluginManager().registerEvents(this, this); + getLogger().info("Done enabling."); + } + + @Override + public void onDisable() { + getLogger().info("Disabling plugin..."); + getLogger().info("Done disabling."); + } +} diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml new file mode 100644 index 0000000..f07911d --- /dev/null +++ b/src/main/resources/plugin.yml @@ -0,0 +1,8 @@ +name: SweetDreams +version: ${project.version} +main: xyz.louisvallat.sweetdreams.SweetDreams +api-version: 1.13 +prefix: SweetDreams +authors: [LouisVallat] +description: A plugin to enhance the sleeping system on Spigot servers. +website: louis-vallat.xyz