Update from Git Manager GUI
This commit is contained in:
@@ -110,26 +110,33 @@ public class Ticket implements ConfigurationSerializable {
|
|||||||
public Map<String, Object> serialize() {
|
public Map<String, Object> serialize() {
|
||||||
Map<String, Object> map = new HashMap<>();
|
Map<String, Object> map = new HashMap<>();
|
||||||
map.put("id", id);
|
map.put("id", id);
|
||||||
map.put("creatorUUID", creatorUUID.toString());
|
// Null-Schutz: SnakeYAML wirft NPE wenn Key oder Value null sind
|
||||||
map.put("creatorName", creatorName);
|
map.put("creatorUUID", creatorUUID != null ? creatorUUID.toString() : "");
|
||||||
map.put("message", message);
|
map.put("creatorName", creatorName != null ? creatorName : "");
|
||||||
map.put("world", worldName);
|
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("x", x); map.put("y", y); map.put("z", z);
|
||||||
map.put("yaw", yaw); map.put("pitch", pitch);
|
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 (createdAt != null) map.put("createdAt", createdAt.getTime());
|
||||||
if (claimedAt != null) map.put("claimedAt", claimedAt.getTime());
|
if (claimedAt != null) map.put("claimedAt", claimedAt.getTime());
|
||||||
if (closedAt != null) map.put("closedAt", closedAt.getTime());
|
if (closedAt != null) map.put("closedAt", closedAt.getTime());
|
||||||
if (closeComment != null) map.put("closeComment", closeComment);
|
if (closeComment != null) map.put("closeComment", closeComment);
|
||||||
if (claimerUUID != null) { map.put("claimerUUID", claimerUUID.toString()); map.put("claimerName", claimerName); }
|
if (claimerUUID != null) {
|
||||||
if (forwardedToUUID != null) { map.put("forwardedToUUID", forwardedToUUID.toString()); map.put("forwardedToName", forwardedToName); }
|
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("playerDeleted", playerDeleted);
|
||||||
map.put("category", categoryKey);
|
map.put("category", categoryKey != null ? categoryKey : "general");
|
||||||
map.put("priority", priority.name());
|
map.put("priority", priority != null ? priority.name() : TicketPriority.NORMAL.name());
|
||||||
if (playerRating != null) map.put("playerRating", playerRating);
|
if (playerRating != null) map.put("playerRating", playerRating);
|
||||||
map.put("claimerNotified", claimerNotified);
|
map.put("claimerNotified", claimerNotified);
|
||||||
// BungeeCord: Server-Name speichern
|
// BungeeCord: Server-Name speichern
|
||||||
map.put("serverName", serverName);
|
map.put("serverName", serverName != null ? serverName : "unknown");
|
||||||
map.put("closeNotified", closeNotified);
|
map.put("closeNotified", closeNotified);
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
name: TicketSystem
|
name: TicketSystem
|
||||||
version: 1.0.6
|
version: 1.0.7
|
||||||
main: de.ticketsystem.TicketPlugin
|
main: de.ticketsystem.TicketPlugin
|
||||||
api-version: 1.20
|
api-version: 1.20
|
||||||
author: M_Viper
|
author: M_Viper
|
||||||
|
|||||||
Reference in New Issue
Block a user