Advertisement
norskaaa

LifestealCore / Default Config

Apr 10th, 2022 (edited)
6,351
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 11.08 KB | None | 0 0
  1. #########################################################################################
  2. #                                                                                       #
  3. # LifestealCore, a premium resource by Norska @ https://norska.dev                      #
  4. #                                                                                       #
  5. # Wiki: https://norska.dev/docs/welcome                                                 #
  6. # Support: https://norska.dev/discord/                                                  #
  7. #                                                                                       #
  8. # You are editing the config.yml file of LifestealCore.                                 #
  9. #                                                                                       #
  10. #########################################################################################
  11.  
  12. #########################################################################################
  13. #                                                                                       #
  14. # NOTE: PLEASE READ BEFORE CONFIGURING!                                                 #
  15. #                                                                                       #
  16. # Please consult the wiki for any questions regarding the setup of this plugin, if you  #
  17. # still require help, open a ticket on my discord server!                               #
  18. #                                                                                       #
  19. #########################################################################################
  20.  
  21. ##################################
  22. #                                #
  23. #           SETTINGS             #
  24. #                                #
  25. ##################################  
  26.  
  27. settings:
  28.  
  29.    hearts:
  30.  
  31.       drops:
  32.         # Note: If true, hearts will drop as items and not get directly applied to the killer if all criteria are met.
  33.          asItem: true
  34.          
  35.          # Note: If true, the player will lose hearts when killed by mobs (further down you can set mob-specific heart loss).
  36.          ifKilledByMob: false
  37.          
  38.          # Note: If true, the player will lose hearts when killed by other causes e.g DROWNING, FALL, etc. (further down you can set cause-specific heart loss).
  39.          ifKilledByOther: false
  40.          
  41.          # Note: APPLICABLE FOR MOB OR OTHER DEATHS! Will drop the same amount of hearts lose. If set at false, will only drop 1 heart.
  42.          respectAmount: false
  43.          
  44.          # Note: APPLICABLE FOR MOB OR OTHER DEATHS! Which heart tier to drop if ifKilledByMob or ifKilledByOther is set to true, set to "NONE" to disable heart drops (items) when dying to mobs or other causes.
  45.          mobAndOtherHeart: "HEART_TIER1"
  46.          
  47.          # Note: WILL NOT WORK CORRECTLY IF "asItem" option is enabled. SET TO 0 TO DISABLE.
  48.          # Example -> If set to 20, players that have 20 or more hearts will not be able to use heart items to gain more, they can only gain more by killing players.
  49.          redeemThreshold: 0
  50.  
  51.       # Note: Hearts players will have when first joining the server.
  52.       starter: 10
  53.       # Note: Hearts players will have after getting unbanned.
  54.       unban: 5
  55.       # Note: Maximum amount of hearts a player can accumulate.
  56.       maximum: 100
  57.      
  58.       # Note: Configure various parameters for heart loss.
  59.       heartLoss:
  60.        
  61.          # Note: Whether or not getting killed by mobs will result in heart loss.
  62.          mobsEnabled: true
  63.          # Note: Configure specific mobs to be more punishing (take more hearts). Google for "<Server Version> EntityType Enum". If a mob isn't defined, 1 heart will be lost.
  64.          mobs:
  65.             ENDERMAN:
  66.                hearts: 2
  67.                
  68.             BLAZE:
  69.                hearts: 2  
  70.          
  71.          # Note: Whether or not getting killed by other causes will result in heart loss.
  72.          causesEnabled: true
  73.          # Note: Configure specific death causes to be more punishing (take more hearts). Google for "<Server version> DamageCause Enum". If a cause isn't defined, 1 heart will be lost.
  74.          causes:    
  75.             DROWNING:
  76.                hearts: 2      
  77.      
  78.          # Note: Configure permission-based heart loss. Makes sense to use only if the default heart loss is more than 1 heart.    
  79.          # WARNING: THESE WILL ONLY WORK IF MOB OR CAUSE-SPECIFIC DEATHS ARE NOT SET.
  80.          permission:
  81.             default: 1
  82.            
  83.             permSpecific:
  84.                vip:
  85.                   permission: "lifesteal.vip.heartloss"
  86.                   value: 3    
  87.                vipplus:
  88.                   permission: "lifesteal.vipplus.heartloss"
  89.                   value: 2      
  90.                mvp:
  91.                   permission: "lifesteal.mvp.heartloss"
  92.                   value: 1    
  93.          
  94.                  
  95.          worldSettings:
  96.            
  97.             # Note: Define worlds in which heart loss is disabled. Set list to [] to disable.
  98.             disabledWorlds:
  99.                list:
  100.               - 'world_the_end'                
  101.            
  102.             # Note: Define worlds in which dying means instant elimination. Set list to [] to disable.
  103.             instantEliminationWorlds:
  104.                list: []
  105.            
  106.    beacons:
  107.       enabled: true
  108.       # Note: Command to bind beacon items to players (for resurrection).
  109.       # Note: Changes to the command require a server restart.
  110.       bindCommand: "bind"
  111.       # Note: Whether or not the player will be spawned at the location of the beacon when logging back in after being revived.
  112.       respawnAtBeacon: true
  113.       # Note: Define commands to run for the player when they join after being unbanned. Placeholders: {PLAYER}
  114.       respawnCommands:
  115.       - 'broadcast {PLAYER} has risen from the dead once again!'
  116.  
  117.    bans:
  118.      # Note: Whether or not eliminations (reach 0 hearts) results in getting temporarily banned.
  119.       enabled: true
  120.       # Note: If bans are set to false, define the minimum amount of hearts the player can reach.
  121.       minimumHearts: 5
  122.       # Note: Ban time for when a permission is not found.
  123.       defaultBanTime: 172800  
  124.       # Placeholders: {TIME} = ban time      
  125.       kickMessage:
  126.      - ''
  127.       - '<GRADIENT:FF1F00>LifestealCore</GRADIENT:FF06B9>'
  128.       - ''
  129.       - '&fYou have been eliminated! &4❌'
  130.       - '&7Banned from the server for &c{TIME}&7!'
  131.       - ''
  132.      
  133.       # Placeholders: {TIME} = remaining time    
  134.       joinWhileBannedMessage:
  135.      - ''
  136.       - '<GRADIENT:FF1F00>LifestealCore</GRADIENT:FF06B9>'
  137.       - ''
  138.       - '&fYou have been eliminated! &4❌'
  139.       - '&7Your ban will expire in &c{TIME}&7!'
  140.       - ''
  141.       bantimes:
  142.          rank1:
  143.             permission: "lifesteal.time.vip"
  144.             # Note: 48h -> 172800 seconds
  145.             value: 172800
  146.          rank2:
  147.             permission: "lifesteal.time.vipplus"
  148.             # Note: 44h -> 158400 seconds
  149.             value: 158400
  150.            
  151.    customBans:
  152.       # Note: Set to true to override default behavior and execute custom commands upon player elimination.
  153.        enabled: false
  154.        # Note: Define what commands are being executed upon player elimination: Placeholders: {PLAYER}
  155.        commands:
  156.        - 'ban {PLAYER} 48h You have been eliminated.'
  157.      
  158.    recipes:
  159.      # Note: Only applicable on 1.9+ servers. Whether or not players will automatically discover recipes for items in items.yml.
  160.       autoDiscovery: true
  161.    
  162. ##################################
  163. #                                #
  164. #        HOLOGRAM SETTINGS       #
  165. #                                #
  166. ##################################
  167.    
  168. holograms:
  169.   # Note: Select from "DecentHolograms".
  170.    handler: "DecentHolograms"    
  171.  
  172. ##################################
  173. #                                #
  174. #         ANTI EXPLOITS          #
  175. #                                #
  176. ##################################
  177.  
  178. antiexploits:
  179.    # Note: Do not directly apply or drop hearts if the victim has the same IP as the killer (heart farming with alts).  
  180.    preventIfOnSameIP: true
  181.    
  182.    # Note: Do not drop hearts if a player kills the same person within x seconds defined here. Set to 0 to disable.
  183.    samePlayerCooldown: 120
  184.    
  185. ##################################
  186. #                                #
  187. #        PLAYER COMMANDS         #
  188. #                                #
  189. ##################################
  190.  
  191. playerCommands:
  192.    enabled: true
  193.    
  194.    # Note: Changes to the command require a server restart.
  195.    command: "LIFESTEAL"
  196.    
  197.    commands:
  198.  
  199.       # Note: Another way to revive players. Players can use this command and sacrifice x of their hearts in order to revive someone.
  200.       reviveCommand:
  201.          enabled: false
  202.          settings:
  203.             requiredHearts: 10
  204.             cooldown: 86400
  205.            
  206.       # Note: Command for players to check stats of other players (banned, bantime, hearts).
  207.       checkCommand:
  208.          enabled: true
  209.          
  210. ##################################
  211. #                                #
  212. #            LOGGER              #
  213. #                                #
  214. ##################################
  215.  
  216. # Note: Whether or not to log events to a txt file.
  217. logger:
  218.    enabled: true
  219.    formats:
  220.      # Note: Name of the files that generate in LifestealCore/logs.
  221.       file: "dd.MM.yyyy"
  222.       # Note: Start of the log entry inside each log file.
  223.       entry: "dd.MM.yyyy @ HH:mm:ss"
  224.    types:
  225.       adminAdd: true
  226.       adminEliminate: true
  227.       adminGiveItem: true
  228.       adminRemove: true
  229.       adminRevive: true
  230.       adminSet: true
  231.       adminSetMax: true
  232.       adminAddMax: true
  233.       adminRemMax: true
  234.       adminToggleRevives: true
  235.       playerCommandRevive: true
  236.       beaconDamage: true
  237.       beaconConsume: true
  238.       deaths: true
  239.       heartConsume: true
  240.       effectHeartConsume: true    
  241.       eliminations: true
  242.    
  243. ##################################
  244. #                                #
  245. #    VALUE DISPLAY SETTINGS      #
  246. #                                #
  247. ##################################
  248.  
  249. unboundBeacon: "&7Not bound to any player. (Use &f/bind&7)"    
  250.  
  251. # Note: Configure how the interval shows up.
  252. format:
  253.    seconds: 's'
  254.    second: 's'
  255.    minutes: 'm '
  256.    minute: 'm '
  257.    hours: 'h '
  258.    hour: 'h '
  259.    days: 'D '
  260.    day: 'D '
  261.    splitter: 'and '    
  262.  
  263. # Note: Define custom override for general cause death reasons.
  264. deathReasonsOverride:
  265.    FALL_DAMAGE: " falling from heaven"
  266.    DROWNING: " eaten by fish"
  267.  
  268. # Note: Define custom override for mob death reasons.
  269. mobDeathReasonsOverride:
  270.    ZOMBIE: "Walker"
  271.    SPIDER: "Spooderman"
  272.  
  273. ##################################
  274. #                                #
  275. #             HOOKS              #
  276. #                                #
  277. ##################################
  278.      
  279. hooks:
  280.    worldguard:
  281.       enabled: true  
  282.      
  283.    combatlogx:
  284.       enabled: true
  285.      
  286.    deluxecombat:
  287.       enabled: true
  288.      
  289.    pvpmanager:
  290.       enabled: true
  291.  
  292.      
  293. updates:
  294.    notifications: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement