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

243 lines
7.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
import java.util.ArrayList;
import java.util.List;
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 07:34:19 +01:00
public static boolean ENABLE_CLUSTERS = false;
public static boolean FAST_CLEAR = false;
/**
* Default UUID_FECTHING: false
*/
2015-03-12 10:28:08 +01:00
public static boolean PERMISSION_CACHING = false;
public static boolean CACHE_RATINGS = true;
2014-12-30 14:17:35 +01:00
public static boolean UUID_FROM_DISK = false;
/**
* Web
*/
public static String WEB_URL = "http://empcraft.com/plots/";
public static String WEB_IP = "your.ip.here";
/**
* Ratings
*/
public static List<String> RATING_CATEGORIES = null;
/**
2015-04-01 10:25:58 +02:00
* PlotMe settings
2015-02-20 07:34:19 +01:00
*/
public static boolean CONVERT_PLOTME = true;
2015-03-31 14:14:38 +02:00
public static boolean CACHE_PLOTME = false;
public static boolean USE_PLOTME_ALIAS = false;
2015-04-09 07:41:14 +02:00
/**
* Comment system
*/
2015-05-14 12:34:08 +02:00
public static boolean COMMENT_NOTIFICATIONS = false;
/**
* Chunk processor
*/
public static boolean CHUNK_PROCESSOR = false;
public static int CHUNK_PROCESSOR_MAX_BLOCKSTATES = 4096;
public static int CHUNK_PROCESSOR_MAX_ENTITIES = 512;
2015-07-18 13:18:45 +02:00
public static boolean CHUNK_PROCESSOR_DISABLE_PHYSICS = false;
/**
2015-04-01 10:25:58 +02:00
* TNT listener
*/
public static boolean TNT_LISTENER = false;
/**
* Redstone disabler
*/
public static boolean REDSTONE_DISABLER = false;
/**
* Check for falling blocks when pistons extend?
*/
public static boolean PISTON_FALLING_BLOCK_CHECK = true;
2015-04-01 10:25:58 +02:00
/**
* Max auto claiming size
*/
2014-12-18 03:15:11 +01:00
public static int MAX_AUTO_SIZE = 4;
2014-12-04 05:00:08 +01:00
/**
* Default worldedit-require-selection-in-mask: false
*/
2014-12-18 03:15:11 +01:00
public static boolean REQUIRE_SELECTION = true;
public static boolean WE_ALLOW_HELPER = false;
2015-04-18 15:47:13 +02:00
public static long WE_MAX_VOLUME = 500000;
public static long WE_MAX_ITERATIONS = 1000;
public static List<String> WE_BLACKLIST = new ArrayList<>();
2014-11-21 23:45:46 +01:00
/**
* Default kill road mobs: true
*/
2015-01-13 04:44:55 +01:00
public final static boolean KILL_ROAD_MOBS_DEFAULT = false;
2014-11-21 23:45:46 +01:00
/**
* Default mob pathfinding: true
*/
2014-12-18 03:15:11 +01:00
public final static boolean MOB_PATHFINDING_DEFAULT = true;
/**
* Teleport to path on login
*/
2014-12-18 03:15:11 +01:00
public static boolean TELEPORT_ON_LOGIN = false;
2014-11-20 00:00:38 +01:00
/**
* Display titles
*/
2014-12-18 03:15:11 +01:00
public static boolean TITLES = true;
2014-10-28 01:57:14 +01:00
/**
* Schematic Save Path
*/
2014-12-18 03:15:11 +01:00
public static String SCHEMATIC_SAVE_PATH = "/var/www/schematics";
2014-10-28 01:57:14 +01:00
/**
* Max allowed plots
*/
2015-01-05 16:51:35 +01:00
public static int MAX_PLOTS = 127;
2014-11-05 04:42:08 +01:00
/**
* WorldGuard region on claimed plots
*/
2014-12-18 03:15:11 +01:00
public static boolean WORLDGUARD = false;
2014-11-05 04:42:08 +01:00
/**
* metrics
*/
2014-12-18 03:15:11 +01:00
public static boolean METRICS = true;
2014-11-05 04:42:08 +01:00
/**
* plot specific resource pack
*/
2014-12-18 03:15:11 +01:00
public static String PLOT_SPECIFIC_RESOURCE_PACK = "";
2014-11-05 04:42:08 +01:00
/**
* Kill road mobs?
*/
2014-12-18 03:15:11 +01:00
public static boolean KILL_ROAD_MOBS;
2014-11-05 04:42:08 +01:00
/**
* mob pathfinding?
*/
2014-12-18 03:15:11 +01:00
public static boolean MOB_PATHFINDING;
/**
* Delete plots on ban?
*/
2014-12-18 03:15:11 +01:00
public static boolean DELETE_PLOTS_ON_BAN = false;
2014-10-28 01:57:14 +01:00
/**
* Verbose?
*/
2014-12-18 03:15:11 +01:00
public static boolean DEBUG = true;
2015-01-23 02:06:11 +01:00
/**
* Have colored console messages?
*/
public static boolean CONSOLE_COLOR = true;
/**
* Fancy chat e.g. for /plot list
*/
public static boolean FANCY_CHAT = true;
2015-02-10 13:23:12 +01: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-18 03:15:11 +01:00
public static boolean AUTO_CLEAR = false;
2014-10-28 01:57:14 +01:00
/**
* Days until a plot gets cleared
*/
2015-01-23 01:14:14 +01:00
public static int AUTO_CLEAR_DAYS = 360;
public static int CLEAR_THRESHOLD = -1;
public static int CLEAR_INTERVAL = 120;
2014-10-28 01:57:14 +01:00
/**
* API Location
*/
2014-12-18 03:15:11 +01: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-18 03:15:11 +01:00
public static boolean CUSTOM_API = true;
2014-12-13 12:59:43 +01:00
/**
* Use offline mode storage
*/
2015-05-02 12:08:30 +02:00
public static boolean TWIN_MODE_UUID = false;
2014-12-18 03:15:11 +01:00
public static boolean OFFLINE_MODE = false;
public static boolean UUID_LOWERCASE = false;
/**
* Command confirmation
*/
public static boolean CONFIRM_CLEAR = true;
public static boolean CONFIRM_DELETE = true;
public static boolean CONFIRM_UNLINK = true;
/**
* Use global plot limit?
*/
public static boolean GLOBAL_LIMIT = false;
2015-02-23 02:32:27 +01:00
2014-11-05 04:42:08 +01:00
/**
* Database settings
*
* @author Citymonstret
*/
public static class DB {
2014-10-28 01:57:14 +01:00
/**
* MongoDB enabled?
*/
2015-02-20 07:34:19 +01:00
public static boolean USE_MONGO = false; /*
2015-02-23 02:32:27 +01:00
* TODO: Implement Mongo
* @Brandon
*/
2014-10-28 01:57:14 +01:00
/**
* SQLite enabled?
*/
2014-11-05 04:42:08 +01:00
public static boolean USE_SQLITE = false;
2014-10-28 01:57:14 +01:00
/**
* MySQL Enabled?
*/
2015-02-20 07:34:19 +01:00
public static boolean USE_MYSQL = true; /* NOTE: Fixed connector */
2014-10-28 01:57:14 +01:00
/**
* SQLite Database name
*/
2014-12-18 03:15:11 +01:00
public static String SQLITE_DB = "storage";
2014-10-28 01:57:14 +01:00
/**
* MySQL Host name
*/
2014-12-18 03:15:11 +01:00
public static String HOST_NAME = "localhost";
2014-10-28 01:57:14 +01:00
/**
* MySQL Port
*/
2014-12-18 03:15:11 +01:00
public static String PORT = "3306";
2014-10-28 01:57:14 +01:00
/**
* MySQL DB
*/
2014-12-18 03:15:11 +01:00
public static String DATABASE = "plot_db";
2014-10-28 01:57:14 +01:00
/**
* MySQL User
*/
2014-12-18 03:15:11 +01:00
public static String USER = "root";
2014-10-28 01:57:14 +01:00
/**
* MySQL Password
*/
2014-12-18 03:15:11 +01:00
public static String PASSWORD = "password";
2014-10-28 01:57:14 +01:00
/**
* MySQL Prefix
*/
2014-12-18 03:15:11 +01:00
public static String PREFIX = "";
2014-11-05 04:42:08 +01:00
}
}