mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-03-02 11:11:21 +01:00
update: Fabric 1.19.3 by DrexHD (#2764)
* update: 22w42a * fix: Backwards compatibility * change: Don't crash if fabric-api isn't present Plan can run without the entire fabric api mod being present. It only needs the modules defined in fabric.mod.json! * update: 22w42a * fix: Backwards compatibility * change: Don't crash if fabric-api isn't present Plan can run without the entire fabric api mod being present. It only needs the modules defined in fabric.mod.json! * update: 1.19.3-rc1
This commit is contained in:
parent
1a24a9e11d
commit
143c64308f
@ -8,9 +8,9 @@ dependencies {
|
|||||||
|
|
||||||
shadow "net.playeranalytics:platform-abstraction-layer-api:$palVersion"
|
shadow "net.playeranalytics:platform-abstraction-layer-api:$palVersion"
|
||||||
|
|
||||||
minecraft "com.mojang:minecraft:1.19.1"
|
minecraft "com.mojang:minecraft:1.19.3-rc1"
|
||||||
mappings "net.fabricmc:yarn:1.19.1+build.1:v2"
|
mappings "net.fabricmc:yarn:1.19.3-rc1+build.2:v2"
|
||||||
modImplementation "net.fabricmc:fabric-loader:0.14.8"
|
modImplementation "net.fabricmc:fabric-loader:0.14.11"
|
||||||
modImplementation('me.lucko:fabric-permissions-api:0.2-SNAPSHOT')
|
modImplementation('me.lucko:fabric-permissions-api:0.2-SNAPSHOT')
|
||||||
|
|
||||||
// Fabric API
|
// Fabric API
|
||||||
@ -24,7 +24,7 @@ dependencies {
|
|||||||
]
|
]
|
||||||
|
|
||||||
apiModules.forEach {
|
apiModules.forEach {
|
||||||
modImplementation(fabricApi.module(it, "0.58.5+1.19.1"))
|
modImplementation(fabricApi.module(it, "0.68.1+1.19.3"))
|
||||||
}
|
}
|
||||||
|
|
||||||
testImplementation project(path: ":common", configuration: 'testArtifacts')
|
testImplementation project(path: ":common", configuration: 'testArtifacts')
|
||||||
|
@ -58,12 +58,12 @@ public class ChatListener implements FabricListener {
|
|||||||
this.errorLogger = errorLogger;
|
this.errorLogger = errorLogger;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onChat(ServerPlayerEntity player, String message) {
|
public void onChat(ServerPlayerEntity player) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
actOnChatEvent(player);
|
actOnChatEvent(player);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
errorLogger.error(e, ErrorContext.builder().related(player, message).build());
|
errorLogger.error(e, ErrorContext.builder().related(player).build());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -84,7 +84,7 @@ public class ChatListener implements FabricListener {
|
|||||||
if (!isEnabled) {
|
if (!isEnabled) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
onChat(sender, message.getContent().getString());
|
onChat(sender);
|
||||||
});
|
});
|
||||||
|
|
||||||
this.enable();
|
this.enable();
|
||||||
|
@ -32,9 +32,9 @@ public class FabricServerProperties extends ServerProperties {
|
|||||||
"Fabric",
|
"Fabric",
|
||||||
server.getServerPort(),
|
server.getServerPort(),
|
||||||
server.getVersion(),
|
server.getVersion(),
|
||||||
FabricLoader.getInstance().getModContainer("fabric").orElseThrow().getMetadata().getVersion().getFriendlyString() +
|
FabricLoader.getInstance().getModContainer("fabric").map(container -> container.getMetadata().getVersion().getFriendlyString()).orElse("Unknown") +
|
||||||
" (API), " +
|
" (API), " +
|
||||||
FabricLoader.getInstance().getModContainer("fabricloader").orElseThrow().getMetadata().getVersion().getFriendlyString() +
|
FabricLoader.getInstance().getModContainer("fabricloader").map(modContainer -> modContainer.getMetadata().getVersion().getFriendlyString()).orElse("Unknown") +
|
||||||
" (loader)",
|
" (loader)",
|
||||||
() -> (server.getServerIp() == null) ? "" : server.getServerIp(),
|
() -> (server.getServerIp() == null) ? "" : server.getServerIp(),
|
||||||
server.getProperties().maxPlayers
|
server.getProperties().maxPlayers
|
||||||
|
Loading…
Reference in New Issue
Block a user