Easier database for PocketMine-MP.
- Better database.
- Exchanging data between files will be easier.
- Exchanges are no longer interrupted
- Better SQL support
use ls369\LSDatabase\SQLite;
//...
$db = new SQLite($this->plugin->getDataFolder() . 'players.db', SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE);
$db->createTable("user", ["kienmc","pvmn"]);
// set the names in the user table
$db->set("user", "kienmc", "dutube");
// add column to user table
$db->add('user', 'money', 'INTEGER');
// get data
$users = $db->get('user', ['kienmc', 'pvmn', 'money']);
// output: "dutube", "lacdit", "0";