diff --git a/README.md b/README.md index ef6f3f0..87c8b8b 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ console.log(myDB1 === myDB2); //true the very same instance! ### Example ```js import {world} from "@minecraft/server"; -import {JsonDatabase} from "./con-database.js"; +import {JsonDatabase} from "con-database"; const db = new WorldDatabase("my id"); @@ -67,7 +67,7 @@ Each key is unique to its player because key include players id, so database key Code ```js import {world} from "@minecraft/server"; -import { JsonDatabase } from "databases.js"; +import { JsonDatabase } from "con-database"; const stats = new JsonDatabase("playerStats"); diff --git a/docs/HOW_TO_SETUP.md b/docs/HOW_TO_SETUP.md index 2189dd6..acb68e2 100644 --- a/docs/HOW_TO_SETUP.md +++ b/docs/HOW_TO_SETUP.md @@ -17,7 +17,7 @@ Then download your required files - Place database files into your coding folder - Import your required classes from database file ```js - import {JsonDatabase} from "./database"; //import your downloaded file + import {JsonDatabase} from "./con-database"; //import your downloaded file ``` Now you can just use, save and load your data ```js diff --git a/package.json b/package.json index 0bca5b0..1f3c94c 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,11 @@ { "name": "con-database", - "main": "database.js", - "types": "database.d.ts", + "main": "con-database.js", + "types": "con-database.d.ts", "type": "module", "files": [ - "database.js", - "database.d.ts" + "con-database.js", + "con-database.d.ts" ], "dependencies": { "@minecraft/server": "^1.9.0-beta.1.20.60-preview.23",