Callvote 6.6.3
dotnet add package Callvote --version 6.6.3
NuGet\Install-Package Callvote -Version 6.6.3
<PackageReference Include="Callvote" Version="6.6.3" />
<PackageVersion Include="Callvote" Version="6.6.3" />
<PackageReference Include="Callvote" />
paket add Callvote --version 6.6.3
#r "nuget: Callvote, 6.6.3"
#:package Callvote@6.6.3
#addin nuget:?package=Callvote&version=6.6.3
#tool nuget:?package=Callvote&version=6.6.3
Callvote
The sucessor of callvote.
A plugin that allows calling and voting for Kick, RestartRound, Kill, RespawnWave, FriendlyFire, or Custom Votes using KEYBINDS or CONSOLE COMMANDS in the same format as the Source Engine (Left 4 Dead 2/Counter-Strike: Global Offensive).
If you want to develop using Callvote, please install the Nuget Package
Examples
VotingHandler.AddOptionToVoting("nothing", "<size=100>NOTHING!!!</color>");
VotingHandler.AddOptionToVoting("nothing1", "<size=100>NOTHING1!!!</color>");
VotingHandler.CallVoting(new CustomVoting(player, $"{player.Nickname} asks: Do nothing!!!!!", "NothingBurguerPlugin.DoNothing"));
VotingHandler.CallVoting(new CustomVoting(player, $"{player.Nickname} asks: Enable FF?", "NothingBurguerPlugin.FF", new FFVoting(player)));
Dictionary<string, string> options = new()
{
["nothing"] = "<size=100>NOTHING!!!</color>",
["nothing1"] = "<size=100>NOTHING2!!!</color>"
};
CustomVoting vote = new CustomVoting(player, $"{player.Nickname} asks: Do nothing!!!!!", "NothingBurguerPlugin.DoNothing", null, options);
VotingHandler.CallVoting(vote);
private void ReviveSCPs(DiedEventArgs ev)
{
if (ev.Player.IsScp)
{
void callback(Voting vote)
{
int yes = vote.Counter[Callvote.Callvote.Instance.Translation.CommandYes];
int no = vote.Counter[Callvote.Callvote.Instance.Translation.CommandNo];
if (yes > no)
{
ev.Player.RoleManager.ServerSetRole(ev.TargetOldRole, PlayerRoles.RoleChangeReason.None);
Map.Broadcast(5, $"{ev.TargetOldRole} respawned.");
return;
}
Map.Broadcast(5, "The Voting Failed.");
}
BinaryVoting reviveSCP = new BinaryVoting(Server.Host, $"Revive {ev.TargetOldRole}?", $"NothingBurguerPlugin.Respawn", callback);
VotingHandler.CallVoting(reviveSCP);
}
}
Download
This plugin requires Exiled or LabAPI.
You can download the latest version of Callvote here.
Soft Depedencies
Replaces Broadcasts with Hints.
❗️ Do not install both — they are incompatible with each other.
HintServiceMeow — You can download it here.
Special thanks to:
https://github.com/Playeroth and https://github.com/Edi369 for helping me with translations and adding webhook functionality.
https://github.com/PatPeter for giving the permission to continue the development of callvote.
https://github.com/vladflotsky for giving adivice and guidance while I was rewritting the plugin.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net48 is compatible. net481 was computed. |
-
.NETFramework 4.8
- ExMod.Exiled (>= 9.12.6)
- Lib.Harmony (>= 2.2.2)
- Northwood.LabAPI (>= 1.1.5)
- RueI (>= 3.1.2)
- YamlDotNet (>= 16.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.