Update from Git Manager GUI

This commit is contained in:
2026-02-23 14:39:37 +01:00
parent 33acd04c3b
commit a45e0f4731
2 changed files with 18 additions and 11 deletions

View File

@@ -110,26 +110,33 @@ public class Ticket implements ConfigurationSerializable {
public Map<String, Object> serialize() {
Map<String, Object> map = new HashMap<>();
map.put("id", id);
map.put("creatorUUID", creatorUUID.toString());
map.put("creatorName", creatorName);
map.put("message", message);
map.put("world", worldName);
// Null-Schutz: SnakeYAML wirft NPE wenn Key oder Value null sind
map.put("creatorUUID", creatorUUID != null ? creatorUUID.toString() : "");
map.put("creatorName", creatorName != null ? creatorName : "");
map.put("message", message != null ? message : "");
map.put("world", worldName != null ? worldName : "world");
map.put("x", x); map.put("y", y); map.put("z", z);
map.put("yaw", yaw); map.put("pitch", pitch);
map.put("status", status.name());
map.put("status", status != null ? status.name() : TicketStatus.OPEN.name());
if (createdAt != null) map.put("createdAt", createdAt.getTime());
if (claimedAt != null) map.put("claimedAt", claimedAt.getTime());
if (closedAt != null) map.put("closedAt", closedAt.getTime());
if (closeComment != null) map.put("closeComment", closeComment);
if (claimerUUID != null) { map.put("claimerUUID", claimerUUID.toString()); map.put("claimerName", claimerName); }
if (forwardedToUUID != null) { map.put("forwardedToUUID", forwardedToUUID.toString()); map.put("forwardedToName", forwardedToName); }
if (claimerUUID != null) {
map.put("claimerUUID", claimerUUID.toString());
map.put("claimerName", claimerName != null ? claimerName : "");
}
if (forwardedToUUID != null) {
map.put("forwardedToUUID", forwardedToUUID.toString());
map.put("forwardedToName", forwardedToName != null ? forwardedToName : "");
}
map.put("playerDeleted", playerDeleted);
map.put("category", categoryKey);
map.put("priority", priority.name());
map.put("category", categoryKey != null ? categoryKey : "general");
map.put("priority", priority != null ? priority.name() : TicketPriority.NORMAL.name());
if (playerRating != null) map.put("playerRating", playerRating);
map.put("claimerNotified", claimerNotified);
// BungeeCord: Server-Name speichern
map.put("serverName", serverName);
map.put("serverName", serverName != null ? serverName : "unknown");
map.put("closeNotified", closeNotified);
return map;
}

View File

@@ -1,5 +1,5 @@
name: TicketSystem
version: 1.0.6
version: 1.0.7
main: de.ticketsystem.TicketPlugin
api-version: 1.20
author: M_Viper