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

182 lines
5.5 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-09-22 13:02:14 +02:00
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 {
/**
* Default UUID_FECTHING: false
*/
public static boolean UUID_FECTHING = false;
2014-12-30 14:17:35 +01:00
public static boolean UUID_FROM_DISK = false;
/**
2014-12-16 06:03:20 +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;
2014-11-21 23:45:46 +01:00
/**
* Default kill road mobs: true
*/
2014-12-18 03:15:11 +01:00
public final static boolean KILL_ROAD_MOBS_DEFAULT = true;
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
/**
* Mob Cap Enabled
*/
// public static boolean MOB_CAP_ENABLED = false;
2014-11-20 00:00:38 +01:00
/**
* The Mob Cap
*/
// public static int MOB_CAP = 20;
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
*/
2014-12-18 03:15:11 +01:00
public static int MAX_PLOTS = 20;
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-11-20 00:00:38 +01:00
2014-10-28 01:57:14 +01:00
/**
* Verbose?
*/
2014-12-18 03:15:11 +01:00
public static boolean DEBUG = true;
2014-11-20 00:00:38 +01:00
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-11-20 00:00:38 +01:00
2014-10-28 01:57:14 +01:00
/**
* Days until a plot gets cleared
*/
2014-12-18 03:15:11 +01:00
public static int AUTO_CLEAR_DAYS = 365;
2014-11-20 00:00:38 +01:00
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-11-20 00:00:38 +01:00
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-16 06:03:20 +01:00
2014-12-13 12:59:43 +01:00
/**
* Use offline mode storage
*/
2014-12-18 03:15:11 +01:00
public static boolean OFFLINE_MODE = false;
2014-12-16 06:03:20 +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?
*/
2014-12-18 03:15:11 +01:00
public static boolean USE_MONGO = false; /*
2014-11-05 04:42:08 +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?
*/
2014-12-18 03:15:11 +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
}
}