Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * 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.protection;
- import net.sf.l2j.commons.config.Config;
- import net.sf.l2j.commons.config.ExProperties;
- public final class ProtectionProperties
- {
- public static int SERVER_KEY;
- public static boolean ENABLED;
- public static int MAX_SESSIONS;
- public static int MAX_PREMIUM_SESSIONS;
- public static String LOG_OPTION;
- public static boolean ANNOUNCE_HACK;
- public static String ON_HACK_ATTEMP;
- public static boolean ALLOW_GM_FROM_BANNED_HWID;
- public static boolean LOG_SESSIONS;
- public static void init()
- {
- ExProperties protectStt = Config.load(Config.GUARD_FILE);
- ENABLED = protectStt.getProperty("Enabled", false);
- SERVER_KEY = protectStt.getProperty("ServerKey", 7958915);
- LOG_OPTION = protectStt.getProperty("LogOption", "NOSPS HACK");
- MAX_SESSIONS = protectStt.getProperty("MaxSessionsFromHWID", -1);
- MAX_PREMIUM_SESSIONS = protectStt.getProperty("MaxSessionsForPremium", -1);
- ANNOUNCE_HACK = protectStt.getProperty("AnnounceHackAttempt", true);
- ON_HACK_ATTEMP = protectStt.getProperty("OnHackAttempt", "kick");
- ALLOW_GM_FROM_BANNED_HWID = protectStt.getProperty("AllowGMFromBannedHWID", false);
- LOG_SESSIONS = protectStt.getProperty("LogSessions", false);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement