diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..6e0b155 --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..aa00ffa --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml new file mode 100644 index 0000000..861936a --- /dev/null +++ b/.idea/jarRepositories.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..2ca0d1f --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..b305fef --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/PlayerBoss.iml b/PlayerBoss.iml new file mode 100644 index 0000000..f3aa7ed --- /dev/null +++ b/PlayerBoss.iml @@ -0,0 +1,31 @@ + + + + + + + SPIGOT + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..d41cf86 --- /dev/null +++ b/pom.xml @@ -0,0 +1,74 @@ + + + 4.0.0 + + tech.nevets + PlayerBoss + 1.0 + jar + + PlayerBoss + + + 1.8 + UTF-8 + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.1 + + ${java.version} + ${java.version} + + + + org.apache.maven.plugins + maven-shade-plugin + 3.2.4 + + + 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.17.1-R0.1-SNAPSHOT + provided + + + diff --git a/src/main/java/tech/nevets/playerboss/Bar.java b/src/main/java/tech/nevets/playerboss/Bar.java new file mode 100644 index 0000000..2239184 --- /dev/null +++ b/src/main/java/tech/nevets/playerboss/Bar.java @@ -0,0 +1,28 @@ +package tech.nevets.playerboss; + +import org.bukkit.Bukkit; +import org.bukkit.boss.BossBar; +import org.bukkit.entity.Player; + +public class Bar { + + private int taskID = -1; + private final PlayerBoss plugin; + private BossBar bar; + + public Bar(PlayerBoss plugin) { + this.plugin = plugin; + } + + public void addPlayer(Player player) { + bar.addPlayer(player); + } + + public BossBar getBar() { + return bar; + } + + public void createBar() { + bar = Bukkit.createBossBar(title, color, style, flags); + } +} diff --git a/src/main/java/tech/nevets/playerboss/PlayerBoss.java b/src/main/java/tech/nevets/playerboss/PlayerBoss.java new file mode 100644 index 0000000..fe817d4 --- /dev/null +++ b/src/main/java/tech/nevets/playerboss/PlayerBoss.java @@ -0,0 +1,17 @@ +package tech.nevets.playerboss; + +import org.bukkit.plugin.java.JavaPlugin; + +public final class PlayerBoss extends JavaPlugin { + + @Override + public void onEnable() { + // Plugin startup logic + + } + + @Override + public void onDisable() { + // Plugin shutdown logic + } +} diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml new file mode 100644 index 0000000..467adea --- /dev/null +++ b/src/main/resources/plugin.yml @@ -0,0 +1,4 @@ +name: PlayerBoss +version: ${project.version} +main: tech.nevets.playerboss.PlayerBoss +api-version: 1.17