Jump to content

No available question

Closed 1.3.0 1.3.0

Heyho,

we just trying to get your Plugin working.
Whenever we load the plugin the console gives us this back:
01:07 [Info] [QandA] No available question based on the configuration and data... unloading the plugin
01:07 [Info] Loaded plugin QandA v1.3.0 by kaucsenta
01:07 [Info] Unloaded plugin QandA v1.3.0 by kaucsenta

After that the plugin is clearing the datfile. So everything we wrote inside QandA.json gets erased only [] will stay there.

Thats our datafile:
 

[
  {
    "question": "Mit welchem Befehl erhält man alle wichtigen Informationen des Servers?",
    "valid_answer": "/info",
    "incorrect_answer": [
      "/shop",
      "Es gibt keinen Befehl dazu."
    ],
    "customreward": {
      "type": 1,
      "command": "",
      "itemid": 0,
      "amount": 3000
    }
  },
  {
    "question": "Ist unser Server ein reiner PVE oder PVP Server?",
    "valid_answer": "PVE",
    "incorrect_answer": [
      "PVP",
      "Keine Ahnung"
    ],
    "customreward": {
      "type": 1,
      "command": "",
      "itemid": 0,
      "amount": 5000
    }
  },
  {
    "question": "Darf auf diesem Server geklaut werden?",
    "valid_answer": "Nein",
    "incorrect_answer": [
      "Ja",
	  "Keine Ahnung"
    ],
    "customreward": {
      "type": 1,
      "command": "",
      "itemid": 0,
      "amount": 150
    }
  },
  {
    "question": "Wie verhält man sich richtig wenn eine Base decayed?",
    "valid_answer": "Ich schaue mir eventuell die Base an, gehe aber nicht an die Kisten.",
    "incorrect_answer": [
      "Prima! Free Loot, ich stopfe mir die Taschen voll."
    ],
    "customreward": {
      "type": 1,
      "command": "",
      "itemid": 0,
      "amount": 0
    },
	{
    "question": "Wie verhält man sich richtig, wenn ich andere Spieler dabei sehe, wie sie gerade ein Event machen?",
    "valid_answer": "Ich schaue zu, frage ob ich mitmachen darf oder ziehe einfach weiter.",
    "incorrect_answer": [
      "Ich warte einfach heimlich ab bis alles gecleart ist und loote dann fröhlich mit."
    ],
    "customreward": {
      "type": 1,
      "command": "",
      "itemid": 0,
      "amount": 3000
    }
  },
  {
    "question": "Wie lasse ich mich für NoStability und SignArtist freischalten?",
    "valid_answer": "Über Discord",
    "incorrect_answer": [
      "Ich werde irgendwann automatisch freigeschaltet.",
      "Es wird mich schon jemand darauf ansprechen."
    ],
    "customreward": {
      "type": 1,
      "command": "",
      "itemid": 0,
      "amount": 5000
    }
  },
  {
    "question": "Wofür benutzt man auf diesem Server Blut/Papier?",
    "valid_answer": "Davon kann man Testgeneratoren, Ölpumpen und Steinbrüche kaufen.",
    "incorrect_answer": [
      "Papier und Blut ist zum sammeln gedacht.",
	  "Das kann man beides im /shop eintauschen."
    ],
    "customreward": {
      "type": 1,
      "command": "",
      "itemid": 0,
      "amount": 150
    }
  },
  {
    "question": "Es droppen Schatzkarten aus Tonnen und Kisten. Was kann man damit machen?",
    "valid_answer": "Es erscheint auf der Map eine lila Kiste, die ich suchen muss.",
    "incorrect_answer": [
      "Es erscheint auf der Map eine weiße Kiste, die ich suchen muss.",
	  "Ohje schwierig. Ich weiß es nicht."
    ],
    "customreward": {
      "type": 1,
      "command": "",
      "itemid": 0,
      "amount": 0
    },
	{
    "question": "Es erscheint ein Attack Heli in deiner Nähe. Was tust du?",
    "valid_answer": ".Ich ziehe mich bis auf zwei Kleidungsstücke aus, nehme alles aus meinem Gürtel und warte ab.",
    "incorrect_answer": [
      "Ich suche zur Not Schutz in fremden Spielerbasen und hoffe das ich nicht sterbe.",
      "Ich habe keine Ahnung was ich machen soll."
    ],
    "customreward": {
      "type": 1,
      "command": "",
      "itemid": 0,
      "amount": 3000
    }
  },
  {
    "question": "Wie öffne ich das Schnellmenü?",
    "valid_answer": "/menü",
    "incorrect_answer": [
      "/quickmenü",
      "/qm"
    ],
    "customreward": {
      "type": 1,
      "command": "",
      "itemid": 0,
      "amount": 5000
    }
  },
  {
    "question": "Skins kosten bei uns RP. Wie viel RP pro Skin?",
    "valid_answer": "10",
    "incorrect_answer": [
      "50",
	  "20"
    ],
    "customreward": {
      "type": 1,
      "command": "",
      "itemid": 0,
      "amount": 150
    }
  },
  {
    "question": "Es gibt eine Möglichkeit Events, Raidbasen, Items und Deko zu kaufen. Wo?",
    "valid_answer": "Im Shop unter /shop",
    "incorrect_answer": [
      "/license",
	  "/quest",
	  "Ich wusste nicht das es sowas gibt."
    ],
    "customreward": {
      "type": 1,
      "command": "",
      "itemid": 0,
      "amount": 0
    },
	{
    "question": "Alle möglichen Fahrzeuge kannst du über einen Befehl kaufen. Welcher ist der Richtige?",
    "valid_answer": "/license",
    "incorrect_answer": [
      "/shop",
	  "/buycar"
    ],
    "customreward": {
      "type": 1,
      "command": "",
      "itemid": 0,
      "amount": 3000
    }
  },
  {
    "question": "Viele Items aus dem /shop können nicht über /remove abgerissen werden. Wie gehts?",
    "valid_answer": "Mit dem Hammer und mittlerer Maustaste.",
    "incorrect_answer": [
      "Lange > e < drücken.",
      "Ich habe keine Ahnung und lasse es einfach stehen."
    ],
    "customreward": {
      "type": 1,
      "command": "",
      "itemid": 0,
      "amount": 5000
    }
  },
  {
    "question": "Items können auf dem Server geskinnt gegen RP geskinnt werden. Wie?",
    "valid_answer": "/skinbox",
    "incorrect_answer": [
      "/item",
	  "/vote"
    ],
    "customreward": {
      "type": 1,
      "command": "",
      "itemid": 0,
      "amount": 150
    }
  },
  {
    "question": "Was sind die Vorraussetzungen für NoStability?",
    "valid_answer": "Keine schwebenden Objekte. Das Gebäude darf nicht höher als 20 Stockwerke sein.",
    "incorrect_answer": [
      "Ich darf schwebend bauen.",
	  "Ich darf nicht schwebend bauen, habe dafür aber keine Höhenbegrenzung."
    ],
    "customreward": {
      "type": 1,
      "command": "",
      "itemid": 0,
      "amount": 0
    },
	{
    "question": "Was ist bei NoStability erlaubt?",
    "valid_answer": "Ich darf Baumhäuser bauen oder kreativ sein, solange mein Haus nicht schwebt.",
    "incorrect_answer": [
      "Ich darf NoStability an Monumenten benutzen um besser den Panzer machen zu können.",
	  "Ich darf schwebend bauen und über 40 Stockwerke."
    ],
    "customreward": {
      "type": 1,
      "command": "",
      "itemid": 0,
      "amount": 0
    },
	{
    "question": "Das automatische Schließen der Türen, kann man ausstellen. Wie geht das?",
    "valid_answer": "/ad",
    "incorrect_answer": [
      "/ql",
      "/t"
    ],
    "customreward": {
      "type": 1,
      "command": "",
      "itemid": 0,
      "amount": 3000
    }
  },
  {
    "question": "Einen Recycler kannst du im /shop erwerben. Es gibt allerdings noch eine andere Möglichkeit. Welche?",
    "valid_answer": "/recycler.craft",
    "incorrect_answer": [
      "/rec",
      "/buyrecycler"
    ],
    "customreward": {
      "type": 1,
      "command": "",
      "itemid": 0,
      "amount": 5000
    }
  },
  {
    "question": "Mit welchem Befehl kannst du deine Base mit einem Hammerschlag reparieren?",
    "valid_answer": "/br",
    "incorrect_answer": [
      "/baserepair",
	  "/repair"
    ],
    "customreward": {
      "type": 1,
      "command": "",
      "itemid": 0,
      "amount": 150
    }
  }
]

~ MaLai

Share this comment


Link to comment

Hello MaLai,

 

I checked your posted data, it seems not a valid JSON  format. There was a missing ',' and several missing "}" character.

See the corrected one:, also you can use the https://jsonlint.com/ to validate your json file content in the future: 

[{
		"question": "Mit welchem Befehl erhält man alle wichtigen Informationen des Servers?",
		"valid_answer": "/info",
		"incorrect_answer": [
			"/shop",
			"Es gibt keinen Befehl dazu."
		],
		"customreward": {
			"type": 1,
			"command": "",
			"itemid": 0,
			"amount": 3000
		}
	},
	{
		"question": "Ist unser Server ein reiner PVE oder PVP Server?",
		"valid_answer": "PVE",
		"incorrect_answer": [
			"PVP",
			"Keine Ahnung"
		],
		"customreward": {
			"type": 1,
			"command": "",
			"itemid": 0,
			"amount": 5000
		}
	},
	{
		"question": "Darf auf diesem Server geklaut werden?",
		"valid_answer": "Nein",
		"incorrect_answer": [
			"Ja",
			"Keine Ahnung"
		],
		"customreward": {
			"type": 1,
			"command": "",
			"itemid": 0,
			"amount": 150
		}
	},
	{
		"question": "Wie verhält man sich richtig wenn eine Base decayed?",
		"valid_answer": "Ich schaue mir eventuell die Base an, gehe aber nicht an die Kisten.",
		"incorrect_answer": [
			"Prima! Free Loot, ich stopfe mir die Taschen voll."
		],
		"customreward": {
			"type": 1,
			"command": "",
			"itemid": 0,
			"amount": 0
		}
	},
	{
		"question": "Wie verhält man sich richtig, wenn ich andere Spieler dabei sehe, wie sie gerade ein Event machen?",
		"valid_answer": "Ich schaue zu, frage ob ich mitmachen darf oder ziehe einfach weiter.",
		"incorrect_answer": [
			"Ich warte einfach heimlich ab bis alles gecleart ist und loote dann fröhlich mit."
		],
		"customreward": {
			"type": 1,
			"command": "",
			"itemid": 0,
			"amount": 3000
		}
	},
	{
		"question": "Wie lasse ich mich für NoStability und SignArtist freischalten?",
		"valid_answer": "Über Discord",
		"incorrect_answer": [
			"Ich werde irgendwann automatisch freigeschaltet.",
			"Es wird mich schon jemand darauf ansprechen."
		],
		"customreward": {
			"type": 1,
			"command": "",
			"itemid": 0,
			"amount": 5000
		}
	},
	{
		"question": "Wofür benutzt man auf diesem Server Blut/Papier?",
		"valid_answer": "Davon kann man Testgeneratoren, Ölpumpen und Steinbrüche kaufen.",
		"incorrect_answer": [
			"Papier und Blut ist zum sammeln gedacht.",
			"Das kann man beides im /shop eintauschen."
		],
		"customreward": {
			"type": 1,
			"command": "",
			"itemid": 0,
			"amount": 150
		}
	},
	{
		"question": "Es droppen Schatzkarten aus Tonnen und Kisten. Was kann man damit machen?",
		"valid_answer": "Es erscheint auf der Map eine lila Kiste, die ich suchen muss.",
		"incorrect_answer": [
			"Es erscheint auf der Map eine weiße Kiste, die ich suchen muss.",
			"Ohje schwierig. Ich weiß es nicht."
		],
		"customreward": {
			"type": 1,
			"command": "",
			"itemid": 0,
			"amount": 0
		}
	},
	{
		"question": "Es erscheint ein Attack Heli in deiner Nähe. Was tust du?",
		"valid_answer": ".Ich ziehe mich bis auf zwei Kleidungsstücke aus, nehme alles aus meinem Gürtel und warte ab.",
		"incorrect_answer": [
			"Ich suche zur Not Schutz in fremden Spielerbasen und hoffe das ich nicht sterbe.",
			"Ich habe keine Ahnung was ich machen soll."
		],
		"customreward": {
			"type": 1,
			"command": "",
			"itemid": 0,
			"amount": 3000
		}
	},
	{
		"question": "Wie öffne ich das Schnellmenü?",
		"valid_answer": "/menü",
		"incorrect_answer": [
			"/quickmenü",
			"/qm"
		],
		"customreward": {
			"type": 1,
			"command": "",
			"itemid": 0,
			"amount": 5000
		}
	},
	{
		"question": "Skins kosten bei uns RP. Wie viel RP pro Skin?",
		"valid_answer": "10",
		"incorrect_answer": [
			"50",
			"20"
		],
		"customreward": {
			"type": 1,
			"command": "",
			"itemid": 0,
			"amount": 150
		}
	},
	{
		"question": "Es gibt eine Möglichkeit Events, Raidbasen, Items und Deko zu kaufen. Wo?",
		"valid_answer": "Im Shop unter /shop",
		"incorrect_answer": [
			"/license",
			"/quest",
			"Ich wusste nicht das es sowas gibt."
		],
		"customreward": {
			"type": 1,
			"command": "",
			"itemid": 0,
			"amount": 0
		}
	},
	{
		"question": "Alle möglichen Fahrzeuge kannst du über einen Befehl kaufen. Welcher ist der Richtige?",
		"valid_answer": "/license",
		"incorrect_answer": [
			"/shop",
			"/buycar"
		],
		"customreward": {
			"type": 1,
			"command": "",
			"itemid": 0,
			"amount": 3000
		}
	},
	{
		"question": "Viele Items aus dem /shop können nicht über /remove abgerissen werden. Wie gehts?",
		"valid_answer": "Mit dem Hammer und mittlerer Maustaste.",
		"incorrect_answer": [
			"Lange > e < drücken.",
			"Ich habe keine Ahnung und lasse es einfach stehen."
		],
		"customreward": {
			"type": 1,
			"command": "",
			"itemid": 0,
			"amount": 5000
		}
	},
	{
		"question": "Items können auf dem Server geskinnt gegen RP geskinnt werden. Wie?",
		"valid_answer": "/skinbox",
		"incorrect_answer": [
			"/item",
			"/vote"
		],
		"customreward": {
			"type": 1,
			"command": "",
			"itemid": 0,
			"amount": 150
		}
	},
	{
		"question": "Was sind die Vorraussetzungen für NoStability?",
		"valid_answer": "Keine schwebenden Objekte. Das Gebäude darf nicht höher als 20 Stockwerke sein.",
		"incorrect_answer": [
			"Ich darf schwebend bauen.",
			"Ich darf nicht schwebend bauen, habe dafür aber keine Höhenbegrenzung."
		],
		"customreward": {
			"type": 1,
			"command": "",
			"itemid": 0,
			"amount": 0
		}
	},
	{
		"question": "Was ist bei NoStability erlaubt?",
		"valid_answer": "Ich darf Baumhäuser bauen oder kreativ sein, solange mein Haus nicht schwebt.",
		"incorrect_answer": [
			"Ich darf NoStability an Monumenten benutzen um besser den Panzer machen zu können.",
			"Ich darf schwebend bauen und über 40 Stockwerke."
		],
		"customreward": {
			"type": 1,
			"command": "",
			"itemid": 0,
			"amount": 0
		}
	},
	{
		"question": "Das automatische Schließen der Türen, kann man ausstellen. Wie geht das?",
		"valid_answer": "/ad",
		"incorrect_answer": [
			"/ql",
			"/t"
		],
		"customreward": {
			"type": 1,
			"command": "",
			"itemid": 0,
			"amount": 3000
		}
	},
	{
		"question": "Einen Recycler kannst du im /shop erwerben. Es gibt allerdings noch eine andere Möglichkeit. Welche?",
		"valid_answer": "/recycler.craft",
		"incorrect_answer": [
			"/rec",
			"/buyrecycler"
		],
		"customreward": {
			"type": 1,
			"command": "",
			"itemid": 0,
			"amount": 5000
		}
	},
	{
		"question": "Mit welchem Befehl kannst du deine Base mit einem Hammerschlag reparieren?",
		"valid_answer": "/br",
		"incorrect_answer": [
			"/baserepair",
			"/repair"
		],
		"customreward": {
			"type": 1,
			"command": "",
			"itemid": 0,
			"amount": 150
		}
	}
]

 

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.7k

Customers

Total customers served.

82.3k

Files Sold

Total number of files sold.

1.6m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.