Matthiesen Core Extensions
Economy
Section titled “Economy”Player Functions
Section titled “Player Functions”- Functionq.player.economy()
Returns the player's UUID for use with the economy functions.
Returns{ "playerUUID": "string" } - Functionq.player.economy.get_balance(<string providerID>, <string currency>)
Gets the player's balance for a specific currency from the specified provider.
Returnsdouble - Functionq.player.economy.deposit(<string providerID>, <int amount>, <string currency>)
Deposits a specific amount of currency into the player's account from the specified provider.
Returns1 for success, otherwise 0 - Functionq.player.economy.withdraw(<string providerID>, <int amount>, <string currency>)
Withdraws a specific amount of currency from the player's account from the specified provider.
Returns1 for success, otherwise 0 - Functionq.player.economy.has_enough(<string providerID>, <int amount>, <string currency>)
Checks if the player has enough of a specific currency in their account from the specified provider.
Returns1 for true, otherwise 0
Text Parsing
Section titled “Text Parsing”Player Functions
Section titled “Player Functions”- Functionq.player.text_parser()
Returns the player's UUID for use with the text parser functions.
Returns{ "playerUUID": "string" } - Functionq.player.text_parser.vanilla(<string message>)
Parses and sends a message using the vanilla Minecraft text parser, allowing for formatting and color codes.
Returns1 for success, 0 for failure - Functionq.player.text_parser.adventure(<string message>)
Parses and sends a message using the Adventure text parser, allowing for advanced text formatting.
Returns1 for success, 0 for failure - Functionq.player.text_parser.emberstextapi(<string message>)
Parses and sends a message using the Ember's Text API parser, allowing for custom text formatting.
Returns1 for success, 0 for failure
Server Functions
Section titled “Server Functions”- Functionq.server.text_parser()
Returns the server's platform for use with the text parser functions.
Returns{ "serverPlatform": "string" } - Functionq.server.text_parser.vanilla(<string message>)
Parses and sends a message using the vanilla Minecraft text parser, allowing for formatting and color codes.
Returns1 for success, 0 for failure - Functionq.server.text_parser.adventure(<string message>)
Parses and sends a message using the Adventure text parser, allowing for advanced text formatting.
Returns1 for success, 0 for failure - Functionq.server.text_parser.emberstextapi(<string message>)
Parses and sends a message using the Ember's Text API parser, allowing for custom text formatting.
Returns1 for success, 0 for failure