TF-PlotSquared/PlotSquared/src/main/java/com/intellectualcrafters/plot/config/Settings.java

191 lines
6 KiB
Java
Raw Normal View History

2014-11-08 22:47:45 +01:00
////////////////////////////////////////////////////////////////////////////////////////////////////
// PlotSquared - A plot manager and world generator for the Bukkit API /
// Copyright (c) 2014 IntellectualSites/IntellectualCrafters /
// /
// 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, write to the Free Software Foundation, /
// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA /
// /
// You can contact us via: support@intellectualsites.com /
////////////////////////////////////////////////////////////////////////////////////////////////////
2014-11-16 10:48:18 +01:00
package com.intellectualcrafters.plot.config;
2014-09-22 13:02:14 +02:00
/**
* Updater and DB settings
*
2014-09-22 13:02:14 +02:00
* @author Citymonstret
* @author Empire92
*/
public class Settings {
2015-02-20 17:34:19 +11:00
public static boolean ENABLE_CLUSTERS = false;
/**
* Default UUID_FECTHING: false
*/
public static boolean UUID_FECTHING = false;
2014-12-31 00:17:35 +11:00
public static boolean UUID_FROM_DISK = false;
/**
2015-02-20 17:34:19 +11:00
*
*/
public static boolean CONVERT_PLOTME = true;
public static boolean USE_PLOTME_ALIAS = false;
/**
2014-12-16 16:03:20 +11:00
*
*/
2014-12-17 20:15:11 -06:00
public static int MAX_AUTO_SIZE = 4;
2014-12-04 15:00:08 +11:00
/**
* Default worldedit-require-selection-in-mask: false
*/
2014-12-17 20:15:11 -06:00
public static boolean REQUIRE_SELECTION = true;
2014-11-21 23:45:46 +01:00
/**
* Default kill road mobs: true
*/
2015-01-13 14:44:55 +11:00
public final static boolean KILL_ROAD_MOBS_DEFAULT = false;
2014-11-21 23:45:46 +01:00
/**
* Default mob pathfinding: true
*/
2014-12-17 20:15:11 -06:00
public final static boolean MOB_PATHFINDING_DEFAULT = true;
/**
* Teleport to path on login
*/
2014-12-17 20:15:11 -06:00
public static boolean TELEPORT_ON_LOGIN = false;
2014-11-20 00:00:38 +01:00
/**
* Mob Cap Enabled
*/
2015-02-20 17:34:19 +11:00
// public static boolean MOB_CAP_ENABLED = false;
2014-11-20 00:00:38 +01:00
/**
* The Mob Cap
*/
2015-02-20 17:34:19 +11:00
// public static int MOB_CAP = 20;
2014-11-20 00:00:38 +01:00
/**
* Display titles
*/
2014-12-17 20:15:11 -06:00
public static boolean TITLES = true;
2014-10-28 01:57:14 +01:00
/**
* Schematic Save Path
*/
2014-12-17 20:15:11 -06:00
public static String SCHEMATIC_SAVE_PATH = "/var/www/schematics";
2014-10-28 01:57:14 +01:00
/**
* Max allowed plots
*/
2015-01-06 02:51:35 +11:00
public static int MAX_PLOTS = 127;
2014-11-05 14:42:08 +11:00
/**
* WorldGuard region on claimed plots
*/
2014-12-17 20:15:11 -06:00
public static boolean WORLDGUARD = false;
2014-11-05 14:42:08 +11:00
/**
* metrics
*/
2014-12-17 20:15:11 -06:00
public static boolean METRICS = true;
2014-11-05 14:42:08 +11:00
/**
* plot specific resource pack
*/
2014-12-17 20:15:11 -06:00
public static String PLOT_SPECIFIC_RESOURCE_PACK = "";
2014-11-05 14:42:08 +11:00
/**
* Kill road mobs?
*/
2014-12-17 20:15:11 -06:00
public static boolean KILL_ROAD_MOBS;
2014-11-05 14:42:08 +11:00
/**
* mob pathfinding?
*/
2014-12-17 20:15:11 -06:00
public static boolean MOB_PATHFINDING;
/**
* Delete plots on ban?
*/
2014-12-17 20:15:11 -06:00
public static boolean DELETE_PLOTS_ON_BAN = false;
2014-10-28 01:57:14 +01:00
/**
* Verbose?
*/
2014-12-17 20:15:11 -06:00
public static boolean DEBUG = true;
2015-01-22 17:06:11 -08:00
/**
* Have colored console messages?
*/
public static boolean CONSOLE_COLOR = true;
2015-02-10 23:23:12 +11:00
/**
* The delay (in seconds) before teleportation commences
*/
public static int TELEPORT_DELAY;
2014-10-28 01:57:14 +01:00
/**
* Auto clear enabled
*/
2014-12-17 20:15:11 -06:00
public static boolean AUTO_CLEAR = false;
2014-10-28 01:57:14 +01:00
/**
* Days until a plot gets cleared
*/
2015-01-22 16:14:14 -08:00
public static int AUTO_CLEAR_DAYS = 360;
2015-02-04 16:41:23 +11:00
public static boolean AUTO_CLEAR_CHECK_DISK = false;
2015-01-10 01:05:10 +11:00
public static int MIN_BLOCKS_CHANGED = -1;
2014-10-28 01:57:14 +01:00
/**
* API Location
*/
2014-12-17 20:15:11 -06:00
public static String API_URL = "http://www.intellectualsites.com/minecraft.php";
2014-10-28 01:57:14 +01:00
/**
* Use the custom API
*/
2014-12-17 20:15:11 -06:00
public static boolean CUSTOM_API = true;
2014-12-13 22:59:43 +11:00
/**
* Use offline mode storage
*/
2014-12-17 20:15:11 -06:00
public static boolean OFFLINE_MODE = false;
2015-02-23 12:32:27 +11:00
2014-11-05 14:42:08 +11:00
/**
* Database settings
*
* @author Citymonstret
*/
public static class DB {
2014-10-28 01:57:14 +01:00
/**
* MongoDB enabled?
*/
2015-02-20 17:34:19 +11:00
public static boolean USE_MONGO = false; /*
2015-02-23 12:32:27 +11:00
* TODO: Implement Mongo
* @Brandon
*/
2014-10-28 01:57:14 +01:00
/**
* SQLite enabled?
*/
2014-11-05 14:42:08 +11:00
public static boolean USE_SQLITE = false;
2014-10-28 01:57:14 +01:00
/**
* MySQL Enabled?
*/
2015-02-20 17:34:19 +11:00
public static boolean USE_MYSQL = true; /* NOTE: Fixed connector */
2014-10-28 01:57:14 +01:00
/**
* SQLite Database name
*/
2014-12-17 20:15:11 -06:00
public static String SQLITE_DB = "storage";
2014-10-28 01:57:14 +01:00
/**
* MySQL Host name
*/
2014-12-17 20:15:11 -06:00
public static String HOST_NAME = "localhost";
2014-10-28 01:57:14 +01:00
/**
* MySQL Port
*/
2014-12-17 20:15:11 -06:00
public static String PORT = "3306";
2014-10-28 01:57:14 +01:00
/**
* MySQL DB
*/
2014-12-17 20:15:11 -06:00
public static String DATABASE = "plot_db";
2014-10-28 01:57:14 +01:00
/**
* MySQL User
*/
2014-12-17 20:15:11 -06:00
public static String USER = "root";
2014-10-28 01:57:14 +01:00
/**
* MySQL Password
*/
2014-12-17 20:15:11 -06:00
public static String PASSWORD = "password";
2014-10-28 01:57:14 +01:00
/**
* MySQL Prefix
*/
2014-12-17 20:15:11 -06:00
public static String PREFIX = "";
2014-11-05 14:42:08 +11:00
}
}