Attempt more fixes

This commit is contained in:
zontreck 2025-02-23 01:13:12 -07:00
parent ddc7fa9952
commit abfaa02ace
6 changed files with 24 additions and 20 deletions

View file

@ -7,10 +7,11 @@ import com.zontreck.Messages;
import com.zontreck.events.CommandExecutionEvent;
import com.zontreck.libzontreck.profiles.Profile;
import com.zontreck.libzontreck.util.ChatHelpers;
import net.minecraft.commands.CommandSourceStack;
import net.minecraft.commands.Commands;
import net.minecraft.server.level.ServerPlayer;
import net.minecraftforge.common.MinecraftForge;
import net.neoforged.neoforge.common.NeoForge;
public class DelHomeCommand {
public static void register(CommandDispatcher<CommandSourceStack> dispatcher)
@ -34,10 +35,11 @@ public class DelHomeCommand {
{
var exec = new CommandExecutionEvent(ctx.getPlayer(), "rmhome");
if(MinecraftForge.EVENT_BUS.post(exec))
if(NeoForge.EVENT_BUS.post(exec))
{
return 0;
}
// Request homes
// String homeName = "";
// CommandSourceStack ctx = ctx2.getSource();