[CHANGE] Add abstracted command function for SDLink
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user