Disable completely Nevit system by config.

Contributed by Sahar.
This commit is contained in:
MobiusDev
2018-06-01 08:55:09 +00:00
parent 6bad215c79
commit 241ef1a1c4
9 changed files with 58 additions and 22 deletions

View File

@@ -330,7 +330,10 @@ public class AdminEditChar implements IAdminCommandHandler
player.broadcastUserInfo();
player.sendPacket(new UserInfo(player));
player.sendPacket(new ExBrExtraUserInfo(player));
player.sendPacket(new ExVoteSystemInfo(player));
if (Config.NEVIT_ENABLED)
{
player.sendPacket(new ExVoteSystemInfo(player));
}
player.sendMessage("A GM changed your Recommend points to " + recVal);
activeChar.sendMessage(player.getName() + "'s Recommend changed to " + recVal);
}

View File

@@ -16,6 +16,7 @@
*/
package handlers.effecthandlers;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.model.StatsSet;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.conditions.Condition;
@@ -72,7 +73,10 @@ public final class GiveRecommendation extends AbstractEffect
sm.addInt(recommendationsGiven);
target.sendPacket(sm);
target.sendPacket(new UserInfo(target));
target.sendPacket(new ExVoteSystemInfo(target));
if (Config.NEVIT_ENABLED)
{
target.sendPacket(new ExVoteSystemInfo(target));
}
}
else
{