The cause is that I have designed another plugin that works with maniakarma and needs to calculate the result from the database.
A greeting.

I think I understand ,,, but the votes of each player are not written in the database until starting the next map ,,, my plugin calculates on the existing data in the database ,, and has to wait until the next map to perform the calculationsundef.de wrote: ↑27 Jul 2020, 10:55 The ManiaKarma plugin calculates the Karma on the fly (with the same method the server does) and therefore the Karma has the correct value in that moment as a player vote.
The ManiaKarma plugins sends the votes at once to the server to reduce the load of the server. This has been changed several years ago where the ManiaKarma plugin was sending each vote (and the changes) as soon as a player has voted. The server wasn't able to handle that load.
Code: Select all
// Release a KarmaChange Event
$aseco->releaseEvent('onKarmaChange',
array(
'Karma' => $this->karma['global']['votes']['karma'],
'Total' => $this->karma['global']['votes']['total'],
'FantasticCount' => $this->karma['global']['votes']['fantastic']['count'],
'FantasticPercent' => $this->karma['global']['votes']['fantastic']['percent'],
'BeautifulCount' => $this->karma['global']['votes']['beautiful']['count'],
'BeautifulPercent' => $this->karma['global']['votes']['beautiful']['percent'],
'GoodCount' => $this->karma['global']['votes']['good']['count'],
'GoodPercent' => $this->karma['global']['votes']['good']['percent'],
'BadCount' => $this->karma['global']['votes']['bad']['count'],
'BadPercent' => $this->karma['global']['votes']['bad']['percent'],
'PoorCount' => $this->karma['global']['votes']['poor']['count'],
'PoorPercent' => $this->karma['global']['votes']['poor']['percent'],
'WasteCount' => $this->karma['global']['votes']['waste']['count'],
'WastePercent' => $this->karma['global']['votes']['waste']['percent'],
)
);
Users browsing this forum: No registered users and 1 guest