Solved Apostrophe in Config.yml

Discussion in 'Plugin Development' started by aidan573, Dec 23, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    aidan573

    Hi, I'm trying to generate a configuration file and i would like to put apostrophes around 'closemessage' here is what i have got
    Code:java
    1. cfg.set("Maintenance.closemessage", "'Sorry, this server is closed'" );

    I have also tried
    Code:
             
                //Problems with apostrophe showing so have to use workaround...
             
                String closemessage = "[Sorry, this server is closed[";
                closemessage = closemessage.replace("[", "'");
                cfg.set("Maintenance.closemessage", closemessage );
    But it seems to generate this with three apostrophes every time...
    Code:
      closemessage: '''Sorry, this server is closed'''
    How do I only generate one apostrophe?
     
  2. Offline

    sgavster

    aidan573 The single "'" is by default. You just enter a string
     
  3. Offline

    aidan573

Thread Status:
Not open for further replies.

Share This Page