mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 23:31:13 -05:00
added 'none' and extra m16 variants to weapon list
moved killstreak/deathstreak messages into configuration file cleaned up configuration manager fixed misc startup issue and threading added more importing stuff network id is a ulong now ip str is now ip added time played (per server)
This commit is contained in:
@ -40,7 +40,7 @@ namespace Votemap_Plugin
|
||||
// we only want to allow a vote during a vote session
|
||||
if (voting.voteInSession)
|
||||
{
|
||||
if (voting.ClientHasVoted(E.Origin.NetworkId))
|
||||
if (voting.ClientHasVoted(E.Origin.NetworkId.ToString()))
|
||||
await E.Origin.Tell("You have already voted. Use ^5!vc ^7to ^5cancel ^7your vote");
|
||||
else
|
||||
{
|
||||
@ -51,7 +51,7 @@ namespace Votemap_Plugin
|
||||
await E.Origin.Tell("^1" + E.Data + " is not a recognized map");
|
||||
else
|
||||
{
|
||||
voting.CastClientVote(E.Origin.NetworkId, votedMap);
|
||||
voting.CastClientVote(E.Origin.NetworkId.ToString(), votedMap);
|
||||
await E.Origin.Tell("You voted for ^5" + votedMap.Alias);
|
||||
}
|
||||
}
|
||||
@ -72,9 +72,9 @@ namespace Votemap_Plugin
|
||||
|
||||
if (voting.voteInSession)
|
||||
{
|
||||
if (voting.ClientHasVoted(E.Origin.NetworkId))
|
||||
if (voting.ClientHasVoted(E.Origin.NetworkId.ToString()))
|
||||
{
|
||||
voting.CancelClientVote(E.Origin.NetworkId);
|
||||
voting.CancelClientVote(E.Origin.NetworkId.ToString());
|
||||
await E.Origin.Tell("Vote cancelled");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user