{"id":43638,"date":"2026-06-02T03:34:03","date_gmt":"2026-06-02T00:34:03","guid":{"rendered":"https:\/\/vpesports.com\/minecraft\/mods\/coderandom-core\/"},"modified":"2026-06-02T03:34:03","modified_gmt":"2026-06-02T00:34:03","slug":"coderandom-core","status":"publish","type":"mod","link":"https:\/\/vpesports.com\/minecraft\/mods\/coderandom-core\/","title":{"rendered":"CodeRandom Core"},"content":{"rendered":"<p># CodeRandomCore<br \/>\n###### Current version `v1.0.0-1.21`<\/p>\n<p>CodeRandomCore is a Bukkit plugin designed to manage various aspects of a Minecraft server, including player UUIDs, MySQL database interactions, and messaging utilities. This guide will help you set up and use the API provided by the plugin.<\/p>\n<p>## Table of Contents<br \/>\n&#8211; [Installation](#installation)<br \/>\n&#8211; [Configuration](#configuration)<br \/>\n&#8211; [Usage](#usage)<br \/>\n  &#8211; [UUID Management](#uuid-management)<br \/>\n  &#8211; [MySQL Management](#mysql-management)<br \/>\n  &#8211; [Messaging Utilities](#messaging-utilities)<br \/>\n  &#8211; [Title Utilities](#title-utilities)<br \/>\n  &#8211; [ActionBar Utilities](#actionbar-utilities)<\/p>\n<p>## Installation<\/p>\n<p>1. Download the latest release of the CodeRandomCore plugin.<br \/>\n2. Place the plugin JAR file in your server&#8217;s `plugins` directory.<br \/>\n3. Start your Minecraft server to generate the default configuration files.<\/p>\n<p>## Configuration<\/p>\n<p>The plugin uses a configuration file located at `plugins\/CodeRandomCore\/config.yml`. Here is an example of the MySQL configuration section:<\/p>\n<p>&#8220;`yaml<br \/>\nMySQL:<br \/>\n  enabled: false<br \/>\n  host: localhost<br \/>\n  port: 3306<br \/>\n  database: code_random<br \/>\n  username: root<br \/>\n  password: &#8220;&#8221;<br \/>\n&#8220;`<\/p>\n<p>### Configuration Options<\/p>\n<p>&#8211; `enabled`: Set to `true` to enable MySQL support.<br \/>\n&#8211; `host`: The hostname or IP address of your MySQL server.<br \/>\n&#8211; `port`: The port number of your MySQL server (default is 3306).<br \/>\n&#8211; `database`: The name of the database to use.<br \/>\n&#8211; `username`: The username for the MySQL connection.<br \/>\n&#8211; `password`: The password for the MySQL connection.<\/p>\n<p>## Usage<\/p>\n<p>### UUID Management<\/p>\n<p>CodeRandomCore provides utilities for managing player UUIDs, especially for Bedrock players using Floodgate.<\/p>\n<p>#### Fetching UUIDs<\/p>\n<p>To fetch a player&#8217;s UUID:<\/p>\n<p>&#8220;`<br \/>\nUUID uuid = UUIDFetcher.getUUID(&#8220;playerName&#8221;);<br \/>\n&#8220;`<\/p>\n<p>This method will automatically determine if the player is a Bedrock player, an online player, or an offline player, and fetch the UUID accordingly.<\/p>\n<p>### MySQL and JSON File Management<\/p>\n<p>The plugin uses HikariCP for managing MySQL connections.<\/p>\n<p>#### Initializing MySQL<\/p>\n<p>Ensure that MySQL is enabled in your `config.yml` file. The MySQLManager class manages the connection pool:<\/p>\n<p>&#8220;`<br \/>\nMySQLManager mysqlManager = MySQLManager.getInstance();<\/p>\n<p>if (mysqlManager.connect()) {<br \/>\n    \/\/ Connected successfully<br \/>\n} else {<br \/>\n    \/\/ Connection failed<br \/>\n}<br \/>\n&#8220;`<\/p>\n<p>#### Executing Queries<\/p>\n<p>To execute queries:<\/p>\n<p>&#8220;`<br \/>\nString query = &#8220;SELECT * FROM players&#8221;;<br \/>\ntry (ResultSet rs = mysqlManager.executeQuery(query)) {<br \/>\n    while (rs.next()) {<br \/>\n        \/\/ Process the result set<br \/>\n    }<br \/>\n} catch (SQLException e) {<br \/>\n    e.printStackTrace();<br \/>\n}<br \/>\n&#8220;`<\/p>\n<p>### Messaging Utilities<\/p>\n<p>The plugin provides utilities for sending formatted messages to players.<\/p>\n<p>#### Sending Messages<\/p>\n<p>To send a formatted message:<\/p>\n<p>&#8220;`<br \/>\nMessageUtils.formattedMessage(player, &#8220;Your message here&#8221;);<br \/>\n&#8220;`<\/p>\n<p>To send a message with a title and lines:<\/p>\n<p>&#8220;`<br \/>\nMessageUtils.messageWithTitle(player, &#8220;Title&#8221;, &#8220;Line 1&#8221;, &#8220;Line 2&#8221; &#8230;);<br \/>\n&#8220;`<\/p>\n<p>### Title Utilities<\/p>\n<p>To send titles to players:<\/p>\n<p>&#8220;`<br \/>\nTitleUtils.title(player, &#8220;Main Title&#8221;, &#8220;Subtitle&#8221;, 20, 100, 20);<br \/>\n&#8220;`<\/p>\n<p>This will display a title with a fade-in time of 20 ticks, stay time of 100 ticks, and fade-out time of 20 ticks.<\/p>\n<p>### ActionBar Utilities<\/p>\n<p>To send an action bar message:<\/p>\n<p>&#8220;`<br \/>\nActionBarUtils.actionBar(player, &#8220;ActionBar Message&#8221;, 60);<br \/>\n&#8220;`<\/p>\n<p>This will display an action bar message for 3 seconds (60 ticks).<\/p>\n<p>## License<\/p>\n<p>This project is Non-Commercial License with API Usage Exception. See the [LICENSE](LICENSE) file for details.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CodeRandomCore is a robust Bukkit plugin designed to manage various server functionalities for Minecraft, including player UUIDs, MySQL database interactions, and messaging utilities.<\/p>\n","protected":false},"featured_media":43639,"template":"","meta":{"_minecraft_slug":"coderandom-core","_minecraft_project_id":"D0TqunEG","_minecraft_author":"CodeRandom","_minecraft_license":"LicenseRef-Non-Commercial-License-with-API-Usage-Exception","_minecraft_downloads":56,"_minecraft_follows":2,"_minecraft_client_side":"unsupported","_minecraft_server_side":"required","_minecraft_storage_type":"zip","_minecraft_archive_name":"coderandom-core.zip","_minecraft_size_bytes":230324,"_minecraft_version_count":1,"_minecraft_updated_at":"2026-05-15T20:57:02.384460Z","_minecraft_date_created":"2024-08-03T23:20:49.019323Z","_minecraft_date_modified":"2024-08-02T10:12:02.597376Z","_minecraft_project_url":"https:\/\/modrinth.com\/mod\/coderandom-core","_minecraft_icon_attachment_id":43639,"_minecraft_imported_at":"2026-06-02T00:34:04+00:00","_minecraft_import_hash":"8f8042fc9ffa64f644e61f9e11b003c4","_minecraft_versions":"","_minecraft_links":"","_minecraft_gallery":"","_minecraft_api_metadata":""},"mod_category":[124,90,127,129,91,92],"mod_loader":[130,132,134],"minecraft_version":[62],"class_list":["post-43638","mod","type-mod","status-publish","has-post-thumbnail","hentry","mod_category-bukkit","mod_category-optimization","mod_category-paper","mod_category-spigot","mod_category-storage","mod_category-utility","mod_loader-bukkit","mod_loader-paper","mod_loader-spigot","minecraft_version-1-21"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>CodeRandom Core - Minecraft<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vpesports.com\/minecraft\/mods\/coderandom-core\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"CodeRandom Core - Minecraft\" \/>\n<meta property=\"og:description\" content=\"CodeRandomCore is a robust Bukkit plugin designed to manage various server functionalities for Minecraft, including player UUIDs, MySQL database interactions, and messaging utilities.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vpesports.com\/minecraft\/mods\/coderandom-core\/\" \/>\n<meta property=\"og:site_name\" content=\"Minecraft\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/coderandom-core\\\/\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/coderandom-core\\\/\",\"name\":\"CodeRandom Core - Minecraft\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/coderandom-core\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/coderandom-core\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/coderandom-core-icon-6a51ce8abdd5c6f5059171065a2a8cfe4700e51d_96.webp\",\"datePublished\":\"2026-06-02T00:34:03+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/coderandom-core\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/coderandom-core\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/coderandom-core\\\/#primaryimage\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/coderandom-core-icon-6a51ce8abdd5c6f5059171065a2a8cfe4700e51d_96.webp\",\"contentUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/coderandom-core-icon-6a51ce8abdd5c6f5059171065a2a8cfe4700e51d_96.webp\",\"width\":96,\"height\":96},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/coderandom-core\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mods\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"CodeRandom Core\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\",\"name\":\"Minecraft\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"CodeRandom Core - Minecraft","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/vpesports.com\/minecraft\/mods\/coderandom-core\/","og_locale":"en_US","og_type":"article","og_title":"CodeRandom Core - Minecraft","og_description":"CodeRandomCore is a robust Bukkit plugin designed to manage various server functionalities for Minecraft, including player UUIDs, MySQL database interactions, and messaging utilities.","og_url":"https:\/\/vpesports.com\/minecraft\/mods\/coderandom-core\/","og_site_name":"Minecraft","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/vpesports.com\/minecraft\/mods\/coderandom-core\/","url":"https:\/\/vpesports.com\/minecraft\/mods\/coderandom-core\/","name":"CodeRandom Core - Minecraft","isPartOf":{"@id":"https:\/\/vpesports.com\/minecraft\/#website"},"primaryImageOfPage":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/coderandom-core\/#primaryimage"},"image":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/coderandom-core\/#primaryimage"},"thumbnailUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/coderandom-core-icon-6a51ce8abdd5c6f5059171065a2a8cfe4700e51d_96.webp","datePublished":"2026-06-02T00:34:03+00:00","breadcrumb":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/coderandom-core\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vpesports.com\/minecraft\/mods\/coderandom-core\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vpesports.com\/minecraft\/mods\/coderandom-core\/#primaryimage","url":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/coderandom-core-icon-6a51ce8abdd5c6f5059171065a2a8cfe4700e51d_96.webp","contentUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/coderandom-core-icon-6a51ce8abdd5c6f5059171065a2a8cfe4700e51d_96.webp","width":96,"height":96},{"@type":"BreadcrumbList","@id":"https:\/\/vpesports.com\/minecraft\/mods\/coderandom-core\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vpesports.com\/minecraft\/"},{"@type":"ListItem","position":2,"name":"Mods","item":"https:\/\/vpesports.com\/minecraft\/mods\/"},{"@type":"ListItem","position":3,"name":"CodeRandom Core"}]},{"@type":"WebSite","@id":"https:\/\/vpesports.com\/minecraft\/#website","url":"https:\/\/vpesports.com\/minecraft\/","name":"Minecraft","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vpesports.com\/minecraft\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod\/43638","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod"}],"about":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/types\/mod"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media\/43639"}],"wp:attachment":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media?parent=43638"}],"wp:term":[{"taxonomy":"mod_category","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_category?post=43638"},{"taxonomy":"mod_loader","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_loader?post=43638"},{"taxonomy":"minecraft_version","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/minecraft_version?post=43638"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}