[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);
|
||||
}
|
||||
}
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user