Interface TicketService
public interface TicketService
Player support tickets: create, reply, claim, close - and a transcript on closure.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumstatic enumstatic enum -
Method Summary
Modifier and TypeMethodDescriptionConfigured categories, in order; empty if the module has none set up.Closes the ticket and writes its full transcript toplugins/YouNeedMe/tickets/- the returned result'sTicketService.CloseResult.SUCCESScarries no transcript path since the write happens after the DB update; callers wanting the path should follow up withmessages(long).find(long id) A player's closed tickets, most recent first.listOpen()Every ticket not yet closed (OPEN or CLAIMED), oldest first - the staff queue.messages(long ticketId) openByPlayer(UUID player) A player's own not-yet-closed tickets.
-
Method Details
-
categories
-
create
-
find
-
listOpen
CompletableFuture<List<Ticket>> listOpen()Every ticket not yet closed (OPEN or CLAIMED), oldest first - the staff queue. -
openByPlayer
A player's own not-yet-closed tickets. -
history
A player's closed tickets, most recent first. -
messages
-
claim
-
reply
CompletableFuture<TicketService.ReplyResult> reply(long ticketId, UUID author, String authorUsername, String message, boolean staffMessage) -
close
CompletableFuture<TicketService.CloseResult> close(long ticketId, UUID closedBy, String closedByUsername) Closes the ticket and writes its full transcript toplugins/YouNeedMe/tickets/- the returned result'sTicketService.CloseResult.SUCCESScarries no transcript path since the write happens after the DB update; callers wanting the path should follow up withmessages(long).
-