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
|
|
|
|
2015-05-02 15:58:52 +02:00
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.List;
|
|
|
|
|
2014-09-22 13:02:14 +02:00
|
|
|
/**
|
|
|
|
* Updater and DB settings
|
2014-10-11 09:33:10 +02:00
|
|
|
*
|
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;
|
2015-03-17 09:32:21 +01:00
|
|
|
public static boolean FAST_CLEAR = false;
|
2014-12-22 16:12:40 +01:00
|
|
|
/**
|
|
|
|
* Default UUID_FECTHING: false
|
|
|
|
*/
|
2015-03-12 10:28:08 +01:00
|
|
|
public static boolean PERMISSION_CACHING = false;
|
2015-06-28 02:54:57 +02:00
|
|
|
public static boolean CACHE_RATINGS = true;
|
2014-12-30 14:17:35 +01:00
|
|
|
public static boolean UUID_FROM_DISK = false;
|
2015-07-10 16:08:07 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Web
|
|
|
|
*/
|
|
|
|
public static String WEB_URL = "http://empcraft.com/plots/";
|
|
|
|
public static String WEB_IP = "your.ip.here";
|
|
|
|
|
2015-07-03 04:11:41 +02:00
|
|
|
/**
|
|
|
|
* Ratings
|
|
|
|
*/
|
|
|
|
public static List<String> RATING_CATEGORIES = null;
|
2015-01-10 02:52:48 +01:00
|
|
|
/**
|
2015-04-01 10:25:58 +02:00
|
|
|
* PlotMe settings
|
2015-02-20 07:34:19 +01:00
|
|
|
*/
|
2015-01-10 03:19:39 +01:00
|
|
|
public static boolean CONVERT_PLOTME = true;
|
2015-03-31 14:14:38 +02:00
|
|
|
public static boolean CACHE_PLOTME = false;
|
2015-01-10 03:19:39 +01:00
|
|
|
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;
|
2015-04-07 14:17:04 +02:00
|
|
|
/**
|
|
|
|
* 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;
|
2014-12-15 02:04:13 +01:00
|
|
|
/**
|
2015-04-01 10:25:58 +02:00
|
|
|
* TNT listener
|
|
|
|
*/
|
|
|
|
public static boolean TNT_LISTENER = false;
|
2015-06-23 23:44:44 +02:00
|
|
|
/**
|
|
|
|
* Redstone disabler
|
|
|
|
*/
|
|
|
|
public static boolean REDSTONE_DISABLER = false;
|
2015-04-15 07:24:54 +02:00
|
|
|
/**
|
|
|
|
* 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-15 02:04:13 +01:00
|
|
|
*/
|
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;
|
2015-06-11 09:12:39 +02:00
|
|
|
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;
|
2015-05-02 15:58:52 +02:00
|
|
|
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;
|
2014-11-20 19:29:05 +01:00
|
|
|
/**
|
|
|
|
* 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;
|
2014-10-21 18:53:52 +02:00
|
|
|
/**
|
|
|
|
* 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;
|
2015-06-24 05:31:13 +02:00
|
|
|
/**
|
|
|
|
* 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;
|
2015-07-18 07:02:44 +02:00
|
|
|
public static int CLEAR_THRESHOLD = -1;
|
2015-05-15 05:29:23 +02:00
|
|
|
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;
|
2015-07-19 15:12:48 +02:00
|
|
|
public static boolean UUID_LOWERCASE = true;
|
2015-03-07 06:22:15 +01:00
|
|
|
/**
|
|
|
|
* Command confirmation
|
|
|
|
*/
|
|
|
|
public static boolean CONFIRM_CLEAR = true;
|
|
|
|
public static boolean CONFIRM_DELETE = true;
|
|
|
|
public static boolean CONFIRM_UNLINK = true;
|
2015-04-14 15:47:12 +02:00
|
|
|
/**
|
|
|
|
* 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
|
|
|
}
|
2014-09-24 14:21:43 +02:00
|
|
|
}
|