From 713275ba11826874a00a6b87c4063d67608e3fe1 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Sat, 26 Apr 2025 22:17:43 +0200 Subject: [PATCH 1/3] Add ErrorLogging for Bugged Schematics --- .../src/de/steamwar/routes/Schematic.kt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/WebsiteBackend/src/de/steamwar/routes/Schematic.kt b/WebsiteBackend/src/de/steamwar/routes/Schematic.kt index 1beb0f29..b220db08 100644 --- a/WebsiteBackend/src/de/steamwar/routes/Schematic.kt +++ b/WebsiteBackend/src/de/steamwar/routes/Schematic.kt @@ -149,6 +149,22 @@ fun Route.configureSchematic() { return@let SchematicFormat.SPONGE_V2 } + if (version == SchematicFormat.SPONGE_V3) { + try { + val fawe = schem.getCompound("Metadata") + .getCompound("WorldEdit") + .getString("Version") + + if (fawe.equals("2.12.3-SNAPSHOT")) { + SWException.log("Schematic with Bugged Version Uploaded", """ + Schematic=$schemName + User=${user.userName} + Id=${user.id} + """.trimIndent()) + } + } catch (_: Exception) {} + } + val data = NodeData(node.id, version) data.saveFromStream(content.inputStream(), version) From b1bef4ced5ed8d3222ed95ada4841b536abb9b50 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Sat, 26 Apr 2025 22:27:53 +0200 Subject: [PATCH 2/3] Add ErrorLogging for Bugged Schematics --- WebsiteBackend/src/de/steamwar/routes/Schematic.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/WebsiteBackend/src/de/steamwar/routes/Schematic.kt b/WebsiteBackend/src/de/steamwar/routes/Schematic.kt index b220db08..ec3b54fb 100644 --- a/WebsiteBackend/src/de/steamwar/routes/Schematic.kt +++ b/WebsiteBackend/src/de/steamwar/routes/Schematic.kt @@ -154,6 +154,7 @@ fun Route.configureSchematic() { val fawe = schem.getCompound("Metadata") .getCompound("WorldEdit") .getString("Version") + .value if (fawe.equals("2.12.3-SNAPSHOT")) { SWException.log("Schematic with Bugged Version Uploaded", """ From f93362a02344b83bd29515700b99c551d0ac76f3 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Sat, 26 Apr 2025 23:48:33 +0200 Subject: [PATCH 3/3] LobbySystem/src/de/steamwar/lobby/jumpandrun/JumpAndRun.java aktualisiert --- LobbySystem/src/de/steamwar/lobby/jumpandrun/JumpAndRun.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LobbySystem/src/de/steamwar/lobby/jumpandrun/JumpAndRun.java b/LobbySystem/src/de/steamwar/lobby/jumpandrun/JumpAndRun.java index 324a7901..a783b05e 100644 --- a/LobbySystem/src/de/steamwar/lobby/jumpandrun/JumpAndRun.java +++ b/LobbySystem/src/de/steamwar/lobby/jumpandrun/JumpAndRun.java @@ -67,7 +67,7 @@ public class JumpAndRun extends BasicListener { int count = CLICKED_COUNT.getOrDefault(player, -1); if (count >= 0) { - if (count > 60) { + if (count > 20) { toReset.add(player); return; }