A Minecraft PaperMC plugin for a private survival server.
0

Configure Feed

Select the types of activity you want to include in your feed.

Cmd -> commands.Main

Lukiiy (May 9, 2026, 1:50 AM -0300) 9877bb55 bdc5658b

+6 -4
+3 -2
src/main/java/me/lukiiy/grill/Cmd.java src/main/java/me/lukiiy/grill/commands/Main.java
··· 1 - package me.lukiiy.grill; 1 + package me.lukiiy.grill.commands; 2 2 3 3 import io.papermc.paper.command.brigadier.BasicCommand; 4 4 import io.papermc.paper.command.brigadier.CommandSourceStack; 5 + import me.lukiiy.grill.Grill; 5 6 import net.kyori.adventure.text.Component; 6 7 import org.jspecify.annotations.Nullable; 7 8 8 - public class Cmd implements BasicCommand { 9 + public class Main implements BasicCommand { 9 10 @Override 10 11 public void execute(CommandSourceStack commandSourceStack, String[] args) { 11 12 if (args.length == 0) {
+3 -2
src/main/java/me/lukiiy/grill/Grill.java
··· 1 1 package me.lukiiy.grill; 2 2 3 3 import io.papermc.paper.plugin.lifecycle.event.types.LifecycleEvents; 4 + import me.lukiiy.grill.commands.Main; 4 5 import org.bukkit.plugin.PluginManager; 5 6 import org.bukkit.plugin.java.JavaPlugin; 6 7 ··· 15 16 16 17 pluginManager.registerEvents(new Listen(), this); 17 18 pluginManager.registerEvents(new Oppe(), this); 18 - 19 + 19 20 setupDiscordWebhook(); 20 21 21 22 if (discordHook != null) discordHook.sendMessage(getConfig().getString("dcWebhook.start")); 22 23 23 24 getLifecycleManager().registerEventHandler(LifecycleEvents.COMMANDS, (event) -> { 24 - event.registrar().register("grill", "Recarrega Grill", new Cmd()); 25 + event.registrar().register("grill", "Recarrega Grill", new Main()); 25 26 }); 26 27 } 27 28