mirror of
https://github.com/JonasunderscoreJones/ConsoleMC.git
synced 2025-10-23 02:39:17 +02:00
bumped version number and small fix
This commit is contained in:
parent
708c76af44
commit
a2d8b4c471
2 changed files with 10 additions and 8 deletions
|
@ -4,15 +4,15 @@ org.gradle.parallel=true
|
||||||
|
|
||||||
# Fabric Properties
|
# Fabric Properties
|
||||||
# check these on https://fabricmc.net/develop
|
# check these on https://fabricmc.net/develop
|
||||||
minecraft_version=1.19.4-rc2
|
minecraft_version=1.20.1
|
||||||
yarn_mappings=1.19.4-rc2+build.1
|
yarn_mappings=1.20.1+build.10
|
||||||
loader_version=0.14.17
|
loader_version=0.14.22
|
||||||
|
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version = 0.1.0.1
|
mod_version = 0.1.1
|
||||||
maven_group = me.jonasjones
|
maven_group = me.jonasjones
|
||||||
archives_base_name = consolemc-fabric-quilt
|
archives_base_name = consolemc-fabric-quilt
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
fabric_version=0.75.3+1.19.4
|
fabric_version=0.88.1+1.20.1
|
||||||
|
|
|
@ -10,6 +10,8 @@ import net.minecraft.server.command.CommandManager;
|
||||||
import net.minecraft.server.command.ServerCommandSource;
|
import net.minecraft.server.command.ServerCommandSource;
|
||||||
import net.minecraft.text.Text;
|
import net.minecraft.text.Text;
|
||||||
|
|
||||||
|
import java.util.function.Supplier;
|
||||||
|
|
||||||
public class RunCommand {
|
public class RunCommand {
|
||||||
public static void register(CommandDispatcher<ServerCommandSource> serverCommandSourceCommandDispatcher, CommandRegistryAccess commandRegistryAccess, CommandManager.RegistrationEnvironment registrationEnvironment) {
|
public static void register(CommandDispatcher<ServerCommandSource> serverCommandSourceCommandDispatcher, CommandRegistryAccess commandRegistryAccess, CommandManager.RegistrationEnvironment registrationEnvironment) {
|
||||||
serverCommandSourceCommandDispatcher.register((CommandManager.literal("cmd").requires(source -> source.hasPermissionLevel(4))
|
serverCommandSourceCommandDispatcher.register((CommandManager.literal("cmd").requires(source -> source.hasPermissionLevel(4))
|
||||||
|
@ -18,7 +20,7 @@ public class RunCommand {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
public static void broadcastToOP(String message, CommandContext<ServerCommandSource> context) {
|
public static void broadcastToOP(String message, CommandContext<ServerCommandSource> context) {
|
||||||
context.getSource().sendFeedback(Text.of(message), true);
|
context.getSource().sendFeedback(() -> Text.of(message), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int run(String command, CommandContext<ServerCommandSource> context) {
|
public static int run(String command, CommandContext<ServerCommandSource> context) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue