1
mirror of https://github.com/CarmJos/BukkitJSONSerializer.git synced 2024-09-19 21:35:57 +00:00

Update README.md

This commit is contained in:
Carm Jos 2022-12-10 11:36:47 +08:00 committed by GitHub
parent 49d260ffae
commit ed49c067b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,7 @@ First, we should get the serializer instance or create a new one.
BukkitJSONSerializer serializer = BukkitJSONSerializer.get(); BukkitJSONSerializer serializer = BukkitJSONSerializer.get();
``` ```
Then, we cloud use `serializeToJSON(ConfigurationSerializable)` to serialize a object to JSON. Then, we could use `serializeToJSON(ConfigurationSerializable)` to serialize a object to JSON.
```jave ```jave
Location location = new Location(Bukkit.getWorlds().get(0), -100.5, 100, 105.5); Location location = new Location(Bukkit.getWorlds().get(0), -100.5, 100, 105.5);