Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
375
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.61 KB | None | 0 0
  1. package com.minecolonies.api.configuration;
  2.  
  3. import com.minecolonies.api.util.constant.Constants;
  4. import net.minecraftforge.common.config.Config;
  5.  
  6. import static com.minecolonies.api.util.constant.Constants.CITIZEN_RESPAWN_INTERVAL_MAX;
  7. import static com.minecolonies.api.util.constant.Constants.CITIZEN_RESPAWN_INTERVAL_MIN;
  8.  
  9. @Config(modid = Constants.MOD_ID)
  10. public class Configurations
  11. {
  12. @Config.Comment("All configuration related to gameplay")
  13. public Gameplay play = new Gameplay();
  14.  
  15. @Config.Comment("All configurations related to pathfinding")
  16. public Pathfinding pathfinding = new Pathfinding();
  17.  
  18. @Config.Comment("All configurations related to citizen names")
  19. public Names names = new Names();
  20.  
  21. public static class Gameplay
  22. {
  23. @Config.Comment("Should builder place construction tape?")
  24. public static boolean builderPlaceConstructionTape = true;
  25.  
  26. @Config.Comment("Colony size (radius)")
  27. public static int workingRangeTownHall = 100;
  28.  
  29. @Config.Comment("Padding between colonies")
  30. public static int townHallPadding = 20;
  31.  
  32. @Config.Comment("Should supply chests be craftable on this server?")
  33. public static boolean supplyChests = true;
  34.  
  35. @Config.Comment("Should players be able to place an infinite amount of supplychests?")
  36. public static boolean allowInfiniteSupplyChests = false;
  37.  
  38. @Config.RangeInt(min = (CITIZEN_RESPAWN_INTERVAL_MIN), max = CITIZEN_RESPAWN_INTERVAL_MAX)
  39. @Config.Comment("Average citizen respawn interval (in ticks)")
  40. public static int citizenRespawnInterval = 240;
  41.  
  42. @Config.Comment("Should builder and miner build without resources? (this also turns off what they produce)")
  43. public static boolean builderInfiniteResources = false;
  44.  
  45. @Config.Comment("Should there be at max 1 warehouse per colony?")
  46. public static boolean limitToOneWareHousePerColony = true;
  47.  
  48. @Config.Comment("Delay after each block placement (Increasing it, increases the delay)")
  49. public static int builderBuildBlockDelay = 15;
  50.  
  51. @Config.Comment("Delay modifier to mine a block (Decreasing it, decreases the delay)")
  52. public static int blockMiningDelayModifier = 500;
  53.  
  54. @Config.Comment("Should worker work during the rain?")
  55. public static boolean workersAlwaysWorkInRain = false;
  56.  
  57. @Config.Comment("Should the colony protection be enabled?")
  58. public static boolean enableColonyProtection = true;
  59.  
  60. @Config.Comment("Independend from the colony protection, should explosions be turned off?")
  61. public static boolean turnOffExplosionsInColonies = true;
  62.  
  63. /* schematics usage */
  64. @Config.Comment("Should the default schematics be ignored (from the jar)?")
  65. public static boolean ignoreSchematicsFromJar = false;
  66.  
  67. @Config.Comment("Should player made schematics be allowed")
  68. public static boolean allowPlayerSchematics = false;
  69.  
  70. @Config.Comment("Max amount of schematics to be cached on the server")
  71. public static int maxCachedSchematics = 100;
  72.  
  73. /* Command configs */
  74.  
  75. @Config.Comment("Time until a next teleport can be executed (in seconds)")
  76. public static int teleportBuffer = 120;
  77.  
  78. @Config.Comment("Which level counts as op level on the server")
  79. public static int opLevelForServer = 3;
  80.  
  81. @Config.Comment("Should the player be allowed to use the '/mc rtp' command?")
  82. public static boolean canPlayerUseRTPCommand = true;
  83.  
  84. @Config.Comment("Should the player be allowed to use the '/mc colony teleport' command?")
  85. public static boolean canPlayerUseColonyTPCommand = false;
  86.  
  87. @Config.Comment("Should the player be allowed to use the '/mc home' command?")
  88. public static boolean canPlayerUseHomeTPCommand = true;
  89.  
  90. @Config.Comment("Should the player be allowed to use the '/mc citizens info' command?")
  91. public static boolean canPlayerUseCitizenInfoCommand = true;
  92.  
  93. @Config.Comment("Should the player be allowed to use the '/mc citizens list' command?")
  94. public static boolean canPlayerUseListCitizensCommand = true;
  95.  
  96. @Config.Comment("Should the player be allowed to use the '/mc citizens respawn' command?")
  97. public static boolean canPlayerRespawnCitizensCommand = true;
  98.  
  99. @Config.Comment("Should the player be allowed to use the '/mc colony info' command?")
  100. public static boolean canPlayerUseShowColonyInfoCommand = true;
  101.  
  102. @Config.Comment("Should the player be allowed to use the '/mc citizens kill' command?")
  103. public static boolean canPlayerUseKillCitizensCommand = true;
  104.  
  105. @Config.Comment("Should the player be allowed to use the '/mc colony addOfficer' command?")
  106. public static boolean canPlayerUseAddOfficerCommand = true;
  107.  
  108. @Config.Comment("Should the player be allowed to use the '/mc colony delete' command?")
  109. public static boolean canPlayerUseDeleteColonyCommand = true;
  110.  
  111. @Config.Comment("Should the player be allowed to use the '/mc colony refresh' command?")
  112. public static boolean canPlayerUseRefreshColonyCommand = false;
  113.  
  114. @Config.Comment("Should the player be allowed to use the '/mc backup' command?")
  115. public static boolean canPlayerUseBackupCommand = false;
  116.  
  117. /* Colony TP configs */
  118. @Config.Comment("Amount of attemps to find a save rtp")
  119. public static int numberOfAttemptsForSafeTP = 4;
  120.  
  121. @Config.Comment("Max distance from world spawn")
  122. public static int maxDistanceFromWorldSpawn = 8000;
  123.  
  124. @Config.Comment("Min distance from world spawn")
  125. public static int minDistanceFromWorldSpawn = 512;
  126.  
  127. @Config.Comment("Should the dman create resources out of hot air (Not implemented)")
  128. public static boolean deliverymanInfiniteResources = false;
  129.  
  130. @Config.Comment("Amount of initial citizens")
  131. public static int maxCitizens = 4;
  132.  
  133. @Config.Comment("Should citizen name tags be rendered?")
  134. public static boolean alwaysRenderNameTag = true;
  135.  
  136. @Config.Comment("Amount of blocks the builder checks (to decrease lag by builder)")
  137. public static int maxBlocksCheckedByBuilder = 1000;
  138.  
  139. @Config.Comment("Chat frequency of worker requests")
  140. public static int chatFrequency = 30;
  141.  
  142. @Config.Comment("Should in development features be enabled (might be buggy)")
  143. public static boolean enableInDevelopmentFeatures = false;
  144.  
  145. @Config.Comment("Blocks players should be able to interact with in any colony (Ex vending machines)")
  146. public static String[] freeToInteractBlocks = new String[]
  147. {
  148. "block:dirt",
  149. "0 0 0"
  150. };
  151. }
  152.  
  153. public static class Pathfinding
  154. {
  155. @Config.Comment("Draw pathfinding paths (might be laggy)")
  156. public static boolean pathfindingDebugDraw = false;
  157.  
  158. @Config.Comment("Verbosity of pathfinding")
  159. public static int pathfindingDebugVerbosity = 0;
  160.  
  161. @Config.Comment("Amount of additional threads to be used for pathfinding")
  162. public static int pathfindingMaxThreadCount = 2;
  163. }
  164.  
  165. public static class Names
  166. {
  167. @Config.Comment("Male first names to be used for colonists")
  168. public static String[] maleFirstNames = new String[]
  169. {
  170. "Aaron",
  171. "Adam",
  172. "Adrian",
  173. "Aidan",
  174. "Aiden",
  175. "Alain",
  176. "Alex",
  177. "Alexander",
  178. "Andrew",
  179. "Anthony",
  180. "Asher",
  181. "Austin",
  182. "Benjamin",
  183. "Brayden",
  184. "Bryson",
  185. "Caden",
  186. "Caleb",
  187. "Callum",
  188. "Camden",
  189. "Cameron",
  190. "Carson",
  191. "Carter",
  192. "Charles",
  193. "Charlie",
  194. "Chase",
  195. "Christian",
  196. "Christopher",
  197. "Cole",
  198. "Colton",
  199. "Connor",
  200. "Cooper",
  201. "Curtis",
  202. "Cyrille",
  203. "Damian",
  204. "Daniel",
  205. "David",
  206. "Declan",
  207. "Diego",
  208. "Diogo",
  209. "Dominic",
  210. "Duarte",
  211. "Dylan",
  212. "Easton",
  213. "Eli",
  214. "Elias",
  215. "Elijah",
  216. "Elliot",
  217. "Ethan",
  218. "Evan",
  219. "Ezra",
  220. "Félix",
  221. "Gabriel",
  222. "Gavin",
  223. "George",
  224. "Grayson",
  225. "Guewen",
  226. "Harrison",
  227. "Henrik",
  228. "Henry",
  229. "Houston",
  230. "Hudson",
  231. "Hugo",
  232. "Hunter",
  233. "Ian",
  234. "Isaac",
  235. "Isaiah",
  236. "Jack",
  237. "Jackson",
  238. "Jacob",
  239. "James",
  240. "Jason",
  241. "Jayce",
  242. "Jayden",
  243. "Jeremiah",
  244. "Jim",
  245. "Joel",
  246. "John",
  247. "Jonathan",
  248. "Jordan",
  249. "Joseph",
  250. "Joshua",
  251. "Josiah",
  252. "Julian",
  253. "Kai",
  254. "Karsen",
  255. "Kevin",
  256. "Kian",
  257. "Landon",
  258. "Leo",
  259. "Levi",
  260. "Liam",
  261. "Lincoln",
  262. "Logan",
  263. "Luís",
  264. "Lucas",
  265. "Luke",
  266. "Mark",
  267. "Mason",
  268. "Mateo",
  269. "Matthew",
  270. "Max",
  271. "Michael",
  272. "Miles",
  273. "Muhammad",
  274. "Nathan",
  275. "Nathanael",
  276. "Nicholas",
  277. "Noah",
  278. "Nolan",
  279. "Oliver",
  280. "Oscar",
  281. "Owen",
  282. "Parker",
  283. "Paul",
  284. "Peter",
  285. "Philibert",
  286. "Rénald",
  287. "Ray",
  288. "Richard",
  289. "Robert",
  290. "Rory",
  291. "Roxan",
  292. "Ryan",
  293. "Samuel",
  294. "Sebastian",
  295. "Steven",
  296. "Thaddee",
  297. "Thomas",
  298. "Tiago",
  299. "Tristan",
  300. "Tyler",
  301. "William",
  302. "Wyatt",
  303. "Xavier",
  304. "Zachary",
  305. "Zane",
  306. "Abraham",
  307. "Allen",
  308. "Ambrose",
  309. "Arthur",
  310. "Avery",
  311. "Barnaby",
  312. "Bartholomew",
  313. "Benedict",
  314. "Bernard",
  315. "Cuthbert",
  316. "Edmund",
  317. "Edward",
  318. "Francis",
  319. "Fulke",
  320. "Geoffrey",
  321. "Gerard",
  322. "Gilbert",
  323. "Giles",
  324. "Gregory",
  325. "Hugh",
  326. "Humphrey",
  327. "Jerome",
  328. "Lancelot",
  329. "Lawrence",
  330. "Leonard",
  331. "Martin",
  332. "Mathias",
  333. "Nathaniel",
  334. "Oswyn",
  335. "Philip",
  336. "Piers",
  337. "Ralph",
  338. "Reynold",
  339. "Roger",
  340. "Rowland",
  341. "Simon",
  342. "Solomon",
  343. "Stephen",
  344. "Tobias",
  345. "Walter",
  346. "William"
  347. };
  348.  
  349. @Config.Comment("Female first names to be used for colonists")
  350. public static String[] femaleFirstNames = new String[]
  351. {
  352. "Aaliyah",
  353. "Abigail",
  354. "Adalyn",
  355. "Addison",
  356. "Adeline",
  357. "Alaina",
  358. "Alexandra",
  359. "Alice",
  360. "Allison",
  361. "Alyssa",
  362. "Amelia",
  363. "Anastasia",
  364. "Anna",
  365. "Annabelle",
  366. "Aria",
  367. "Arianna",
  368. "Aubrey",
  369. "Audrey",
  370. "Aurora",
  371. "Ava",
  372. "Bailey",
  373. "Barbara",
  374. "Bella",
  375. "Betty",
  376. "Brooklyn",
  377. "Callie",
  378. "Camilla",
  379. "Caroline",
  380. "Charlotte",
  381. "Chloe",
  382. "Claire",
  383. "Cora",
  384. "Daniela",
  385. "Diana",
  386. "Dorothy",
  387. "Eleanor",
  388. "Elena",
  389. "Eliana",
  390. "Elizabeth",
  391. "Ella",
  392. "Ellie",
  393. "Emilia",
  394. "Emilienne",
  395. "Emily",
  396. "Emma",
  397. "Eva",
  398. "Evelyn",
  399. "Everly",
  400. "Filipa",
  401. "Frédérique",
  402. "Gabriella",
  403. "Gianna",
  404. "Grace",
  405. "Hailey",
  406. "Hannah",
  407. "Harper",
  408. "Haylie",
  409. "Hazel",
  410. "Helen",
  411. "Isabella",
  412. "Isabelle",
  413. "Jade",
  414. "Jasmine",
  415. "Jennifer",
  416. "Jocelyn",
  417. "Jordyn",
  418. "Julia",
  419. "Juliana",
  420. "Julienne",
  421. "Karen",
  422. "Katia",
  423. "Kaylee",
  424. "Keira",
  425. "Kennedy",
  426. "Kinsley",
  427. "Kylie",
  428. "Layla",
  429. "Leah",
  430. "Lena",
  431. "Lila",
  432. "Liliana",
  433. "Lillian",
  434. "Lily",
  435. "Linda",
  436. "Lisa",
  437. "London",
  438. "Lorena",
  439. "Luana",
  440. "Lucy",
  441. "Luna",
  442. "Mélanie",
  443. "Mackenzie",
  444. "Madelyn",
  445. "Madison",
  446. "Maisy",
  447. "Makayla",
  448. "Margaret",
  449. "Maria",
  450. "Marine",
  451. "Mary",
  452. "Maya",
  453. "Melanie",
  454. "Mia",
  455. "Mila",
  456. "Nancy",
  457. "Natalie",
  458. "Natasha",
  459. "Niamh",
  460. "Nora",
  461. "Odile",
  462. "Olivia",
  463. "Paisley",
  464. "Paloma",
  465. "Paola",
  466. "Patricia",
  467. "Penelope",
  468. "Peyton",
  469. "Prudence",
  470. "Reagan",
  471. "Riley",
  472. "Sadie",
  473. "Samantha",
  474. "Sarah",
  475. "Savannah",
  476. "Scarlett",
  477. "Skyler",
  478. "Sophia",
  479. "Sophie",
  480. "Stella",
  481. "Susan",
  482. "Vérane",
  483. "Vera",
  484. "Victoria",
  485. "Violet",
  486. "Vivian",
  487. "Zoe",
  488. "Agnes",
  489. "Amy",
  490. "Anne",
  491. "Avis",
  492. "Beatrice",
  493. "Blanche",
  494. "Bridget",
  495. "Catherine",
  496. "Cecily",
  497. "Charity",
  498. "Christina",
  499. "Clemence",
  500. "Constance",
  501. "Denise",
  502. "Edith",
  503. "Elinor",
  504. "Ellen",
  505. "Florence",
  506. "Fortune",
  507. "Frances",
  508. "Frideswide",
  509. "Gillian",
  510. "Isabel",
  511. "Jane",
  512. "Janet",
  513. "Joan",
  514. "Josian",
  515. "Joyce",
  516. "Judith",
  517. "Katherine",
  518. "Lettice",
  519. "Mabel",
  520. "Margery",
  521. "Marion",
  522. "Martha",
  523. "Maud",
  524. "Mildred",
  525. "Millicent",
  526. "Parnell",
  527. "Philippa",
  528. "Rachel",
  529. "Rebecca",
  530. "Rose",
  531. "Ruth",
  532. "Susanna",
  533. "Sybil",
  534. "Thomasin",
  535. "Ursula",
  536. "Wilmot",
  537. "Winifred"
  538. };
  539.  
  540. @Config.Comment("Last names to be used for colonists")
  541. public static String[] lastNames = new String[]
  542. {
  543. "Brown",
  544. "Clark",
  545. "Fletcher",
  546. "Harris",
  547. "Johnson",
  548. "Jones",
  549. "Mardle",
  550. "Miller",
  551. "Robinson",
  552. "Smith",
  553. "Taylor",
  554. "Wallgreen",
  555. "White",
  556. "Williams",
  557. "Wilson",
  558. "Abell",
  559. "Ackworth",
  560. "Adams",
  561. "Addicock",
  562. "Alban",
  563. "Aldebourne",
  564. "Alfray",
  565. "Alicock",
  566. "Allard",
  567. "Allington",
  568. "Amberden",
  569. "Amcotts",
  570. "Amondsham",
  571. "Andrews",
  572. "Annesley",
  573. "Ansty",
  574. "Archer",
  575. "Ardall",
  576. "Ardern",
  577. "Argentein",
  578. "Arnold",
  579. "Asger",
  580. "Ashby",
  581. "Ashcombe",
  582. "Ashenhurst",
  583. "Ashton",
  584. "Askew",
  585. "Asplin",
  586. "Astley",
  587. "Atherton",
  588. "Atkinson",
  589. "Atlee",
  590. "Attilburgh",
  591. "Audeley",
  592. "Audlington",
  593. "Ayde",
  594. "Ayleward",
  595. "Aylmer",
  596. "Aynesworth",
  597. "Babham",
  598. "Babington",
  599. "Badby",
  600. "Baker",
  601. "Balam",
  602. "Baldwin",
  603. "Ballard",
  604. "Ballett",
  605. "Bammard",
  606. "Barber",
  607. "Bardolf",
  608. "Barefoot",
  609. "Barker",
  610. "Barnes",
  611. "Barre",
  612. "Barrentine",
  613. "Barrett",
  614. "Barstaple",
  615. "Bartelot",
  616. "Barton",
  617. "Basset",
  618. "Bathurst",
  619. "Battersby",
  620. "Battle",
  621. "Baynton",
  622. "Beauchamp",
  623. "Cheddar",
  624. "Chelsey",
  625. "Chernock",
  626. "Chester",
  627. "Chetwood",
  628. "Cheverell",
  629. "Cheyne",
  630. "Chichester",
  631. "Child",
  632. "Chilton",
  633. "Chowne",
  634. "Chudderley",
  635. "Church",
  636. "Churmond",
  637. "Clavell",
  638. "Claybrook",
  639. "Clement",
  640. "Clerk",
  641. "Clifford",
  642. "Clifton",
  643. "Clitherow",
  644. "Clopton",
  645. "Cobb",
  646. "Cobham",
  647. "Cobley",
  648. "Cockayne",
  649. "Cod",
  650. "Coddington",
  651. "Coffin",
  652. "Coggshall",
  653. "Colby",
  654. "Colkins",
  655. "Collard",
  656. "Colmer",
  657. "Colt",
  658. "Colthurst",
  659. "Complin",
  660. "Compton",
  661. "Conquest",
  662. "Cooke",
  663. "Coorthopp",
  664. "Coppinger",
  665. "Corbett",
  666. "Corby",
  667. "Cossington",
  668. "Cosworth",
  669. "Cotton",
  670. "Courtenay",
  671. "Covert",
  672. "Cowill",
  673. "Cox",
  674. "Crane",
  675. "Cranford",
  676. "Crawley",
  677. "Cressy",
  678. "Crickett",
  679. "Cripps",
  680. "Crisp",
  681. "Cristemas",
  682. "Crocker",
  683. "Crugg",
  684. "Cuddon",
  685. "Culpepper",
  686. "Cunningham",
  687. "Curzon",
  688. "Dagworth",
  689. "Gardiner",
  690. "Gare",
  691. "Garnis",
  692. "Garrard",
  693. "Garret",
  694. "Gascoigne",
  695. "Gasper",
  696. "Gavell",
  697. "Gedding",
  698. "Gerville",
  699. "Geste",
  700. "Gibbs",
  701. "Gifford",
  702. "Gill",
  703. "Ginter",
  704. "Gisborne",
  705. "Gittens",
  706. "Glennon",
  707. "Glover",
  708. "Gobberd",
  709. "Goddam",
  710. "Godfrey",
  711. "Gold",
  712. "Golding",
  713. "Goldwell",
  714. "Gomershall",
  715. "Gomfrey",
  716. "Gonson",
  717. "Good",
  718. "Goodenouth",
  719. "Gooder",
  720. "Goodluck",
  721. "Goodnestone",
  722. "Goodrick",
  723. "Goodrington",
  724. "Goodwin",
  725. "Goring",
  726. "Gorney",
  727. "Gorst",
  728. "Gosebourne",
  729. "Grafton",
  730. "Gray",
  731. "Greene",
  732. "Greenway",
  733. "Grenefeld",
  734. "Greville",
  735. "Grey",
  736. "Grimbald",
  737. "Grobbam",
  738. "Grofhurst",
  739. "Groston",
  740. "Grove",
  741. "Guildford",
  742. "Hackman",
  743. "Haddock",
  744. "Haddon",
  745. "Hadresham",
  746. "Hakebourne",
  747. "Hale",
  748. "Hall",
  749. "Halley",
  750. "Hambard",
  751. "Hammer",
  752. "Hammond",
  753. "Hampden"
  754. };
  755. }
  756. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement