Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Eclipse Workspace Patch 1.0
- #P aCis_gameserver
- Index: java/net/sf/l2j/gameserver/autovotereward/AutoVoteMain.java
- ===================================================================
- --- java/net/sf/l2j/gameserver/autovotereward/AutoVoteMain.java (revision 0)
- +++ java/net/sf/l2j/gameserver/autovotereward/AutoVoteMain.java (working copy)
- @@ -0,0 +1,180 @@
- +/*
- + * This program is free software: you can redistribute it and/or modify it under
- + * the terms of the GNU General Public License as published by the Free Software
- + * Foundation, either version 3 of the License, or (at your option) any later
- + * version.
- + *
- + * This program is distributed in the hope that it will be useful, but WITHOUT
- + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
- + * details.
- + *
- + * You should have received a copy of the GNU General Public License along with
- + * this program. If not, see <http://www.gnu.org/licenses/>.
- + */
- +package net.sf.l2j.gameserver.autovotereward;
- +
- +import java.util.Collection;
- +import java.util.HashMap;
- +import java.util.Map;
- +import java.util.logging.Logger;
- +
- +import net.sf.l2j.commons.concurrent.ThreadPool;
- +
- +import net.sf.l2j.Config;
- +import net.sf.l2j.gameserver.model.World;
- +import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
- +import net.sf.l2j.gameserver.autovotereward.HopZoneAuto.CheckForRewardHop;
- +import net.sf.l2j.gameserver.autovotereward.NetWorkAuto.CheckForRewardNet;
- +import net.sf.l2j.gameserver.autovotereward.TopZoneAuto.CheckForRewardTop;
- +
- +/**
- + * @author Reborn12
- + *
- + */
- +public class AutoVoteMain
- +{
- + static final Logger LOGGER = Logger.getLogger(AutoVoteMain.class.getName());
- + static Map<String, Integer> playerIps = new HashMap<>();
- + private static int _topzoneVotesCount = 0;
- + private static int _l2networkVotesCount = 0;
- + private static int _hopzoneVotesCount = 0;
- + static boolean _topzone = false;
- + static boolean _l2network = false;
- + static boolean _hopzone = false;
- +
- + AutoVoteMain()
- + {
- + LOGGER.info("VoteSystem Loaded.");
- + if (_topzone)
- + {
- + int topzone_votes = TopZoneAuto.getTopZoneVotes();
- +
- + if (topzone_votes == -1)
- + topzone_votes = 0;
- +
- + setTopZoneVoteCount(topzone_votes);
- + }
- +
- + if (_l2network)
- + {
- + int l2network_votes = NetWorkAuto.getL2NetworkVotes();
- +
- + if (l2network_votes == -1)
- + l2network_votes = 0;
- +
- + setL2NetworkVoteCount(l2network_votes);
- + }
- +
- + if (_hopzone)
- + {
- + int hopzone_votes = HopZoneAuto.getHopZoneVotes();
- +
- + if (hopzone_votes == -1)
- + hopzone_votes = 0;
- +
- + setHopZoneVoteCount(hopzone_votes);
- + }
- + startTimer();
- + }
- +
- + private static void startTimer()
- + {
- + ThreadPool.scheduleAtFixedRate(new CheckForRewardNet(), Config.VOTES_SYSTEM_INITIAL_DELAY_NET * 60 * 1000, Config.VOTES_SYSTEM_STEP_DELAY_NET * 60 * 1000);
- + ThreadPool.scheduleAtFixedRate(new CheckForRewardTop(), Config.VOTES_SYSTEM_INITIAL_DELAY_TOP * 60 * 1000, Config.VOTES_SYSTEM_STEP_DELAY_TOP * 60 * 1000);
- + ThreadPool.scheduleAtFixedRate(new CheckForRewardHop(), Config.VOTES_SYSTEM_INITIAL_DELAY_HOP * 60 * 1000, Config.VOTES_SYSTEM_STEP_DELAY_HOP * 60 * 1000);
- + }
- +
- + protected static void rewardPlayer()
- + {
- + Collection<L2PcInstance> pls = World.getInstance().getPlayers();
- +
- + for (L2PcInstance p : pls)
- + {
- + if (p.getClient() == null || p.getClient().isDetached()) // offline shops protection
- + continue;
- +
- + boolean canReward = false;
- + String pIp = p.getClient().getConnection().getInetAddress().getHostAddress();
- + if (playerIps.containsKey(pIp))
- + {
- + int count = playerIps.get(pIp);
- + if (count < Config.VOTE_BOXES_ALLOWED)
- + {
- + playerIps.remove(pIp);
- + playerIps.put(pIp, count + 1);
- + canReward = true;
- + }
- + }
- + else
- + {
- + canReward = true;
- + playerIps.put(pIp, 1);
- + }
- + if (canReward)
- + for (int i : Config.VOTES_REWARDS_LIST_AUTOVOTE.keySet())
- + p.addItem("Vote reward.", i, Config.VOTES_REWARDS_LIST_AUTOVOTE.get(i), p, true);
- + else
- + p.sendMessage("Already " + Config.VOTE_BOXES_ALLOWED + " character(s) of your ip have been rewarded, so this character won't be rewarded.");
- + }
- + playerIps.clear();
- + }
- +
- + protected static void setTopZoneVoteCount(int voteCount)
- + {
- + _topzoneVotesCount = voteCount;
- + }
- +
- + protected static int getTopZoneVoteCount()
- + {
- + return _topzoneVotesCount;
- +
- + }
- +
- + protected static void setL2NetworkVoteCount(int voteCount)
- + {
- + _l2networkVotesCount = voteCount;
- + }
- +
- + protected static int getL2NetworkVoteCount()
- + {
- + return _l2networkVotesCount;
- + }
- +
- + protected static void setHopZoneVoteCount(int voteCount)
- + {
- + _hopzoneVotesCount = voteCount;
- + }
- +
- + protected static int getHopZoneVoteCount()
- + {
- + return _hopzoneVotesCount;
- + }
- +
- + public static AutoVoteMain getInstance()
- + {
- +
- + if (Config.VOTES_SITE_TOPZONE_LINK_TOP != null && !Config.VOTES_SITE_TOPZONE_LINK_TOP.equals(""))
- + {
- + _topzone = true;
- + }
- + if (Config.VOTES_SITE_L2NETWORK_LINK_NET != null && !Config.VOTES_SITE_L2NETWORK_LINK_NET.equals(""))
- + {
- + _l2network = true;
- + }
- + if (Config.VOTES_SITE_HOPZONE_LINK_HOP != null && !Config.VOTES_SITE_HOPZONE_LINK_HOP.equals(""))
- + {
- + _hopzone = true;
- + }
- + if (_topzone && _l2network && _hopzone)
- + {
- + return SingletonHolder._instance;
- + }
- + return null;
- + }
- +
- + private static class SingletonHolder
- + {
- + protected static final AutoVoteMain _instance = new AutoVoteMain();
- + }
- +}
- Index: java/net/sf/l2j/gameserver/autovotereward/HopZoneAuto.java
- ===================================================================
- --- java/net/sf/l2j/gameserver/autovotereward/HopZoneAuto.java (revision 0)
- +++ java/net/sf/l2j/gameserver/autovotereward/HopZoneAuto.java (working copy)
- @@ -0,0 +1,95 @@
- +/*
- + * This program is free software: you can redistribute it and/or modify it under
- + * the terms of the GNU General Public License as published by the Free Software
- + * Foundation, either version 3 of the License, or (at your option) any later
- + * version.
- + *
- + * This program is distributed in the hope that it will be useful, but WITHOUT
- + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
- + * details.
- + *
- + * You should have received a copy of the GNU General Public License along with
- + * this program. If not, see <http://www.gnu.org/licenses/>.
- + */
- +package net.sf.l2j.gameserver.autovotereward;
- +
- +import java.io.BufferedReader;
- +import java.io.InputStreamReader;
- +import java.net.HttpURLConnection;
- +import java.net.URL;
- +import net.sf.l2j.Config;
- +import net.sf.l2j.gameserver.model.Announcement;
- +
- +/**
- + * @author Reborn12
- + */
- +public class HopZoneAuto extends AutoVoteMain
- +{
- +
- + protected static int getHopZoneVotes()
- + {
- + int votes = -1;
- +
- + try
- + {
- + final URL obj = new URL(Config.VOTES_SITE_HOPZONE_LINK_HOP);
- + final HttpURLConnection con = (HttpURLConnection) obj.openConnection();
- + con.addRequestProperty("User-Agent", "L2Hopzone");
- + con.setConnectTimeout(5000);
- +
- + final int responseCode = con.getResponseCode();
- + if (responseCode == 200)
- + {
- + try (BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream())))
- + {
- + String line;
- + while ((line = in.readLine()) != null)
- + {
- + if (line.contains("Total Votes") || line.contains("rank tooltip") || line.contains("no steal make love") || line.contains("no votes here") || line.contains("bang, you don't have votes") || line.contains("la vita e bella") || line.contains("rank anonymous tooltip"))
- + {
- + String inputLine = line.split(">")[2].replace("</span", "");
- + votes = Integer.parseInt(inputLine);
- + break;
- + }
- + }
- + }
- + }
- + }
- + catch (Exception e)
- + {
- + System.out.println("Server HOPZONE is offline Trying to Reconnect");
- + Announcement.VoteAnnouncements("HOPZONE is offline...Trying to Reconnect");
- + }
- + return votes;
- + }
- +
- + public static class CheckForRewardHop implements Runnable
- + {
- +
- + @Override
- + public void run()
- + {
- +
- + if (_hopzone)
- + {
- + int hopzone_votes = getHopZoneVotes();
- + if (hopzone_votes != -1)
- + {
- + LOGGER.info("[HOPZONE] Votes: " + hopzone_votes);
- +
- + Announcement.VoteAnnouncements("[HOPZONE] Votes are " + hopzone_votes + "...");
- +
- + if (hopzone_votes != 0 && hopzone_votes >= getHopZoneVoteCount() + Config.VOTES_FOR_REWARD_HOP)
- + {
- + rewardPlayer();
- + Announcement.VoteAnnouncements("[HOPZONE] Thanks For Voting..Players Rewarded!");
- + }
- + setHopZoneVoteCount(hopzone_votes);
- + }
- + Announcement.VoteAnnouncements("[HOPZONE]Next Reward at " + (getHopZoneVoteCount() + Config.VOTES_FOR_REWARD_HOP) + " Votes!!");
- + Announcement.VoteAnnouncements("[WEBSITE] " + Config.SERVER_WEB_SITE);
- + }
- + }
- + }
- +}
- \ No newline at end of file
- Index: java/net/sf/l2j/Config.java
- ===================================================================
- --- java/net/sf/l2j/Config.java (revision 10)
- +++ java/net/sf/l2j/Config.java (working copy)
- @@ -53,6 +53,7 @@
- public static final String SIEGE_FILE = "./config/siege.properties";
- public static final String EVENTS_FILE_CUSTOM = "./config/customevents.properties";
- public static final String CLANMANAGER_FILE = "./config/clanmanager.properties";
- + public static final String VOTE_FILE = "./config/vote.properties";
- @@ -547,6 +548,26 @@
- public static int BUFFS_MAX_AMOUNT;
- // --------------------------------------------------
- + // Vote settings
- + // --------------------------------------------------
- + public static boolean VOTE_SYSTEM_ENABLED;
- + public static int VOTES_FOR_REWARD_TOP;
- + public static int VOTES_FOR_REWARD_NET;
- + public static int VOTES_FOR_REWARD_HOP;
- + public static int VOTES_SYSTEM_INITIAL_DELAY_TOP;
- + public static int VOTES_SYSTEM_STEP_DELAY_TOP;
- + public static int VOTES_SYSTEM_INITIAL_DELAY_HOP;
- + public static int VOTES_SYSTEM_STEP_DELAY_HOP;
- + public static int VOTES_SYSTEM_INITIAL_DELAY_NET;
- + public static int VOTES_SYSTEM_STEP_DELAY_NET;
- + public static Map<Integer, Integer> VOTES_REWARDS_LIST_AUTOVOTE = new HashMap<>();
- + public static int VOTE_BOXES_ALLOWED;
- + public static String VOTES_SITE_TOPZONE_LINK_TOP;
- + public static String VOTES_SITE_HOPZONE_LINK_HOP;
- + public static String VOTES_SITE_L2NETWORK_LINK_NET;
- + public static String SERVER_WEB_SITE;
- +
- + // --------------------------------------------------
- // Server
- // --------------------------------------------------
- @@ -1315,6 +1340,38 @@
- }
- /**
- + * Loads VoteSystem settings.
- + */
- + private static final void LoadVoteSystem()
- + {
- + final ExProperties vote = initProperties(VOTE_FILE);
- + VOTE_SYSTEM_ENABLED = vote.getProperty("EnableVoteRewardSystem", true);
- + VOTES_FOR_REWARD_TOP = vote.getProperty("VotesRequiredForRewardTop", 100);
- + VOTES_SYSTEM_INITIAL_DELAY_TOP = vote.getProperty("VotesSystemInitialDelayTop", 18);
- + VOTES_SYSTEM_STEP_DELAY_TOP = vote.getProperty("VotesSystemStepDelayTop", 18);
- + VOTES_FOR_REWARD_HOP = vote.getProperty("VotesRequiredForRewardHop", 100);
- + VOTES_SYSTEM_INITIAL_DELAY_HOP = vote.getProperty("VotesSystemInitialDelayHop", 18);
- + VOTES_SYSTEM_STEP_DELAY_HOP = vote.getProperty("VotesSystemStepDelayHop", 18);
- + VOTES_FOR_REWARD_NET = vote.getProperty("VotesRequiredForRewardNet", 100);
- + VOTES_SYSTEM_INITIAL_DELAY_NET = vote.getProperty("VotesSystemInitialDelayNet", 18);
- + VOTES_SYSTEM_STEP_DELAY_NET = vote.getProperty("VotesSystemStepDelayNet", 18);
- + VOTE_BOXES_ALLOWED = vote.getProperty("AutoVoteBoxesAllowed", 18);
- + String REWARD_AUTO = vote.getProperty("AutoVoteSystemReward", "57,100000000;");
- + String[] reward_splitted_1 = REWARD_AUTO.split(";");
- + for (String i : reward_splitted_1)
- + {
- + String[] reward_splitted_2 = i.split(",");
- + VOTES_REWARDS_LIST_AUTOVOTE.put(Integer.parseInt(reward_splitted_2[0]), Integer.parseInt(reward_splitted_2[1]));
- + }
- + VOTE_BOXES_ALLOWED = vote.getProperty("AutoVoteBoxesAllowed", 1);
- + VOTES_SITE_TOPZONE_LINK_TOP = vote.getProperty("VotesSiteTopZoneLinkTop", "");
- + VOTES_SITE_HOPZONE_LINK_HOP = vote.getProperty("VotesSiteHopZoneLinkHop", "");
- + VOTES_SITE_L2NETWORK_LINK_NET = vote.getProperty("VotesSiteNetWorkLinkNet", "");
- + SERVER_WEB_SITE = vote.getProperty("ServerWebSite", "");
- +
- + }
- +
- + /**
- * Loads gameserver settings.<br>
- * IP addresses, database, rates, feature enabled/disabled, misc.
- */
- @@ -1538,6 +1595,9 @@
- // players settings
- loadPlayers();
- + // vote setting
- + LoadVoteSystem();
- +
- // server settings
- loadServer();
- }
- Index: java/net/sf/l2j/gameserver/model/Announcement.java
- ===================================================================
- --- java/net/sf/l2j/gameserver/model/Announcement.java (revision 3)
- +++ java/net/sf/l2j/gameserver/model/Announcement.java (working copy)
- @@ -18,6 +18,9 @@
- import net.sf.l2j.commons.concurrent.ThreadPool;
- +import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
- +import net.sf.l2j.gameserver.network.clientpackets.Say2;
- +import net.sf.l2j.gameserver.network.serverpackets.CreatureSay;
- import net.sf.l2j.gameserver.util.Broadcast;
- /**
- @@ -125,6 +128,19 @@
- }
- }
- + public static void VoteAnnouncements(String text)
- + {
- + CreatureSay cs = new CreatureSay(0, Say2.HERO_VOICE, "", "" + text);
- + for (L2PcInstance player : World.getInstance().getPlayers())
- + {
- + if (player != null)
- + if (player.isOnlineInt() != 0)
- + player.sendPacket(cs);
- + }
- +
- + cs = null;
- + }
- +
- public void reloadTask()
- {
- stopTask();
- Index: java/net/sf/l2j/gameserver/autovotereward/NetWorkAuto.java
- ===================================================================
- --- java/net/sf/l2j/gameserver/autovotereward/NetWorkAuto.java (revision 0)
- +++ java/net/sf/l2j/gameserver/autovotereward/NetWorkAuto.java (working copy)
- @@ -0,0 +1,93 @@
- +/*
- + * This program is free software: you can redistribute it and/or modify it under
- + * the terms of the GNU General Public License as published by the Free Software
- + * Foundation, either version 3 of the License, or (at your option) any later
- + * version.
- + *
- + * This program is distributed in the hope that it will be useful, but WITHOUT
- + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
- + * details.
- + *
- + * You should have received a copy of the GNU General Public License along with
- + * this program. If not, see <http://www.gnu.org/licenses/>.
- + */
- +package net.sf.l2j.gameserver.autovotereward;
- +
- +import java.io.BufferedReader;
- +import java.io.InputStreamReader;
- +import java.net.HttpURLConnection;
- +import java.net.URL;
- +import net.sf.l2j.Config;
- +import net.sf.l2j.gameserver.model.Announcement;
- +
- +/**
- + * @author Reborn12
- + */
- +public class NetWorkAuto extends AutoVoteMain
- +{
- +
- + protected static int getL2NetworkVotes()
- + {
- + int votes = -1;
- +
- + try
- + {
- + final URL obj = new URL(Config.VOTES_SITE_L2NETWORK_LINK_NET);
- + final HttpURLConnection con = (HttpURLConnection) obj.openConnection();
- +
- + con.addRequestProperty("User-Agent", "L2Network");
- + con.setConnectTimeout(5000);
- +
- + final int responseCode = con.getResponseCode();
- + if (responseCode == 200)
- + {
- + try (BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream())))
- + {
- + String inputLine;
- + while ((inputLine = in.readLine()) != null)
- + {
- + if (inputLine.contains("color:#e7ebf2"))
- + {
- + votes = Integer.valueOf(inputLine.split(">")[2].replace("</b", ""));
- + break;
- + }
- + }
- + }
- + }
- + }
- + catch (Exception e)
- + {
- + System.out.println("Server L2Network is offline Trying to Reconnect");
- + Announcement.VoteAnnouncements("L2Network is offline...Trying to Reconnect");
- + }
- + return votes;
- + }
- +
- + public static class CheckForRewardNet implements Runnable
- + {
- +
- + @Override
- + public void run()
- + {
- + if (_l2network)
- + {
- + int l2network_votes = getL2NetworkVotes();
- + if (l2network_votes != -1)
- + {
- + LOGGER.info("[NETWORK] Votes: " + l2network_votes);
- + Announcement.VoteAnnouncements("[NETWORK] Votes are " + l2network_votes + "...");
- + if ((l2network_votes != 0) && (l2network_votes >= getL2NetworkVoteCount() + Config.VOTES_FOR_REWARD_NET))
- + {
- + rewardPlayer();
- + Announcement.VoteAnnouncements("[NETWORK] Thanks For Voting..Players Rewarded!");
- + }
- + setL2NetworkVoteCount(l2network_votes);
- + }
- + Announcement.VoteAnnouncements("[NETWORK]Next Reward at " + (getL2NetworkVoteCount() + Config.VOTES_FOR_REWARD_NET) + " Votes!!");
- +
- + Announcement.VoteAnnouncements("[WEBSITE] " + Config.SERVER_WEB_SITE);
- + }
- + }
- + }
- +}
- \ No newline at end of file
- Index: java/net/sf/l2j/gameserver/autovotereward/TopZoneAuto.java
- ===================================================================
- --- java/net/sf/l2j/gameserver/autovotereward/TopZoneAuto.java (revision 0)
- +++ java/net/sf/l2j/gameserver/autovotereward/TopZoneAuto.java (working copy)
- @@ -0,0 +1,90 @@
- +/*
- + * This program is free software: you can redistribute it and/or modify it under
- + * the terms of the GNU General Public License as published by the Free Software
- + * Foundation, either version 3 of the License, or (at your option) any later
- + * version.
- + *
- + * This program is distributed in the hope that it will be useful, but WITHOUT
- + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
- + * details.
- + *
- + * You should have received a copy of the GNU General Public License along with
- + * this program. If not, see <http://www.gnu.org/licenses/>.
- + */
- +package net.sf.l2j.gameserver.autovotereward;
- +
- +import java.io.BufferedReader;
- +import java.io.InputStreamReader;
- +import java.net.HttpURLConnection;
- +import java.net.URL;
- +import net.sf.l2j.Config;
- +import net.sf.l2j.gameserver.model.Announcement;
- +
- +/**
- + * @author Reborn12
- + */
- +public class TopZoneAuto extends AutoVoteMain
- +{
- +
- + public static int getTopZoneVotes()
- + {
- + int votes = -1;
- +
- + try
- + {
- + final URL obj = new URL(Config.VOTES_SITE_TOPZONE_LINK_TOP);
- + final HttpURLConnection con = (HttpURLConnection) obj.openConnection();
- + con.addRequestProperty("User-Agent", "L2TopZone");
- + con.setConnectTimeout(5000);
- +
- + final int responseCode = con.getResponseCode();
- + if (responseCode == 200)
- + {
- + try (BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream())))
- + {
- + String inputLine;
- + while ((inputLine = in.readLine()) != null)
- + {
- + votes = Integer.valueOf(inputLine);
- + break;
- + }
- + }
- + }
- + }
- + catch (Exception e)
- + {
- + System.out.println("Server TOPZONE is offline Trying to Reconnect");
- + Announcement.VoteAnnouncements("TOPZONE is offline...Trying to Reconnect");
- + }
- + return votes;
- + }
- +
- + public static class CheckForRewardTop implements Runnable
- + {
- + @Override
- + public void run()
- + {
- + if (_topzone)
- + {
- + int topzone_votes = getTopZoneVotes();
- + if (topzone_votes != -1)
- + {
- + LOGGER.info("[TOPZONE] Votes: " + topzone_votes);
- + Announcement.VoteAnnouncements("[TOPZONE] Votes are " + topzone_votes + "...");
- +
- + if (topzone_votes != 0 && topzone_votes >= getTopZoneVoteCount() + Config.VOTES_FOR_REWARD_TOP)
- + {
- + rewardPlayer();
- + Announcement.VoteAnnouncements("[TOPZONE] Thanks For Voting..Players Rewarded!");
- + }
- + setTopZoneVoteCount(topzone_votes);
- + }
- + Announcement.VoteAnnouncements("[TOPZONE]Next Reward at " + (getTopZoneVoteCount() + Config.VOTES_FOR_REWARD_TOP) + " Votes!!");
- +
- + Announcement.VoteAnnouncements("[WEBSITE] " + Config.SERVER_WEB_SITE);
- + }
- + }
- + }
- +
- +}
- Index: java/net/sf/l2j/gameserver/GameServer.java
- ===================================================================
- --- java/net/sf/l2j/gameserver/GameServer.java (revision 6)
- +++ java/net/sf/l2j/gameserver/GameServer.java (working copy)
- @@ -31,6 +31,7 @@
- import net.sf.l2j.Config;
- import net.sf.l2j.L2DatabaseFactory;
- +import net.sf.l2j.gameserver.autovotereward.AutoVoteMain;
- import net.sf.l2j.gameserver.cache.CrestCache;
- import net.sf.l2j.gameserver.cache.HtmCache;
- import net.sf.l2j.gameserver.communitybbs.Manager.ForumsBBSManager;
- @@ -267,6 +268,10 @@
- StringUtil.printSection("Quests & Scripts");
- ScriptManager.getInstance();
- + StringUtil.printSection("Vote System");
- + if (Config.VOTE_SYSTEM_ENABLED)
- + AutoVoteMain.getInstance();
- +
- if (Config.ALLOW_BOAT)
- {
- BoatManager.getInstance();
- Index: config/vote.properties
- ===================================================================
- --- config/vote.properties (revision 0)
- +++ config/vote.properties (working copy)
- @@ -0,0 +1,51 @@
- +# =================================================================
- +# AutoVote Settings
- +# =================================================================
- +# Automatic Vote Reward System
- +EnableVoteRewardSystem = True
- +# =================================================================
- +# TopZone Settings
- +# =================================================================
- +# Automatic Vote Reward System
- +VotesRequiredForRewardTop = 1
- +#Delay To Announce The Site:in Minutes
- +VotesSystemInitialDelayTop = 15
- +#StepDelay To Announce Again The Site:in Minutes
- +VotesSystemStepDelayTop = 30
- +# =================================================================
- +# HopZone Settings
- +# =================================================================
- +# Automatic Vote Reward System
- +VotesRequiredForRewardHop = 1
- +#Delay To Announce The Site:in Minutes
- +VotesSystemInitialDelayHop = 20
- +#StepDelay To Announce Again The Site:in Minutes
- +VotesSystemStepDelayHop = 35
- +# =================================================================
- +# Network Settings
- +# =================================================================
- +# Automatic Vote Reward System
- +VotesRequiredForRewardNet = 1
- +#Delay To Announce The Site:in Minutes
- +VotesSystemInitialDelayNet = 25
- +#StepDelay To Announce Again The Site:in Minutes
- +VotesSystemStepDelayNet = 40
- +# =================================================================
- +# Reward Settings
- +# =================================================================
- +#AutoVote Reward ID,Count
- +AutoVoteSystemReward = 57,5
- +# =================================================================
- +# Links Settings & Protection Dual Box
- +# =================================================================
- +#Boxes Allowed To Take Reward from same ip
- +#Ofc Offline Shops Is Protected They dont Take Reward in Offline Mode
- +AutoVoteBoxesAllowed = 1
- +
- +#If You Want To Dissable Any Site Just Delete The Link After =
- +VotesSiteTopZoneLinkTop = https://l2topzone.com/tv.php?id=12609
- +VotesSiteHopZoneLinkHop = http://l2.hopzone.net/gr/lineage2/details/101262/L2Centos-X9000
- +VotesSiteNetWorkLinkNet = http://l2network.eu/details/L2Centos/
- +
- +#Announce Your Server WebSite
- +ServerWebSite = L2centos.com
- \ No newline at end of file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement