1.19.2
This commit is contained in:
parent
ac8fac4947
commit
8f9cca1e32
4 changed files with 13 additions and 12 deletions
|
@ -12,7 +12,7 @@ apply plugin: 'net.minecraftforge.gradle'
|
||||||
apply plugin: 'eclipse'
|
apply plugin: 'eclipse'
|
||||||
apply plugin: 'maven-publish'
|
apply plugin: 'maven-publish'
|
||||||
|
|
||||||
version = '1.18.2-1.1.1'
|
version = '1.19.2-1.1.1'
|
||||||
group = 'com.github.jinks.extbackup' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
group = 'com.github.jinks.extbackup' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||||
archivesBaseName = 'ExtBackup'
|
archivesBaseName = 'ExtBackup'
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ minecraft {
|
||||||
//
|
//
|
||||||
// Use non-default mappings at your own risk. they may not always work.
|
// Use non-default mappings at your own risk. they may not always work.
|
||||||
// Simply re-run your setup task after changing the mappings to update your workspace.
|
// Simply re-run your setup task after changing the mappings to update your workspace.
|
||||||
mappings channel: 'official', version: '1.18.2'
|
mappings channel: 'official', version: '1.19.2'
|
||||||
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
|
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
|
||||||
|
|
||||||
// accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
|
// accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
|
||||||
|
@ -117,7 +117,7 @@ dependencies {
|
||||||
// Specify the version of Minecraft to use, If this is any group other then 'net.minecraft' it is assumed
|
// Specify the version of Minecraft to use, If this is any group other then 'net.minecraft' it is assumed
|
||||||
// that the dep is a ForgeGradle 'patcher' dependency. And it's patches will be applied.
|
// that the dep is a ForgeGradle 'patcher' dependency. And it's patches will be applied.
|
||||||
// The userdev artifact is a special name and will get all sorts of transformations applied to it.
|
// The userdev artifact is a special name and will get all sorts of transformations applied to it.
|
||||||
minecraft 'net.minecraftforge:forge:1.18.2-40.1.31'
|
minecraft 'net.minecraftforge:forge:1.19.2-43.3.0'
|
||||||
|
|
||||||
// You may put jars on which you depend on in ./libs or you may define them like so..
|
// You may put jars on which you depend on in ./libs or you may define them like so..
|
||||||
// compile "some.group:artifact:version:classifier"
|
// compile "some.group:artifact:version:classifier"
|
||||||
|
|
|
@ -59,10 +59,10 @@ public class ExtBackup {
|
||||||
}
|
}
|
||||||
|
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public static void serverTick(TickEvent.WorldTickEvent event) {
|
public static void serverTick(TickEvent.ServerTickEvent event) {
|
||||||
if (event.phase != TickEvent.Phase.START) {
|
if (event.phase != TickEvent.Phase.START) {
|
||||||
//MinecraftServer server = LogicalSidedProvider.INSTANCE.get(LogicalSide.SERVER);
|
//MinecraftServer server = LogicalSidedProvider.INSTANCE.get(LogicalSide.SERVER);
|
||||||
MinecraftServer server = event.world.getServer();
|
MinecraftServer server = event.getServer();
|
||||||
|
|
||||||
if (server != null) {
|
if (server != null) {
|
||||||
//logger.debug("Server Tick! " + event.phase);
|
//logger.debug("Server Tick! " + event.phase);
|
||||||
|
@ -75,4 +75,4 @@ public class ExtBackup {
|
||||||
public static void playerLoggedOut(PlayerEvent.PlayerLoggedOutEvent event) {
|
public static void playerLoggedOut(PlayerEvent.PlayerLoggedOutEvent event) {
|
||||||
BackupHandler.INSTANCE.hadPlayersOnline = true;
|
BackupHandler.INSTANCE.hadPlayersOnline = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,16 +2,17 @@ package com.github.jinks.extbackup;
|
||||||
|
|
||||||
import net.minecraft.server.MinecraftServer;
|
import net.minecraft.server.MinecraftServer;
|
||||||
import net.minecraft.Util;
|
import net.minecraft.Util;
|
||||||
import net.minecraft.network.chat.TextComponent;
|
|
||||||
import net.minecraft.network.chat.ChatType;
|
|
||||||
import net.minecraft.network.chat.Component;
|
import net.minecraft.network.chat.Component;
|
||||||
|
import net.minecraft.network.chat.ChatType;
|
||||||
|
|
||||||
public class ExtBackupUtil {
|
public class ExtBackupUtil {
|
||||||
|
|
||||||
public static void broadcast(MinecraftServer server, String message) {
|
public static void broadcast(MinecraftServer server, String message) {
|
||||||
if (!ConfigHandler.COMMON.silent.get()) {
|
if (!ConfigHandler.COMMON.silent.get()) {
|
||||||
Component bcMessage = new TextComponent("[§1ExtBackup§r] " + message);
|
//Component bcMessage = new TextComponent("[§1ExtBackup§r] " + message);
|
||||||
server.getPlayerList().broadcastMessage(bcMessage, ChatType.SYSTEM, Util.NIL_UUID);
|
Component bcMessage = Component.literal("[§1ExtBackup§r] " + message);
|
||||||
|
//server.getPlayerList().broadcastMessage(bcMessage, ChatType.SYSTEM, Util.NIL_UUID);
|
||||||
|
server.getPlayerList().broadcastSystemMessage(bcMessage, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -22,13 +22,13 @@
|
||||||
[[dependencies.extbackup]]
|
[[dependencies.extbackup]]
|
||||||
modId="forge"
|
modId="forge"
|
||||||
mandatory=true
|
mandatory=true
|
||||||
versionRange="[40,)"
|
versionRange="[42,)"
|
||||||
ordering="NONE"
|
ordering="NONE"
|
||||||
side="BOTH"
|
side="BOTH"
|
||||||
|
|
||||||
[[dependencies.extbackup]]
|
[[dependencies.extbackup]]
|
||||||
modId="minecraft"
|
modId="minecraft"
|
||||||
mandatory=true
|
mandatory=true
|
||||||
versionRange="[1.18.2]"
|
versionRange="[1.19.2]"
|
||||||
ordering="NONE"
|
ordering="NONE"
|
||||||
side="BOTH"
|
side="BOTH"
|
||||||
|
|
Loading…
Reference in a new issue