Parameters
- sourceEntitya: Entity | Player | Globals.modules.cmds.executeCommandPlayerW
- statistic: {
buttonDisplayName: "Money";
buttonIcon: "textures/items/emerald";
displayOptions: {
get addCommaSeparators(): boolean;
get currencyPrefix(): string;
};
getterFunction: (player: Globals.modules.playersave.savedPlayer) => string;
id: "money";
menuTitle: "Money";
sorter: (a: string, b: string) => -1 | 0 | 1;
statsListDisplayName: "Money";
type: "built-in";
valueType: "bigint";
}
Returns Promise<0 | 1>
A promise that resolves to:
1
if the operation was successful or the form was canceled.
0
if the user selected "Cancel" in the access denied message or "Close" if an error message appeared.
The function performs the following steps:
- Checks if ultra security mode is enabled.
- If enabled, verifies if the player has the required permission to access the settings.
- If the player lacks permission, displays an access denied message.
- If the player has permission or ultra security mode is disabled, displays the UI settings form.
- Updates the configuration based on the form input.
- Returns the appropriate status code based on the outcome.
Displays and handles the edit built-in statistic form for a given entity.