Jump to content

4 Screenshots

  • 3.1k
  • 7
  • 662.15 kB
 Share

Recommended Comments

Is there a way to configure this plugin to vote for events? for example i have both maze and roams plugins on my server would i be able to configure this so players can vote for certain events?

 

Link to comment
Share on other sites
17 hours ago, Flith said:

Is there a way to configure this plugin to vote for events? for example i have both maze and roams plugins on my server would i be able to configure this so players can vote for certain events?

 

You can add any description and any text to the voting, you can make them choose one of the events or a choice of several events, the whole voting is completely described by you

Link to comment
Share on other sites

Hi Mercury,
The idea in my head is simple and I hope to detail it well here.
Does this plugin allow you to run several polls and at the end of the positive result generate a command in the console?
Example:
1- The player writes the command "/vote 1" (activate drone patrol) Y/N
2- Show voting interface for 60 sec
3- If the positive votes are higher, allow you to configure a command to be executed in the console example "o.load IQDronePatrol"

I intend with this, that the players can activate any event, only if the majority agrees.

Edited by hc4stillo
Link to comment
Share on other sites
[09.29 23:32:48] Failed to initialize plugin 'IQSimpleVote v1.0.1' (UnauthorizedAccessException: Access to the path "/home/container/oxide/data/IQSystem/IQSimpleVote/VoteActive.json" is denied.)
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in <f98723dd4586469db5213ec59da723ca>:0 
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options) [0x00000] in <f98723dd4586469db5213ec59da723ca>:0 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions)
  at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize) [0x00055] in <f98723dd4586469db5213ec59da723ca>:0 
  at System.IO.StreamWriter..ctor (System.String path) [0x00008] in <f98723dd4586469db5213ec59da723ca>:0 
  at (wrapper remoting-invoke-with-check) System.IO.StreamWriter..ctor(string)
  at System.IO.File.WriteAllText (System.String path, System.String contents) [0x00026] in <f98723dd4586469db5213ec59da723ca>:0 
  at Oxide.Core.Configuration.DynamicConfigFile.WriteObject[T] (T config, System.Boolean sync, System.String filename) [0x0003f] in <beb2b64691c64e2b95b99491bd85442c>:0 
  at Oxide.Core.DataFileSystem.WriteObject[T] (System.String name, T Object, System.Boolean sync) [0x00007] in <beb2b64691c64e2b95b99491bd85442c>:0 
  at Oxide.Core.DataFileSystem.ReadObject[T] (System.String name) [0x0000f] in <beb2b64691c64e2b95b99491bd85442c>:0 
  at Oxide.Plugins.IQSimpleVote.ReadData () [0x0000b] in <a829f811b97445438800395851316fa8>:0 
  at Oxide.Plugins.IQSimpleVote.Init () [0x00006] in <a829f811b97445438800395851316fa8>:0 
  at Oxide.Plugins.IQSimpleVote.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x002f2] in <a829f811b97445438800395851316fa8>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <795304323ac74a298b8ed190a1dfa739>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <beb2b64691c64e2b95b99491bd85442c>:0 
  at Oxide.Core.Plugins.CSPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00043] in <beb2b64691c64e2b95b99491bd85442c>:0
[09.29 23:32:48] Unloaded plugin IQSimpleVote v1.0.1 by Mercury
[09.29 23:32:48] No previous version to rollback plugin: IQSimpleVote
[09.29 23:32:52] IQSimpleVote was compiled successfully in 1984ms

I solved it by creating the VoteActive.json file with empty content { }

 

I have 2 questions
1- In the description you do not mention any special command for the admin,

/vote.admin
/vote.key
/vote.start "key" 
/vote.stop


2- Is it possible to execute custom commands in the console after finishing the votes

Example:

image.png.f4f73a088a70e9a0f4bdae67a9c3d64b.png

config

image.png.9947e3c156bfa3d223ebc6230cdb5e35.png

 

Edited by hc4stillo
  • Love 1
Link to comment
Share on other sites
13 hours ago, hc4stillo said:

Hi Mercury,
The idea in my head is simple and I hope to detail it well here.
Does this plugin allow you to run several polls and at the end of the positive result generate a command in the console?
Example:
1- The player writes the command "/vote 1" (activate drone patrol) Y/N
2- Show voting interface for 60 sec
3- If the positive votes are higher, allow you to configure a command to be executed in the console example "o.load IQDronePatrol"

I intend with this, that the players can activate any event, only if the majority agrees.

Sounds good 🙂

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Like 1

Mercury's Collection

User Feedback

1.4m

Downloads

Total number of downloads.

6.7k

Customers

Total customers served.

99.3k

Files Sold

Total number of files sold.

2m

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.