docs: 修正文档
This commit is contained in:
@@ -27,7 +27,7 @@ public final class CoreBukkitAPI extends CoreAPI {
|
||||
@NotNull
|
||||
private final Gson gson;
|
||||
@NotNull
|
||||
private final Gson humanGson;
|
||||
private final Gson gsonHuman;
|
||||
|
||||
private CoreBukkitAPI(@NotNull ConfigSection config) {
|
||||
super(config);
|
||||
@@ -38,7 +38,7 @@ public final class CoreBukkitAPI extends CoreAPI {
|
||||
.registerTypeAdapter(MinecraftVersion.getCraftBukkitClassSilent("inventory.CraftItemStack"), ItemStackAdapter.INSTANCE)
|
||||
.registerTypeAdapter(PotionEffect.class, PotionEffectAdapter.INSTANCE)
|
||||
.create();
|
||||
humanGson = new GsonBuilder()
|
||||
gsonHuman = new GsonBuilder()
|
||||
.registerTypeAdapter(Component.class, ComponentTypeAdapter.INSTANCE)
|
||||
.registerTypeAdapter(DisplayMessage.class, MessageTypeAdapter.INSTANCE)
|
||||
.registerTypeAdapter(ItemStack.class, ItemStackAdapter.INSTANCE)
|
||||
@@ -72,8 +72,8 @@ public final class CoreBukkitAPI extends CoreAPI {
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull Gson getHumanGson() {
|
||||
return humanGson;
|
||||
public @NotNull Gson getGsonHuman() {
|
||||
return gsonHuman;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -2,9 +2,9 @@
|
||||
# 完整格式如下:
|
||||
# redis://用户名:密码@主机名:端口/数据库索引?参数名=参数值&参数名=参数值
|
||||
# 若没有设置 redis 用户名,但设置了密码,则可以使用以下格式:
|
||||
# redis://密码@localhost:6379/0?clientName=HamsterCore
|
||||
# redis://:密码@localhost:6379?clientName=HamsterCore
|
||||
# 若没有设置 redis 用户名,也没有设置密码,则可以使用以下格式:
|
||||
# redis://localhost:6379/0?clientName=HamsterCore
|
||||
# redis://localhost:6379?clientName=HamsterCore
|
||||
# 若不设置数据库,则默认使用 0
|
||||
redis-url: "redis://localhost:6379/0?clientName=HamsterCore&timeout=5s"
|
||||
|
||||
|
Reference in New Issue
Block a user