mirror of
https://github.com/JonasunderscoreJones/ConsoleMC.git
synced 2025-10-22 18:29:18 +02:00
Updated to 1.19.2
This commit is contained in:
parent
42c98121f9
commit
3896d5daa0
6 changed files with 10 additions and 49 deletions
|
@ -3,14 +3,14 @@ org.gradle.jvmargs=-Xmx1G
|
|||
|
||||
# Fabric Properties
|
||||
# check these on https://fabricmc.net/develop
|
||||
minecraft_version=1.19
|
||||
yarn_mappings=1.19+build.1
|
||||
loader_version=0.14.6
|
||||
minecraft_version=1.19.2
|
||||
yarn_mappings=1.19.2+build.8
|
||||
loader_version=0.14.9
|
||||
|
||||
# Mod Properties
|
||||
mod_version = 1.0.0
|
||||
maven_group = com.example
|
||||
archives_base_name = fabric-example-mod
|
||||
mod_version = 0.1.0
|
||||
maven_group = me.jonasjones
|
||||
archives_base_name = consolemc-fabric-quilt
|
||||
|
||||
# Dependencies
|
||||
fabric_version=0.55.1+1.19
|
||||
|
|
|
@ -17,13 +17,11 @@ public class ConsoleMC implements ModInitializer {
|
|||
|
||||
//find out if operating system is windows
|
||||
public static boolean ISWINDOWS = System.getProperty("os.name").toLowerCase().startsWith("windows");
|
||||
public static String OS = System.getProperty("os.name");
|
||||
|
||||
@Override
|
||||
public void onInitialize() {
|
||||
ModConfigs.registerConfigs();
|
||||
//ModConfigs.registerConfigs();
|
||||
registerCommands();
|
||||
LOGGER.info("ConsoleMC initialized!");
|
||||
LOGGER.info("Server running on " + OS);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ public class ModConfigs {
|
|||
private static void createConfigs() {
|
||||
configs.addKeyValuePair(new Pair<>("cmd.enable", true), "whether or not to allow chat command execution.");
|
||||
configs.addKeyValuePair(new Pair<>("cmd.requireOp", true), "whether or not operator level is required in order to run commands.");
|
||||
configs.addKeyValuePair(new Pair<>("cmd.allowCmdBlocks", false), "whether or not commands can be un through command blocks");
|
||||
configs.addKeyValuePair(new Pair<>("cmd.allowCmdBlocks", false), "whether or not commands can be run through command blocks");
|
||||
}
|
||||
|
||||
private static void assignConfigs() {
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
package me.jonasjones.consolemc.mixin;
|
||||
|
||||
import me.jonasjones.consolemc.ConsoleMC;
|
||||
import net.minecraft.client.gui.screen.TitleScreen;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Inject;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||
|
||||
@Mixin(TitleScreen.class)
|
||||
public class ExampleMixin {
|
||||
@Inject(at = @At("HEAD"), method = "init()V")
|
||||
private void init(CallbackInfo info) {
|
||||
|
||||
}
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
{
|
||||
"required": true,
|
||||
"minVersion": "0.8",
|
||||
"package": "me.jonasjones.consolemc.mixin",
|
||||
"compatibilityLevel": "JAVA_17",
|
||||
"mixins": [
|
||||
],
|
||||
"client": [
|
||||
"ExampleMixin"
|
||||
],
|
||||
"injectors": {
|
||||
"defaultRequire": 1
|
||||
}
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"schemaVersion": 1,
|
||||
"id": "consolemc",
|
||||
"version": "v0.0.1-alpha1",
|
||||
"version": "${version}",
|
||||
|
||||
"name": "ConsoleMC",
|
||||
"description": "A mod that allows you to run console commands on the server from the minecraft chat.",
|
||||
|
@ -23,17 +23,10 @@
|
|||
"me.jonasjones.consolemc.ConsoleMC"
|
||||
]
|
||||
},
|
||||
"mixins": [
|
||||
"consolemc.mixins.json"
|
||||
],
|
||||
|
||||
"depends": {
|
||||
"fabricloader": ">=0.14.6",
|
||||
"fabric": "*",
|
||||
"minecraft": "~1.19",
|
||||
"minecraft": ">=1.17-beta.1",
|
||||
"java": ">=17"
|
||||
},
|
||||
"suggests": {
|
||||
"another-mod": "*"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue