Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TODO] QuickShop PAPI Placeholders #31

Closed
Ghost-chu opened this issue Feb 20, 2022 · 4 comments
Closed

[TODO] QuickShop PAPI Placeholders #31

Ghost-chu opened this issue Feb 20, 2022 · 4 comments
Assignees
Labels
enhancement New feature or request in-schedule This task has been put on the schedule

Comments

@Ghost-chu
Copy link
Collaborator

Ghost-chu/QuickShop-Reremake#416

@Ghost-chu Ghost-chu added the enhancement New feature or request label Feb 20, 2022
@Andre601
Copy link
Contributor

Andre601 commented May 3, 2022

Is this still a thing?
Looking at the code, I can see that there is a class dedicated to PAPI.

@Ghost-chu Ghost-chu added the in-schedule This task has been put on the schedule label Jan 9, 2023
@Ghost-chu
Copy link
Collaborator Author

Status update: in-schedule

Since Hikari v3.6+, QuickShop-Hikari now have a usable metrics system.

The system should be able to provide data sources for placeholders in the PlaceHolder API.

@Ghost-chu Ghost-chu self-assigned this Jan 9, 2023
@Ghost-chu
Copy link
Collaborator Author

Ghost-chu commented Jan 10, 2023

Memorandum

%qs_metrics_recent_purchases_global_all_x% - Count all purchases in recent x days with all types
%qs_metrics_recent_purchases_global_selling_x% - Count all purchases in recent x days which only selling shops
%qs_metrics_recent_purchases_global_buying_x% - Count all purchases in recent x days which only buying shops
%qs_metrics_recent_purchases_global_buying_x% - Count all purchases in recent x days which only buying shops
%qs_metrics_recent_purchases_player_all_x% - Count all purchases in recent x days with all types
%qs_metrics_recent_purchases_player_selling_x% - Count all purchases in recent x days which only selling shops for single player
%qs_metrics_recent_purchases_player_buying_x% - Count all purchases in recent x days which only buying shops for single player
%qs_metrics_recent_purchases_player_buying_x% - Count all purchases in recent x days which only buying shops for single player


// transactionamount = items amount in transaction
%qs_metrics_recent_transactionamount_global_all_x% - Count all purchases transaction amount in recent x days with all types
%qs_metrics_recent_transactionamount_global_selling_x% - Count all purchases transaction amount in recent x days which only selling shops
%qs_metrics_recent_transactionamount_global_buying_x% - Count all purchases transaction amount in recent x days which only buying shops
%qs_metrics_recent_transactionamount_global_buying_x% - Count all purchases transaction amount in recent x days which only buying shops
%qs_metrics_recent_transactionamount_player_all_x% - Count all purchases transaction amount in recent x days with all types
%qs_metrics_recent_transactionamount_player_selling_x% - Count all purchases transaction amount in recent x days which only selling shops for single player
%qs_metrics_recent_transactionamount_player_buying_x% - Count all purchases transaction amount in recent x days which only buying shops for single player
%qs_metrics_recent_transactionamount_player_buying_x% - Count all purchases transaction amount in recent x days which only buying shops for single player

// This may need a while to write since we need handle itemstack :<
//%qs_metrics_recent_popularitem_global_all_x% - Count popularitem in recent x days with all types
//%qs_metrics_recent_popularitem_global_selling_x% - Count popularitem in recent x days which only selling shops
//%qs_metrics_recent_popularitem_global_buying_x% - Count popularitem in recent x days which only buying shops
//%qs_metrics_recent_popularitem_global_buying_x% - Count popularitem in recent x days which only buying shops
//%qs_metrics_recent_popularitem_player_all_x% - Count popularitem in recent x days with all types
//%qs_metrics_recent_popularitem_player_selling_x% - Count popularitem in recent x days which only selling shops for single player
//%qs_metrics_recent_popularitem_player_buying_x% - Count popularitem in recent x days which only buying shops for single player
//%qs_metrics_recent_popularitem_player_buying_x% - Count popularitem in recent x days which only buying shops for single player

%qs_shopmanager_global_total_all% - Count all shops in this server
%qs_shopmanager_global_total_selling% - Count all selling shops in this server
%qs_shopmanager_global_total_buying% - Count all buying in this server
%qs_shopmanager_global_total_loaded% - Count loaded shops in this server
%qs_shopmanager_global_total_unloaded% - Count unloaded shops in this server
%qs_shopmanager_player_total_all% - Count all shops in this server for single player
%qs_shopmanager_player_total_selling% - Count all selling shops in this server for single player
%qs_shopmanager_player_total_buying% - Count all buying in this server for single player
%qs_shopmanager_player_total_loaded% - Count loaded shops in this server for single player
%qs_shopmanager_player_total_unloaded% - Count unloaded shops in this server for single player

%qs_metadata_fork% - Gets the QuickShop fork name
%qs_metadata_version% - Gets the QuickShop version

@Ghost-chu
Copy link
Collaborator Author

image
image

Works after simple tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request in-schedule This task has been put on the schedule
Projects
None yet
Development

No branches or pull requests

2 participants