[CHANGE] Add abstracted command function for SDLink

This commit is contained in:
2024-03-17 15:09:17 +02:00
parent 11ec3b84e3
commit 62ee369226
2 changed files with 5 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
package com.hypherionmc.craterlib.core.abstraction.server;
import net.minecraft.commands.CommandSourceStack;
import net.minecraft.network.chat.MutableComponent;
import net.minecraft.server.MinecraftServer;
@@ -9,4 +10,7 @@ public class AbstractServer {
server.getPlayerList().broadcastSystemMessage(message, false);
}
public static void executeCommand(MinecraftServer server, CommandSourceStack stack, String command) {
server.getCommands().performPrefixedCommand(stack, command);
}
}

View File

@@ -1,7 +1,7 @@
#Project
version_major=1
version_minor=1
version_patch=0
version_patch=1
project_group=com.hypherionmc.craterlib
#Mod
mod_author=HypherionSA