How to add a survey via File(deDE)
It is possible to easily add a survey via file. The extension must be .yml, for the name choose what you want. For basic understanding in editing .yml files read the Bukkitwiki entry: click The structure of the file looks like this:
<surveyname>: topic: - 'topic line 1' - 'topic line 2' votes: - 'answer1': 2 - 'answer2': 2 started: false estEnde: '01/01/1990 00:00' auto-end: false mul-choice: false perm: all player: []
The surveyname at the top must be the name of the file without .yml. This is really important. The rest is pretty self explainable.
- topic: This is the list for the topic. It will display each line like it is written.
- votes: This is a list of every answer in the survey. The number behind is the count of how many this have been voted on.
- started: Determines if the survey is startet and someone can vote on or not.
- estEnde: Specefies the end date for the autmatic close function.
- auto-end: Determines if the automatic close function is enabled oder disabled.
- mul-choice: Enables or disables the multiple choice function.
- perm: This is the permission you need for the survey. It is added to "Veto.survey.<perm>".
- player: Every player who already voted on the survey will displayed here. It is recommended to leave it to "[]".
Comments