Solved Need help with BedwarsPlugin Start

Discussion in 'Plugin Development' started by Daveloper, Feb 25, 2024.

  1. Offline


    @timtower Ok, but why does it not work with this class?
  2. Online

    timtower Administrator Administrator Moderator

    Because I don't trust your config instances.
  3. Offline


  4. Offline


    Your problem may be occurring cause you're overwriting the file every time you record a command for the next player. Instead, you need to open the file for writing once and append new commands to the end of the file. Each time we call write, a new command is added to the end of the file without removing previous commands.
  5. Offline


    I solved the problem by remoing the ServerSaver#setDefaultSection in the BedwarsPlayer constructor. Now it works thank you!!!

Share This Page