szia
This commit is contained in:
24
src/main/java/hu/jgj52/wolfFFA/Commands/WolfFfaCommand.java
Normal file
24
src/main/java/hu/jgj52/wolfFFA/Commands/WolfFfaCommand.java
Normal file
@@ -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<String> onTabComplete(@NotNull CommandSender commandSender, @NotNull Command command, @NotNull String s, @NotNull String[] strings) {
|
||||
return List.of();
|
||||
}
|
||||
}
|
||||
17
src/main/java/hu/jgj52/wolfFFA/WolfFFA.java
Normal file
17
src/main/java/hu/jgj52/wolfFFA/WolfFFA.java
Normal file
@@ -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
|
||||
}
|
||||
}
|
||||
4
src/main/resources/plugin.yml
Normal file
4
src/main/resources/plugin.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
name: WolfFFA
|
||||
version: '1.0'
|
||||
main: hu.jgj52.wolfFFA.WolfFFA
|
||||
api-version: '1.21'
|
||||
Reference in New Issue
Block a user