[1.8-1.17] Harmony MySQL | In-Game MySQL GUI | Database Mana
1.8MySQL Graphical Interface for Spigot
1.8latestAdded Developer APIJan 27, 2021 API HarmonySQL has a developer API for executing queries inside of databases. In order to use the API you need to enable API access in the HarmonySQL config. Code (YAML): api_access : true If you want to create an instance of the API when your plugin loads, make sure to set HarmonySQL as a dependency. Code (YAML): depend : [HarmonySQL ] The API will connect you to the same MySQL server as the credentials in the HamonySQL config. Example: Code (Java): public void onEnable ( ) { HarmonyAPI api = new HarmonyAPI (Bukkit. getServer ( ). getPluginManager ( ). getPlugin ( "HarmonySQL" ) ) ; try { api. setDatabase ( "DATABASE" ) ; } catch (HarmonySQLException e ) { e. printStackTrace ( ) ; //gets thrown if api access is disabled } JSONArray rows = api. executeQuery ( "SHOW TABLES" ) ; for ( int i = 0 ;i <rows. size ( ) ;i ++ ) { JSONObject row = (JSONObject ) rows. get (i ) ; row. get ( "COLUMN" ) ; } api. executeSetQuery ( "CREATE TABLE..." ) ; //executes query that doesn't return anything }
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta