SETTINGS.lua 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. --[[
  2. ! WARNING !
  3. Don't change the variables names if you don't know what you're doing!
  4. (skywars_settings.variable_name = value)
  5. ]]
  6. -- The table that stores all the global variables, don't touch this.
  7. skywars_settings = {}
  8. -- ARENA LIB'S SETTINGS --
  9. -- The time between the loading state and the start of the match.
  10. skywars_settings.loading_time = 10
  11. -- The time between the end of the match and the respawn at the hub.
  12. skywars_settings.celebration_time = 5
  13. -- What's going to appear in most of the lines printed by skywars.
  14. skywars_settings.prefix = "Skywars > "
  15. -- The players walking speed when they're playing a match.
  16. skywars_settings.player_speed = 1.5
  17. -- true = on/false = off (case sensitive).
  18. skywars_settings.fall_damage_disabled = true
  19. -- The name of the permission to allow players to break nodes
  20. -- (if there's none just set it to "").
  21. skywars_settings.build_permission = "build"
  22. -- HUDS SETTINGS --
  23. -- Real coordinates:
  24. -- a unit of measurement which is roughly around 64 pixels, but
  25. -- varies based on the screen density and scaling settings of the client.
  26. -- The background width in real coordinates
  27. skywars_settings.background_width = 11
  28. -- The background height in real coordinates
  29. skywars_settings.background_height = 11
  30. -- The x position offset from the background border of the first buttons row
  31. -- in real coordinates, the bigger it is the righter the row will be placed.
  32. --[[
  33. 1.7
  34. |------|--------------------> x
  35. | |
  36. | * * * Background * * *
  37. | * | *
  38. | * | *
  39. 6.6 ---*-- Button1 Button2 * --> FIRST ROW
  40. | * Button3 Button4 *
  41. | * *
  42. | * *
  43. | * * * * * * * * * * * *
  44. |
  45. \/ y
  46. ]]
  47. skywars_settings.starting_x = 1.7
  48. -- The y position offset from the background border of the first buttons row
  49. -- in real coordinates, the bigger it is the lower the row will be placed.
  50. skywars_settings.starting_y = 6.6
  51. -- The horizontal distance between buttons in real coordinates.
  52. skywars_settings.distance_x = 3.1
  53. -- The vertical distance between buttons in real coordinates.
  54. skywars_settings.distance_y = 3
  55. -- The amount of buttons in a row.
  56. skywars_settings.buttons_per_row = 3
  57. -- The buttons width in real coordinates.
  58. skywars_settings.buttons_width = 1.8
  59. -- The buttons height in real coordinates.
  60. skywars_settings.buttons_height = 1.6
  61. -- AUTO EQUIP. SYSTEM --
  62. -- The items importances that are used by the auto equip system:
  63. -- when a player takes an item from a chest, if it has a greater
  64. -- importance and it's in the same group of the one in the hotbar,
  65. -- the latter gets replaced.
  66. skywars_settings.items_importances = {
  67. pickaxe = {
  68. ["default:pick_wood"] = 0,
  69. ["default:pick_stone"] = 1,
  70. ["default:pick_bronze"] = 2,
  71. ["default:pick_steel"] = 3,
  72. ["default:pick_diamond"] = 4,
  73. ["default:pick_mese"] = 5,
  74. },
  75. sword = {
  76. ["default:sword_wood"] = 0,
  77. ["default:sword_stone"] = 1,
  78. ["default:sword_bronze"] = 2,
  79. ["default:sword_steel"] = 3,
  80. ["default:sword_diamond"] = 4,
  81. ["default:sword_mese"] = 5,
  82. },
  83. shovel = {
  84. ["default:shovel_wood"] = 0,
  85. ["default:shovel_stone"] = 1,
  86. ["default:shovel_bronze"] = 2,
  87. ["default:shovel_steel"] = 3,
  88. ["default:shovel_diamond"] = 4,
  89. ["default:shovel_mese"] = 5,
  90. },
  91. axe = {
  92. ["default:axe_wood"] = 0,
  93. ["default:axe_stone"] = 1,
  94. ["default:axe_bronze"] = 2,
  95. ["default:axe_steel"] = 3,
  96. ["default:axe_diamond"] = 4,
  97. ["default:axe_mese"] = 5,
  98. }
  99. }
  100. -- MAP RESET SYSTEM SETTINGS --
  101. -- The amount of nodes to reset each step, the higher you set it the faster
  102. -- it will go, but it will make the server lag more.
  103. skywars_settings.nodes_per_tick = 20
  104. -- ARMOR 3D SETTINGS --
  105. skywars_settings.remove_armors_on_join = true
  106. -- The armors importances that are used by the auto equip system:
  107. -- when a player takes an armor from a chest, if it has a greater
  108. -- importance that the already equipped one, the latter gets replaced.
  109. -- If the armor name contains one of this materials then the
  110. -- corresponding importance will be associated with it.
  111. skywars_settings.armors_importances = {
  112. ["cactus"] = 0,
  113. ["wood"] = 1,
  114. ["gold"] = 2,
  115. ["bronze"] = 3,
  116. ["steel"] = 4,
  117. ["mithril"] = 5,
  118. ["diamond"] = 6
  119. }