From 408f1ccc33e84a088be39ebda4fe3776a26f78d4 Mon Sep 17 00:00:00 2001 From: jgj52 Date: Sun, 16 Feb 2025 00:01:03 +0100 Subject: [PATCH] szia --- .idea/.gitignore | 3 + pom.xml | 72 +++++++++++++++++++ .../wolfFFA/Commands/WolfFfaCommand.java | 24 +++++++ src/main/java/hu/jgj52/wolfFFA/WolfFFA.java | 17 +++++ src/main/resources/plugin.yml | 4 ++ 5 files changed, 120 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 pom.xml create mode 100644 src/main/java/hu/jgj52/wolfFFA/Commands/WolfFfaCommand.java create mode 100644 src/main/java/hu/jgj52/wolfFFA/WolfFFA.java create mode 100644 src/main/resources/plugin.yml 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/pom.xml b/pom.xml new file mode 100644 index 0000000..2f609b8 --- /dev/null +++ b/pom.xml @@ -0,0 +1,72 @@ + + + 4.0.0 + + hu.jgj52 + WolfFFA + 1.0 + jar + + WolfFFA + + + 21 + UTF-8 + + + + clean package + + + org.apache.maven.plugins + maven-compiler-plugin + 3.13.0 + + ${java.version} + ${java.version} + + + + org.apache.maven.plugins + maven-shade-plugin + 3.5.3 + + + package + + shade + + + + + + + + src/main/resources + true + + + + + + + papermc-repo + https://repo.papermc.io/repository/maven-public/ + + + sonatype + https://oss.sonatype.org/content/groups/public/ + + + + + + io.papermc.paper + paper-api + 1.21.1-R0.1-SNAPSHOT + provided + + + diff --git a/src/main/java/hu/jgj52/wolfFFA/Commands/WolfFfaCommand.java b/src/main/java/hu/jgj52/wolfFFA/Commands/WolfFfaCommand.java new file mode 100644 index 0000000..a8c0c0c --- /dev/null +++ b/src/main/java/hu/jgj52/wolfFFA/Commands/WolfFfaCommand.java @@ -0,0 +1,24 @@ +package hu.jgj52.wolfFFA.Commands; + +import org.bukkit.command.Command; +import org.bukkit.command.CommandExecutor; +import org.bukkit.command.CommandSender; +import org.bukkit.command.TabCompleter; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; + +import java.util.List; + +public class WolfFfaCommand implements CommandExecutor, TabCompleter { + + @Override + public boolean onCommand(@NotNull CommandSender commandSender, @NotNull Command command, @NotNull String s, @NotNull String[] strings) { + + return true; + } + + @Override + public @Nullable List onTabComplete(@NotNull CommandSender commandSender, @NotNull Command command, @NotNull String s, @NotNull String[] strings) { + return List.of(); + } +} diff --git a/src/main/java/hu/jgj52/wolfFFA/WolfFFA.java b/src/main/java/hu/jgj52/wolfFFA/WolfFFA.java new file mode 100644 index 0000000..2bae5d6 --- /dev/null +++ b/src/main/java/hu/jgj52/wolfFFA/WolfFFA.java @@ -0,0 +1,17 @@ +package hu.jgj52.wolfFFA; + +import org.bukkit.plugin.java.JavaPlugin; + +public final class WolfFFA extends JavaPlugin { + + @Override + public void onEnable() { + // Plugin startup logic + getCommand("wolfffa").setExecutor(new WolfFfaCommand); + } + + @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..564ea75 --- /dev/null +++ b/src/main/resources/plugin.yml @@ -0,0 +1,4 @@ +name: WolfFFA +version: '1.0' +main: hu.jgj52.wolfFFA.WolfFFA +api-version: '1.21'