|
Dedicated Server Discuss technical issues related to hosting your own servers. |
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Vote Group
I've seen JSON files that suggest there is a way to have a vote for everyone or for admins. It's unclear to me how to issue a vote to just admins, and would also like to allow voting to just specs or players.
Code:
{"port":98753,"time":1925451,"arguments":["custom","MyCommand"],"source":"00000000-0000-0000-0000-000000000000","command":"vote","group":"Anonymous","type":"consoleCommandExecute"} {"port":98753,"time":1938434,"arguments":["stopTournament"],"source":"00000000-0000-0000-0000-000000000000","command":"vote","group":"Administrator","type":"consoleCommandExecute"} Relevant link showing the differences between the groups concerning voting. Shared by Juin and Iderik. Last edited by Aki1024; 11-11-2011 at 07:12 PM. |
#2
|
|||
|
|||
Group refers to the "priority level" of the action's origin (and applies to all console commands), not the audience for a vote command. For example, a kick initiated by a player vote will show group:Vote whereas a kick initiated by an rcon-authenticated administrator will show group:Administrator.
|
#3
|
|||
|
|||
Understood. Thanks for clearing up my confusion.
For Ladder, I would like a /stopTournament command that only ask the non-specs if stopTournament should happen. Iderik spoke of his API being able to start a new server by asking all the specs to vote via server whisper and commands. Though I think both of these functions would benefit from using the in game voting system aimed at certain users, his idea of using command line per person of interest will work. |
|
|