#.set() not setting or saving... why?

1 messages · Page 1 of 1 (latest)

fading crescent
#

https://pastebin.com/2cFm3heY The method gets called here in a command. The player type /ssj start and it checks if the player's config has "start" is true or false. If true then do nothing. If false, do the posted code above. The problem is that it never set/saves. BUT it can read it just fine hence why when i set the player's config to true it doesn't do anything but let me know I've already started. Like it should. https://pastebin.com/aHTnExjx Here's the File and FileConfiguration methods that get called. I know I'm using direct injection correctly because I thought that was the issue at first.

hard orchid
#

It probably doesn’t work because you are always loading a new instance of the config. You should call „getPConfig“ once and store its return value in a variable to work with that one instance of FileConfiguration

fading crescent
#

fuck aight bet