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"
|
||||
|
||||
minecraft "com.mojang:minecraft:1.19.1"
|
||||
mappings "net.fabricmc:yarn:1.19.1+build.1:v2"
|
||||
modImplementation "net.fabricmc:fabric-loader:0.14.8"
|
||||
minecraft "com.mojang:minecraft:1.19.3-rc1"
|
||||
mappings "net.fabricmc:yarn:1.19.3-rc1+build.2:v2"
|
||||
modImplementation "net.fabricmc:fabric-loader:0.14.11"
|
||||
modImplementation('me.lucko:fabric-permissions-api:0.2-SNAPSHOT')
|
||||
|
||||
// Fabric API
|
||||
@ -24,7 +24,7 @@ dependencies {
|
||||
]
|
||||
|
||||
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')
|
||||
|
@ -58,12 +58,12 @@ public class ChatListener implements FabricListener {
|
||||
this.errorLogger = errorLogger;
|
||||
}
|
||||
|
||||
public void onChat(ServerPlayerEntity player, String message) {
|
||||
public void onChat(ServerPlayerEntity player) {
|
||||
|
||||
try {
|
||||
actOnChatEvent(player);
|
||||
} 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) {
|
||||
return;
|
||||
}
|
||||
onChat(sender, message.getContent().getString());
|
||||
onChat(sender);
|
||||
});
|
||||
|
||||
this.enable();
|
||||
|
@ -32,9 +32,9 @@ public class FabricServerProperties extends ServerProperties {
|
||||
"Fabric",
|
||||
server.getServerPort(),
|
||||
server.getVersion(),
|
||||
FabricLoader.getInstance().getModContainer("fabric").orElseThrow().getMetadata().getVersion().getFriendlyString() +
|
||||
FabricLoader.getInstance().getModContainer("fabric").map(container -> container.getMetadata().getVersion().getFriendlyString()).orElse("Unknown") +
|
||||
" (API), " +
|
||||
FabricLoader.getInstance().getModContainer("fabricloader").orElseThrow().getMetadata().getVersion().getFriendlyString() +
|
||||
FabricLoader.getInstance().getModContainer("fabricloader").map(modContainer -> modContainer.getMetadata().getVersion().getFriendlyString()).orElse("Unknown") +
|
||||
" (loader)",
|
||||
() -> (server.getServerIp() == null) ? "" : server.getServerIp(),
|
||||
server.getProperties().maxPlayers
|
||||
|
Loading…
Reference in New Issue
Block a user