Inquiry into Custom Integration with TicketManager #2431
Replies: 1 comment 1 reply
-
This is possible yes. There is an API for adding HTTP request resolvers into the Plan Webserver (https://github.com/plan-player-analytics/Plan/wiki/APIv5-PageExtension-API) that the plugin also uses internally for its website. The plugin request section is mostly filled with requests from non-developers who want to see some data from other plugins, usually through DataExtension API (More limited to just showing things).
Currently the plugin frontend is being rewritten in React so consistency with old version may look slightly different (#2260) - but error.html is probably a good start regardless https://github.com/plan-player-analytics/Plan/blob/master/Plan/common/src/main/resources/assets/plan/web/error.html It has a simple card with a title and paragraph that you can replace with whatever you want
PageExtension API
Any methods in the APIs are called from non-server threads so blocking to wait for database queries is fine inside any method. There's probably some challenges so I'll put down some advice on how I'd approach this:
@PluginInfo(...)
public class TicketMasterExtension implements DataExtension {
@StringProvider(...)
public String link(UUID playerUUID) {
return "<a href=\"../../ticketmanager?player=" + playerUUID + "\">Tickets from this player</a>"
}
} If something isn't clear please let me know and I'll try to clarify. There's also Javadocs if that helps https://plan-player-analytics.github.io/Plan/ |
Beta Was this translation helpful? Give feedback.
-
Hello! I’m the creator of TicketManager, a support-ticket tool. My users expressed a desire to fully manage tickets from Player Analytics, so I had a few questions if you didn’t mind.
Thank you very much in advance!
Beta Was this translation helpful? Give feedback.
All reactions