This commit is contained in:
samo_lego 2020-05-14 11:40:43 +02:00
parent 68475009a6
commit aeb07007c8
3 changed files with 19 additions and 11 deletions

View File

@ -6,7 +6,8 @@ plugins {
repositories {
// Carpet mod
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'
// 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 {

View File

@ -2,17 +2,18 @@
org.gradle.jvmargs=-Xmx1G
# Fabric properties
minecraft_version=20w19a
yarn_mappings=20w19a+build.1
minecraft_version=20w20a
yarn_mappings=20w20a+build.1
loader_version=0.8.2+build.194
#Fabric api
fabric_version=0.10.5+build.341-1.16
fabric_version=0.10.9+build.346-1.16
# Mod Properties
mod_version = 1.4.2
maven_group = org.samo_lego
archives_base_name = simpleauth
mod_version = 1.4.2
maven_group = org.samo_lego
archives_base_name = simpleauth
# Carpet for debugging
carpet_core_version = 1.3.22+v200506
#carpet_core_version = 1.3.23+v200513
carpet_branch = 1.16

View File

@ -2,9 +2,9 @@ package org.samo_lego.simpleauth;
import com.google.gson.JsonObject;
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.server.ServerStopCallback;
import net.fabricmc.fabric.api.registry.CommandRegistry;
import net.fabricmc.loader.api.FabricLoader;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.server.MinecraftServer;
@ -85,7 +85,7 @@ public class SimpleAuth implements DedicatedServerModInitializer {
// Registering the commands
CommandRegistry.INSTANCE.register(false, dispatcher -> {
CommandRegistrationCallback.EVENT.register((dispatcher, dedicated) -> {
RegisterCommand.registerCommand(dispatcher);
LoginCommand.registerCommand(dispatcher);
LogoutCommand.registerCommand(dispatcher);