Skip to content

Commit

Permalink
Merge pull request #125 from diegorodriguesvieira/master
Browse files Browse the repository at this point in the history
Fix wrong expiration date on unjust kill system
  • Loading branch information
peonso authored Feb 1, 2017
2 parents 7b026da + b24b156 commit fe237dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4395,7 +4395,7 @@ void Player::addUnjustifiedDead(const Player* attacked)

if (g_config.getNumber(ConfigManager::KILLS_TO_BAN) != 0 && totalKills >= (g_config.getNumber(ConfigManager::KILLS_TO_BAN)))
{
if (g_bans.addPlayerBan(getName(), g_config.getNumber(ConfigManager::BAN_LENGTH), 1 /* Type here your gamemaster ID */, "Automatic", "", 28, ACTION_BANISHMENT))
if (g_bans.addPlayerBan(getName(), std::time(NULL) + g_config.getNumber(ConfigManager::BAN_LENGTH), 1 /* Type here your gamemaster ID */, "Automatic", "", 28, ACTION_BANISHMENT))
{
g_game.addMagicEffect(getPosition(), NM_ME_MAGIC_POISON);
g_scheduler.addEvent(createSchedulerTask(1000, boost::bind(&Player::kickPlayer, this)));
Expand Down

0 comments on commit fe237dc

Please sign in to comment.