StaticserverStaticserverStaticserverStaticserverStaticaddOpens the UI for creating a new server shop.
returns a promise that resolves with a value of one when the player closes the UI, either by clicking the x button or saving the new shop they created.
StaticmanageCopy over the updated code from PlayerShopManager.managePlayerShop.
StaticmanageCopy over the updated code from PlayerShopManager.managePlayerShop_addItem.
StaticmanageStaticmanageCopy over the updated code from PlayerShopManager.managePlayerShop_addPage.
StaticmanageCopy over the updated code from PlayerShopManager.managePlayerShop_contents.
StaticmanageCopy over the updated code from PlayerShopManager.managePlayerShop_editItem.
StaticmanageStaticmanageCopy over the updated code from PlayerShopManager.managePlayerShop_editPage.
StaticmanageCopy over the updated code from PlayerShopManager.managePlayerShop_manageItem.
StaticmanageCopy over the updated code from PlayerShopManager.managePlayerShop_managePage.
StaticmanageCopy over the updated code from PlayerShopManager.managePlayerShop_settings.
StaticmanageCopy over the updated code from PlayerShopManager.managePlayerShopPage_addItem.
StaticmanageThe player to open the UI for
The shop to add the page to
The path in the shop's data that the page will be added to
Copy over the updated code from PlayerShopManager.managePlayerShopPage_addPage.
StaticmanageCopy over the updated code from PlayerShopManager.managePlayerShopPage_contents.
StaticmanageCopy over the updated code from PlayerShopManager.managePlayerShopPage_editItem.
StaticmanageCopy over the updated code from PlayerShopManager.managePlayerShopPage_editPage.
StaticmanageCopy over the updated code from PlayerShopManager.managePlayerShopPage_manageItem.
StaticmanageCopy over the updated code from PlayerShopManager.managePlayerShopPage_managePage.
StaticmanageStaticserverHandles the server shop system settings interface and its interactions.
A promise that resolves to 0 or 1 based on the user's interaction with the interface.
0: Indicates that the user chose to close the interface.1: Indicates that the user chose to go back or an action was completed successfully.The function performs the following steps:
sourceEntitya is an instance of executeCommandPlayerW and extracts the player.sourceEntity is defined.ultraSecurityModeEnabled is true, checks if the player has the required permission to access the settings.
ActionFormData form with options to manage shops, main settings, and shop item settings.manageShops: Calls ServerShopManager.manageServerShops and recursively calls serverShopSystemSettings if needed.mainSettings: Calls ServerShopManager.serverShopSystemSettings_main and recursively calls serverShopSystemSettings if needed.shopItemSettings: Shows a message indicating that the shop item does not exist yet and recursively calls serverShopSystemSettings if needed.back: Returns 1.close: Returns 0.Staticserver
Todo
Convert the functions to async functions that return Promise<0|1>.
See
PlayerShopManager