Advertisement
Guest User

Untitled

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