Static
serverStatic
serverStatic
serverStatic
serverStatic
addOpens 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.
Static
manageCopy over the updated code from PlayerShopManager.managePlayerShop.
Static
manageCopy over the updated code from PlayerShopManager.managePlayerShop_addItem.
Static
manageStatic
manageCopy over the updated code from PlayerShopManager.managePlayerShop_addPage.
Static
manageCopy over the updated code from PlayerShopManager.managePlayerShop_contents.
Static
manageCopy over the updated code from PlayerShopManager.managePlayerShop_editItem.
Static
manageStatic
manageCopy over the updated code from PlayerShopManager.managePlayerShop_editPage.
Static
manageCopy over the updated code from PlayerShopManager.managePlayerShop_manageItem.
Static
manageCopy over the updated code from PlayerShopManager.managePlayerShop_managePage.
Static
manageCopy over the updated code from PlayerShopManager.managePlayerShop_settings.
Static
manageCopy over the updated code from PlayerShopManager.managePlayerShopPage_addItem.
Static
manageThe 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.
Static
manageCopy over the updated code from PlayerShopManager.managePlayerShopPage_contents.
Static
manageCopy over the updated code from PlayerShopManager.managePlayerShopPage_editItem.
Static
manageCopy over the updated code from PlayerShopManager.managePlayerShopPage_editPage.
Static
manageCopy over the updated code from PlayerShopManager.managePlayerShopPage_manageItem.
Static
manageCopy over the updated code from PlayerShopManager.managePlayerShopPage_managePage.
Static
manageStatic
serverHandles 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
.Static
server
Todo
Convert the functions to async functions that return Promise<0|1>.
See
PlayerShopManager