11-03-2016, 06:47 AM
You can take a look at the Gallery plugin. It has an ExecuteStatement method which you give the SQL statement, optional parameters and optional callback: https://github.com/cuberite/gallery/blob...a#L83-L108
Then you can use it like this: https://github.com/cuberite/gallery/blob...#L237-L249
Then you can use it like this: https://github.com/cuberite/gallery/blob...#L237-L249