简体   繁体   English

Spigot 服务器未写入配置文件

[英]Spigot server not writing to config file

I am making an economy system for my spigot Minecraft 1.8.8 server, and because a hashmap resets every time I reload the server (erasing everybody $ data), I am trying to use the config file.我正在为我的 spigot Minecraft 1.8.8 服务器制作一个经济系统,因为每次我重新加载服务器(擦除每个人的 $ 数据)时都会重置哈希图,所以我正在尝试使用配置文件。 A problem I'm having though is that my server won't write to the config file, or I just cannot see it, as it still appears blank although the processes are working fine.我遇到的一个问题是我的服务器不会写入配置文件,或者我看不到它,因为尽管进程工作正常,但它仍然显示为空白。 I would be fine with this, although it might be causing a bigger problem, the config file being wiped every time I reload.我会很好,尽管它可能会导致更大的问题,每次重新加载时都会擦除配置文件。 Any help is appreciated!任何帮助表示赞赏!

Without any code it's hard to know what's wrong but i guess maybe you aren't saving the file?没有任何代码很难知道出了什么问题,但我想也许你没有保存文件? (yamlConfigurationInstance.save(yourfile);) (yamlConfigurationInstance.save(yourfile);)

If thats not the problem please provide a bit more code.如果那不是问题,请提供更多代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM