Hi,
i can't get this plugin working.
Besides missing exception handling, spelling errors, and missing Message-Feedback, i have noticed that the config\Poll_list.json is not filled correclty.
looks like this:
i can't get this plugin working.
Besides missing exception handling, spelling errors, and missing Message-Feedback, i have noticed that the config\Poll_list.json is not filled correclty.
//Rewrites the poll_file
public void updatePollList(List list)
{
Interface.Oxide.DataFileSystem.WriteObject(ConfigPollListFile, JsonConvert.SerializeObject(list));
//Interface.Oxide.DataFileSystem.WriteObject(ConfigPollListFile, list);
}I have tried to save it even without the JsonConvert, but the file is still "empty".
The List that was saved
public class Poll
{
private string _pollName;
private string _content;
private string _creator;
private DateTime _dateOfCreation;
private List _yesVotes;
private List _noVotes;
[...functions, constructor..]
}looks like this:
"[\r\n {}\r\n]"The content (Name, content, creater, time) is filled.