20w20a
This commit is contained in:
parent
68475009a6
commit
aeb07007c8
11
build.gradle
11
build.gradle
|
@ -6,7 +6,8 @@ plugins {
|
||||||
repositories {
|
repositories {
|
||||||
// Carpet mod
|
// Carpet mod
|
||||||
maven {
|
maven {
|
||||||
url 'https://masa.dy.fi/maven'
|
//url 'https://masa.dy.fi/maven'
|
||||||
|
url 'https://jitpack.io'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -44,7 +45,13 @@ dependencies {
|
||||||
include 'net.java.dev.jna:jna:5.5.0'
|
include 'net.java.dev.jna:jna:5.5.0'
|
||||||
|
|
||||||
// carpetMod
|
// carpetMod
|
||||||
modImplementation "carpet:fabric-carpet:${project.minecraft_version}-${project.carpet_core_version}"
|
// from masa's maven
|
||||||
|
//modImplementation "carpet:fabric-carpet:${project.minecraft_version}-${project.carpet_core_version}"
|
||||||
|
|
||||||
|
// jitpack for quicker updating
|
||||||
|
modImplementation "com.github.gnembon:fabric-carpet:${project.carpet_branch}-SNAPSHOT"
|
||||||
|
//tmp twozerobee fix
|
||||||
|
modImplementation "io.github.haykam821:twozerobee-1.0.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
processResources {
|
processResources {
|
||||||
|
|
|
@ -2,17 +2,18 @@
|
||||||
org.gradle.jvmargs=-Xmx1G
|
org.gradle.jvmargs=-Xmx1G
|
||||||
|
|
||||||
# Fabric properties
|
# Fabric properties
|
||||||
minecraft_version=20w19a
|
minecraft_version=20w20a
|
||||||
yarn_mappings=20w19a+build.1
|
yarn_mappings=20w20a+build.1
|
||||||
loader_version=0.8.2+build.194
|
loader_version=0.8.2+build.194
|
||||||
|
|
||||||
#Fabric api
|
#Fabric api
|
||||||
fabric_version=0.10.5+build.341-1.16
|
fabric_version=0.10.9+build.346-1.16
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version = 1.4.2
|
mod_version = 1.4.2
|
||||||
maven_group = org.samo_lego
|
maven_group = org.samo_lego
|
||||||
archives_base_name = simpleauth
|
archives_base_name = simpleauth
|
||||||
|
|
||||||
# Carpet for debugging
|
# Carpet for debugging
|
||||||
carpet_core_version = 1.3.22+v200506
|
#carpet_core_version = 1.3.23+v200513
|
||||||
|
carpet_branch = 1.16
|
||||||
|
|
|
@ -2,9 +2,9 @@ package org.samo_lego.simpleauth;
|
||||||
|
|
||||||
import com.google.gson.JsonObject;
|
import com.google.gson.JsonObject;
|
||||||
import net.fabricmc.api.DedicatedServerModInitializer;
|
import net.fabricmc.api.DedicatedServerModInitializer;
|
||||||
|
import net.fabricmc.fabric.api.command.v1.CommandRegistrationCallback;
|
||||||
import net.fabricmc.fabric.api.event.player.*;
|
import net.fabricmc.fabric.api.event.player.*;
|
||||||
import net.fabricmc.fabric.api.event.server.ServerStopCallback;
|
import net.fabricmc.fabric.api.event.server.ServerStopCallback;
|
||||||
import net.fabricmc.fabric.api.registry.CommandRegistry;
|
|
||||||
import net.fabricmc.loader.api.FabricLoader;
|
import net.fabricmc.loader.api.FabricLoader;
|
||||||
import net.minecraft.entity.player.PlayerEntity;
|
import net.minecraft.entity.player.PlayerEntity;
|
||||||
import net.minecraft.server.MinecraftServer;
|
import net.minecraft.server.MinecraftServer;
|
||||||
|
@ -85,7 +85,7 @@ public class SimpleAuth implements DedicatedServerModInitializer {
|
||||||
|
|
||||||
|
|
||||||
// Registering the commands
|
// Registering the commands
|
||||||
CommandRegistry.INSTANCE.register(false, dispatcher -> {
|
CommandRegistrationCallback.EVENT.register((dispatcher, dedicated) -> {
|
||||||
RegisterCommand.registerCommand(dispatcher);
|
RegisterCommand.registerCommand(dispatcher);
|
||||||
LoginCommand.registerCommand(dispatcher);
|
LoginCommand.registerCommand(dispatcher);
|
||||||
LogoutCommand.registerCommand(dispatcher);
|
LogoutCommand.registerCommand(dispatcher);
|
||||||
|
|
Loading…
Reference in New Issue