Jump to content

A couple of problems

Work in Progress 1.2.4

HunterZ
HunterZ

Posted

First, something is off with the vote count...the "still needed" number seems to go up instead of down as more people vote.

Second, while the plugin saves off the list of voters, it doesn't re-add them to `votingProperties.votes` if the plugin gets reloaded.

If it helps, here is my config:

{
  "Settings": {
    "Time to announce heli vote's [in seconds]": 300,
    "Percentage of vote's required [0 - 100]": 80.0,
    "Cancel vote for Helicopters spawned by a player [Requires: Heli Signals]": false,
    "Cancel vote for locked Helicopters [Requires: Loot Defender]": false
  },
  "Commands & Permissions": {
    "Heli vote Command": "voteheli",
    "Heli kill command [Requires admin perm]": "killhelis",
    "Voting Permission": "use",
    "Admin Permission": "admin"
  },
  "Messages": {
    "Use Chat Messages?": true,
    "Use chat for Server Messages?": true,
    "Use Toastify Messages?": false,
    "Use Toastify for Server Messages?": false,
    "Use Notify Messages?": false,
    "Use Notify for Server Messages?": false,
    "Steam ID to use for the image for messages? [0 = default]": 0
  },
  "Notifications": {
    "Toastify Positive Msg ID": "success",
    "Toastify Negative Msg ID": "error",
    "Toastify Msg Duration": 10.0,
    "Notify Positive Msg ID": 0,
    "Notify Negative Msg ID": 1
  },
  "Version": {
    "Major": 1,
    "Minor": 2,
    "Patch": 4
  }
}

 

Snaplatack

Posted

Changed Status from Pending to Work in Progress

Snaplatack

Posted

Ill look into this tomorrow. I saw your post on Umod but got lost with real life stuff happening. sorry...

  • Like 1
HunterZ

Posted

No worries, just wanted to make sure you saw it.

I've been tempted to rework the plugin but I'd rather let you do it lol

Snaplatack

Posted

11 hours ago, HunterZ said:

No worries, just wanted to make sure you saw it.

I've been tempted to rework the plugin but I'd rather let you do it lol

If you wish to do that it's fine. Feel free to send it to me for me to review. I'm in the middle of rewriting it since it's horrendous lmao. This was my first plugin I ever made lol

Snaplatack

Posted (edited)

Care to test out this version? It wont actually be named KillHeliVote2 just doing that for now when rewriting
KillHeliVote2.cs

Edited by Snaplatack
2m

Downloads

Total number of downloads.

9.4k

Customers

Total customers served.

136.8k

Files Sold

Total number of files sold.

2.9m

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.