perseu_of
📎 4 files 19,514 chars
📄
config.yml
yml 99 lines
▶
#       _____
#  _   |_   _|__  _ __  ___
# | | | || |/ _ \| '_ \/ __|
# | |_| || | (_) | |_) \__ \
#  \__, ||_|\___/| .__/|___/
#  |___/         |_|
# Discord: discord.ystoreplugins.com.br
# Site: ystoreplugins.com.br
#

# Modo de depuração para correção de problemas no plugin.
debug-mode: false

#      ___      _        _
#     /   \__ _| |_ __ _| |__   __ _ ___  ___
#    / /\ / _` | __/ _` | '_ \ / _` / __|/ _ \
#   / /_// (_| | || (_| | |_) | (_| \__ \  __/
#  /___,' \__,_|\__\__,_|_.__/ \__,_|___/\___|
#
# Configurações do banco de dados.

database:
  # Determina o tipo de banco de dados. Valores válidos: [SQLITE, MYSQL, HIKARI (recomendado)]
  storage-type: SQLITE

  # Dados para conexão ao banco de dados MYSQL.
  data:
    # Endereço de conexão do banco de dados. [EX: 127.0.0.1]
    host: localhost
    # Porta de conexão do banco de dados. [EX: 3306]
    port: 3306
    # Nome do banco de dados a ser conectado. [EX: minecraft]
    database: ''
    # Usuário de conexão. [EX: root]
    username: ''
    # Senha do usuário de conexão: [EX: 123]
    password: ''

# Delay para carregar os dados depois do login
# Necessário para usar em servidor de mina separado
# Recomendado: 20 ticks
login-delay: 20

# Este limite serve para recolher recompensas
# Desativar ou aumentar o limite pode gerar lag
# e em alguns casos crashar o servidor.
limit:
  enabled: true
  # Máximo que irá recolher por vez
  max: 1000

# Deletar a recompensa ao clicar com botão direito
right-delete-reward: true

# Tempo para atualizar a lista de tops
# em segundos
top-list-tick: 120

# Tempo para atualizar as entidades
# em segundos
top-entity-tick: 120

# Ativar o NPC ficar olhando pro player
look-close: true

# Configuração do menu de TOP
top-menu:
  # em segundos
  time: 600
  player-format: '{player}'

# Formatador de tempo
format-time:
  with-minutes: "{minutes}m:{seconds}s.{millis}ms"
  without-minutes: "{seconds}.{millis}ms"

# Mensagem de anúncio de jogadores do top
top-message:
  enable: true
  # em segundos
  time: 600
  #
  # PLACEHOLDERS DISPONÍVEIS:
  # {value__formatted}, {value__time}, {value__kdr}
  #
  # TYPES:
  # VAULT, YPLANTACOES_MOEDAS, YMAQUINAS_VALOR, YTEMPOONLINE_TEMPO, YLOJAS_VISITAS, YEVENTOS_GANHADOS, YMINAS_QUEBRADOS, YMINAS_BLOCOS, YBOSSES_MATADOS, YNEWBOSSES_MATADOS, YMISSOES_ORDEM, YALMAS_ALMAS, YKILLRANK_KILLS,
  # YKILLSYSTEM_XP, YKILLSYSTEM_MONEY, YKILLSYSTEM_KILLS, YKILLSYSTEM_KDR, YRANKUP_PRESTIGIO, YRANKUP_FRAGMENTOS, YSPAWNERS_COMPRADOS, YSPAWNERSSHOP_COMPRADOS, YSPAWNERSSHOP_LIMITE, YCLANS_MONEY, YCLANS_KDR, YCLANS_MAQUINAS,
  # YCLANS_SPAWNERS, MCMMO_TODOS, MCMMO_ALQUIMIA, MCMMO_ESPADAS, MCMMO_ARQUERIA, MCMMO_MINERACAO, MCMMO_EXCAVACAO, MCMMO_MACHADOS, MCMMO_REPARACAO, MCMMO_ACROBACIA, YPOINTS_PONTOS, YPESCA_COINS, YPESCA_PESCADOS, YGUERRA_GANHADAS,
  # YGUERRA_CLAN_GANHADAS, YCHAIN_KILL, YCHAIN_KILLSTREAK, YCHAIN_KDR, YCHAIN_TEMPO, YCRATESVIRTUAIS_ABERTAS, YRECOMENDAR_RECOMENDADOS, YCLANS_KILLS, YCLANS_DEATHS, YVIPS_ATIVADOS, YVIPS_CREDITOS, YMITO_TIMES, YMITO_TOTAL_TIME,
  # YMINASPACKETS_QUEBRADOS, YMINASPACKETS_BLOCOS
  #
  player-format: '{player}'
  message: |

    &aVeja os jogadores que se destacam no servidor!
    &7(Clique na mensagem para acessar o TOP escolhido)

    Clique para acessar o TOP">-> {player_VAULT} - ${value_VAULT_formatted}
📄
holograms.yml
yml 292 lines
▶
#   _   _       _
# | | | | ___ | | ___   __ _ _ __ __ _ _ __ ___  ___
# | |_| |/ _ \| |/ _ \ / _` | '__/ _` | '_ ` _ \/ __|
# |  _  | (_) | | (_) | (_| | | | (_| | | | | | \__ \
# |_| |_|\___/|_|\___/ \__, |_|  \__,_|_| |_| |_|___/
#                      |___/

# CORES POR POSIÇÃO:
# #1 &6&l = Dourado   🥇
# #2 &f&l = Prata     🥈
# #3 &c&l = Bronze    🥉
# #4 &9   = Azul
# #5 &7   = Cinza
# #6~#10 &7 = Cinza

# PLACEHOLDERS DISPONÍVEIS
# {player_}, {value_formatted_}, {value_time_}, {value_kdr_}

hologram:

  # ════════════════════════════════
  # 💰 TOP DINHEIRO
  # ════════════════════════════════
  money:
    top-type: 'VAULT'
    hologram:
      lines:
        - '&2&l💰 TOP MONEY 💰'
        - '&6&l#1 &6{player_1} &7» &6$&6{value_1_formatted}'
        - '&f&l#2 &f{player_2} &7» &f$&f{value_2_formatted}'
        - '&c&l#3 &c{player_3} &7» &c$&c{value_3_formatted}'
        - '&9#4 &9{player_4} &7» &9$&9{value_4_formatted}'
        - '&d#5 &d{player_5} &d» &d$&d{value_5_formatted}'
        - '&7#6 &7{player_6} &7» &7$&7{value_6_formatted}'
        - '&7#7 &7{player_7} &7» &7$&7{value_7_formatted}'
        - '&7#8 &7{player_8} &7» &7$&7{value_8_formatted}'
        - '&7#9 &7{player_9} &7» &7$&7{value_9_formatted}'
        - '&7#10 &7{player_10} &7» &7$&7{value_10_formatted}'
        - ''
        - '&7━━━━━━━━━━━━━━━━━━━━'

  # ════════════════════════════════
  # 🏦 TOP BANCO
  # ════════════════════════════════
  banco:
    top-type: 'YBANCO_RICOS'
    hologram:
      lines:
        - '&6&l🏦 TOP BANCO 🏦'
        - '&6&l#1 &6{player_1} &7» &6$&6{value_1_formatted}'
        - '&f&l#2 &f{player_2} &7» &f$&f{value_2_formatted}'
        - '&c&l#3 &c{player_3} &7» &c$&c{value_3_formatted}'
        - '&9#4 &9{player_4} &7» &9$&9{value_4_formatted}'
        - '&d#5 &d{player_5} &d» &d$&d{value_5_formatted}'
        - '&7#6 &7{player_6} &7» &7$&7{value_6_formatted}'
        - '&7#7 &7{player_7} &7» &7$&7{value_7_formatted}'
        - '&7#8 &7{player_8} &7» &7$&7{value_8_formatted}'
        - '&7#9 &7{player_9} &7» &7$&7{value_9_formatted}'
        - '&7#10 &7{player_10} &7» &7$&7{value_10_formatted}'
        - ''
        - '&7━━━━━━━━━━━━━━━━━━━━'

  # ════════════════════════════════
  # 💎 TOP CASH (POINTS)
  # ════════════════════════════════
  cash:
    top-type: 'YPOINTS_PONTOS'
    hologram:
      lines:
        - '&b&l💎 TOP CASH 💎'
        - '&6&l#1 &6{player_1} &7» &6{value_1_formatted} &6cash'
        - '&f&l#2 &f{player_2} &7» &f{value_2_formatted} &fcash'
        - '&c&l#3 &c{player_3} &7» &c{value_3_formatted} &ccash'
        - '&9#4 &9{player_4} &7» &9{value_4_formatted} &9cash'
        - '&d#5 &d{player_5} &d» &d{value_5_formatted} &dcash'
        - '&7#6 &7{player_6} &7» &7{value_6_formatted} &7cash'
        - '&7#7 &7{player_7} &7» &7{value_7_formatted} &7cash'
        - '&7#8 &7{player_8} &7» &7{value_8_formatted} &7cash'
        - '&7#9 &7{player_9} &7» &7{value_9_formatted} &7cash'
        - '&7#10 &7{player_10} &7» &7{value_10_formatted} &7cash'
        - ''
        - '&7━━━━━━━━━━━━━━━━━━━━'

  # ════════════════════════════════
  # ⏱️ TOP TEMPO ONLINE
  # ════════════════════════════════
  tempo_online:
    top-type: 'YTEMPOONLINE_TEMPO'
    hologram:
      lines:
        - '&3&l⏱ TOP TEMPO ONLINE ⏱'
        - '&6&l#1 &6{player_1} &7» &6{value_1_time}'
        - '&f&l#2 &f{player_2} &7» &f{value_2_time}'
        - '&c&l#3 &c{player_3} &7» &c{value_3_time}'
        - '&9#4 &9{player_4} &7» &9{value_4_time}'
        - '&d#5 &d{player_5} &d» &d{value_5_time}'
        - '&7#6 &7{player_6} &7» &7{value_6_time}'
        - '&7#7 &7{player_7} &7» &7{value_7_time}'
        - '&7#8 &7{player_8} &7» &7{value_8_time}'
        - '&7#9 &7{player_9} &7» &7{value_9_time}'
        - '&7#10 &7{player_10} &7» &7{value_10_time}'
        - ''
        - '&7━━━━━━━━━━━━━━━━━━━━'

  # ════════════════════════════════
  # 🎮 TOP EVENTOS
  # ════════════════════════════════
  eventos:
    top-type: 'YEVENTOS_GANHADOS'
    hologram:
      lines:
        - '&d&l🎮 TOP EVENTOS 🎮'
        - '&6&l#1 &6{player_1} &7» &6{value_1_formatted} &6vitórias'
        - '&f&l#2 &f{player_2} &7» &f{value_2_formatted} &fvitórias'
        - '&c&l#3 &c{player_3} &7» &c{value_3_formatted} &cvitórias'
        - '&9#4 &9{player_4} &7» &9{value_4_formatted} &9vitórias'
        - '&d#5 &d{player_5} &d» &d{value_5_formatted} &dvitórias'
        - '&7#6 &7{player_6} &7» &7{value_6_formatted} &7vitórias'
        - '&7#7 &7{player_7} &7» &7{value_7_formatted} &7vitórias'
        - '&7#8 &7{player_8} &7» &7{value_8_formatted} &7vitórias'
        - '&7#9 &7{player_9} &7» &7{value_9_formatted} &7vitórias'
        - '&7#10 &7{player_10} &7» &7{value_10_formatted} &7vitórias'
        - ''
        - '&7━━━━━━━━━━━━━━━━━━━━'

  # ════════════════════════════════
  # 👥 TOP CLÃ - DINHEIRO
  # ════════════════════════════════
  clans_money:
    top-type: 'YCLANS_MONEY'
    hologram:
      lines:
        - '&6&l👥 TOP CLÃ - DINHEIRO 👥'
        - '&6&l#1 &6{player_1} &7» &6$&6{value_1_formatted}'
        - '&f&l#2 &f{player_2} &7» &f$&f{value_2_formatted}'
        - '&c&l#3 &c{player_3} &7» &c$&c{value_3_formatted}'
        - '&9#4 &9{player_4} &7» &9$&9{value_4_formatted}'
        - '&d#5 &d{player_5} &d» &d$&d{value_5_formatted}'
        - '&7#6 &7{player_6} &7» &7$&7{value_6_formatted}'
        - '&7#7 &7{player_7} &7» &7$&7{value_7_formatted}'
        - '&7#8 &7{player_8} &7» &7$&7{value_8_formatted}'
        - '&7#9 &7{player_9} &7» &7$&7{value_9_formatted}'
        - '&7#10 &7{player_10} &7» &7$&7{value_10_formatted}'
        - ''
        - '&7━━━━━━━━━━━━━━━━━━━━'

  # ════════════════════════════════
  # ☠️ TOP CLÃ - KILLS
  # ════════════════════════════════
  clans_kills:
    top-type: 'YCLANS_KILLS'
    hologram:
      lines:
        - '&c&l☠ TOP CLÃ - KILLS ☠'
        - '&6&l#1 &6{player_1} &7» &6{value_1_formatted} &6kills'
        - '&f&l#2 &f{player_2} &7» &f{value_2_formatted} &fkills'
        - '&c&l#3 &c{player_3} &7» &c{value_3_formatted} &ckills'
        - '&9#4 &9{player_4} &7» &9{value_4_formatted} &9kills'
        - '&d#5 &d{player_5} &d» &d{value_5_formatted} &dkills'
        - '&7#6 &7{player_6} &7» &7{value_6_formatted} &7kills'
        - '&7#7 &7{player_7} &7» &7{value_7_formatted} &7kills'
        - '&7#8 &7{player_8} &7» &7{value_8_formatted} &7kills'
        - '&7#9 &7{player_9} &7» &7{value_9_formatted} &7kills'
        - '&7#10 &7{player_10} &7» &7{value_10_formatted} &7kills'
        - ''
        - '&7━━━━━━━━━━━━━━━━━━━━'

  # ════════════════════════════════
  # ⚔️ TOP CLÃ - KDR
  # ════════════════════════════════
  clans_kdr:
    top-type: 'YCLANS_KDR'
    hologram:
      lines:
        - '&4&l⚔ TOP CLÃ - KDR ⚔'
        - '&6&l#1 &6{player_1} &7» &6{value_1_kdr} &6KDR'
        - '&f&l#2 &f{player_2} &7» &f{value_2_kdr} &fKDR'
        - '&c&l#3 &c{player_3} &7» &c{value_3_kdr} &cKDR'
        - '&9#4 &9{player_4} &7» &9{value_4_kdr} &9KDR'
        - '&d#5 &d{player_5} &d» &d{value_5_kdr} &dKDR'
        - '&7#6 &7{player_6} &7» &7{value_6_kdr} &7KDR'
        - '&7#7 &7{player_7} &7» &7{value_7_kdr} &7KDR'
        - '&7#8 &7{player_8} &7» &7{value_8_kdr} &7KDR'
        - '&7#9 &7{player_9} &7» &7{value_9_kdr} &7KDR'
        - '&7#10 &7{player_10} &7» &7{value_10_kdr} &7KDR'
        - ''
        - '&7━━━━━━━━━━━━━━━━━━━━'

  # ════════════════════════════════
  # 🏅 TOP RANKUP - PRESTÍGIO
  # ════════════════════════════════
  rankup_prestigio:
    top-type: 'YRANKUP_PRESTIGIO'
    hologram:
      lines:
        - '&5&l🏅 TOP PRESTÍGIO 🏅'
        - '&6&l#1 &6{player_1} &7» &6{value_1_formatted} &6prestígios'
        - '&f&l#2 &f{player_2} &7» &f{value_2_formatted} &fprestígios'
        - '&c&l#3 &c{player_3} &7» &c{value_3_formatted} &cprestígios'
        - '&9#4 &9{player_4} &7» &9{value_4_formatted} &9prestígios'
        - '&d#5 &d{player_5} &d» &d{value_5_formatted} &dprestígios'
        - '&7#6 &7{player_6} &7» &7{value_6_formatted} &7prestígios'
        - '&7#7 &7{player_7} &7» &7{value_7_formatted} &7prestígios'
        - '&7#8 &7{player_8} &7» &7{value_8_formatted} &7prestígios'
        - '&7#9 &7{player_9} &7» &7{value_9_formatted} &7prestígios'
        - '&7#10 &7{player_10} &7» &7{value_10_formatted} &7prestígios'
        - ''
        - '&7━━━━━━━━━━━━━━━━━━━━'

  # ════════════════════════════════
  # 🔮 TOP RANKUP - FRAGMENTOS
  # ════════════════════════════════
  rankup_fragmentos:
    top-type: 'YRANKUP_FRAGMENTOS'
    hologram:
      lines:
        - '&5&l🔮 TOP FRAGMENTOS 🔮'
        - '&6&l#1 &6{player_1} &7» &6{value_1_formatted} &6fragmentos'
        - '&f&l#2 &f{player_2} &7» &f{value_2_formatted} &ffragmentos'
        - '&c&l#3 &c{player_3} &7» &c{value_3_formatted} &cfragmentos'
        - '&9#4 &9{player_4} &7» &9{value_4_formatted} &9fragmentos'
        - '&d#5 &d{player_5} &d» &d{value_5_formatted} &dfragmentos'
        - '&7#6 &7{player_6} &7» &7{value_6_formatted} &7fragmentos'
        - '&7#7 &7{player_7} &7» &7{value_7_formatted} &7fragmentos'
        - '&7#8 &7{player_8} &7» &7{value_8_formatted} &7fragmentos'
        - '&7#9 &7{player_9} &7» &7{value_9_formatted} &7fragmentos'
        - '&7#10 &7{player_10} &7» &7{value_10_formatted} &7fragmentos'
        - ''
        - '&7━━━━━━━━━━━━━━━━━━━━'

  # ════════════════════════════════
  # 💀 TOP PVP - KILLS
  # ════════════════════════════════
  pvp_kills:
    top-type: 'YKILLSYSTEM_KILLS'
    hologram:
      lines:
        - '&c&l💀 TOP PVP - KILLS 💀'
        - '&6&l#1 &6{player_1} &7» &6{value_1_formatted} &6kills'
        - '&f&l#2 &f{player_2} &7» &f{value_2_formatted} &fkills'
        - '&c&l#3 &c{player_3} &7» &c{value_3_formatted} &ckills'
        - '&9#4 &9{player_4} &7» &9{value_4_formatted} &9kills'
        - '&d#5 &d{player_5} &d» &d{value_5_formatted} &dkills'
        - '&7#6 &7{player_6} &7» &7{value_6_formatted} &7kills'
        - '&7#7 &7{player_7} &7» &7{value_7_formatted} &7kills'
        - '&7#8 &7{player_8} &7» &7{value_8_formatted} &7kills'
        - '&7#9 &7{player_9} &7» &7{value_9_formatted} &7kills'
        - '&7#10 &7{player_10} &7» &7{value_10_formatted} &7kills'
        - ''
        - '&7━━━━━━━━━━━━━━━━━━━━'

  # ════════════════════════════════
  # 🎖️ TOP PVP - RANK
  # ════════════════════════════════
  pvp_rank:
    top-type: 'YKILLSYSTEM_RANK'
    hologram:
      lines:
        - '&6&l🎖 TOP PVP - RANK 🎖'
        - '&6&l#1 &6{player_1} &7» &6{value_1_formatted}'
        - '&f&l#2 &f{player_2} &7» &f{value_2_formatted}'
        - '&c&l#3 &c{player_3} &7» &c{value_3_formatted}'
        - '&9#4 &9{player_4} &7» &9{value_4_formatted}'
        - '&d#5 &d{player_5} &d» &d{value_5_formatted}'
        - '&7#6 &7{player_6} &7» &7{value_6_formatted}'
        - '&7#7 &7{player_7} &7» &7{value_7_formatted}'
        - '&7#8 &7{player_8} &7» &7{value_8_formatted}'
        - '&7#9 &7{player_9} &7» &7{value_9_formatted}'
        - '&7#10 &7{player_10} &7» &7{value_10_formatted}'
        - ''
        - '&7━━━━━━━━━━━━━━━━━━━━'

  # ════════════════════════════════
  # 💀 TOP BOSSES
  # ════════════════════════════════
  bosses:
    top-type: 'YBOSSES_MATADOS'
    hologram:
      lines:
        - '&4&l💀 TOP BOSSES 💀'
        - '&6&l#1 &6{player_1} &7» &6{value_1_formatted} &6abates'
        - '&f&l#2 &f{player_2} &7» &f{value_2_formatted} &fabates'
        - '&c&l#3 &c{player_3} &7» &c{value_3_formatted} &cabates'
        - '&9#4 &9{player_4} &7» &9{value_4_formatted} &9abates'
        - '&d#5 &d{player_5} &d» &d{value_5_formatted} &dabates'
        - '&7#6 &7{player_6} &7» &7{value_6_formatted} &7abates'
        - '&7#7 &7{player_7} &7» &7{value_7_formatted} &7abates'
        - '&7#8 &7{player_8} &7» &7{value_8_formatted} &7abates'
        - '&7#9 &7{player_9} &7» &7{value_9_formatted} &7abates'
        - '&7#10 &7{player_10} &7» &7{value_10_formatted} &7abates'
        - ''
        - '&7━━━━━━━━━━━━━━━━━━━━'
📄
rewards.yml
yml 77 lines
▶
#   ____                            _
# |  _ \ _____      ____ _ _ __ __| |___
# | |_) / _ \ \ /\ / / _` | '__/ _` / __|
# |  _ <  __/\ V  V / (_| | | | (_| \__ \
# |_| \_\___| \_/\_/ \__,_|_|  \__,_|___/
#

rewards:
  reward1:
    # Item que aparecerá no preview.
    preview:
      material: 'STONE:0'
      name: '&8Pedra'
      amount: 64
      lore: [ '&aEsta pedra vale muito dinheiro!' ]
      enchants: []
    # Item que aparecerá para coletar.
    collect:
      material: 'STONE:0'
      name: '&8Pedra'
      amount: 64
      lore: [ '&aEsta pedra vale muito dinheiro!', '', ' &7> &fQuantidade: &7{amount}', '', '&eClique esquerdo para receber', '&eClique direito para deletar' ]
      enchants: []
    # Item que será dado ao player
    item:
      give: true
      material: 'STONE:0'
      name: '&8Pedra'
      amount: 64
      lore: [ '&aEu valho muito!' ]
      enchants: []
    # Comandos que será dado ao player
    command:
      give: false
      # quantia padrão da placeholder {amount} no comando (valor base)
      placeholder-amount: 1
      # multiplicar a placeholder {amount} pela quantia de recompensas do mesmo tipo
      multiply-placeholder: true
      list: [ 'give {player} stone {amount}' ]
  reward2:
    preview:
      material: 'DIAMOND:0'
      name: '&bDiamante'
      amount: 1
      lore: [ '&bQuem não adora uma pedra preciosa?!' ]
      enchants: []
    collect:
      material: 'DIAMOND:0'
      name: '&bDiamante'
      amount: 1
      lore: [ '&bQuem não adora uma pedra preciosa?!', '', ' &7> &fQuantidade: &7{amount}', '', '&eClique esquerdo para receber', '&eClique direito para deletar' ]
      enchants: []
    command:
      give: true
      placeholder-amount: 1
      multiply-placeholder: true
      list: [ 'give {player} diamond {amount}' ]
  reward3:
    preview:
      material: 'EMERALD:0'
      name: '&aEsmeralda'
      amount: 1
      lore: [ '&aEsmeraldas valem muito?' ]
      enchants: []
    collect:
      material: 'EMERALD:0'
      name: '&aEsmeralda'
      amount: 1
      lore: [ '&aEsmeraldas valem muito?', '', ' &7> &fQuantidade: &7{amount}', '', '&eClique esquerdo para receber', '&eClique direito para deletar' ]
      enchants: []
    item:
      give: true
      material: 'EMERALD:0'
      name: '&aEsmeralda'
      amount: 1
      lore: [ '&aEu valho muito!' ]
      enchants: []
📄
top_rewards.yml
yml 23 lines
▶
# TOP-TYPE DISPONÍVEIS:
# VAULT, PLAYERPOINTS, YPLANTACOES_MOEDAS, YMAQUINAS_VALOR, YTEMPOONLINE_TEMPO, YLOJAS_VISITAS, YEVENTOS_GANHADOS, YMINAS_QUEBRADOS, YMINAS_BLOCOS, YBOSSES_MATADOS, YNEWBOSSES_MATADOS, YMISSOES_ORDEM, YALMAS_ALMAS, YKILLRANK_KILLS,
# YKILLSYSTEM_XP, YKILLSYSTEM_MONEY, YKILLSYSTEM_KILLS, YKILLSYSTEM_KDR, YKILLSYSTEM_RANK, YRANKUP_PRESTIGIO, YRANKUP_FRAGMENTOS, YSPAWNERS_COMPRADOS, YSPAWNERSSHOP_COMPRADOS, YSPAWNERSSHOP_LIMITE, YSPAWNERSSHOP_GASTO, YCLANS_MONEY, YCLANS_KDR, YCLANS_MAQUINAS,
# YCLANS_SPAWNERS, MCMMO_TODOS, MCMMO_ALQUIMIA, MCMMO_ESPADAS, MCMMO_ARQUERIA, MCMMO_MINERACAO, MCMMO_EXCAVACAO, MCMMO_MACHADOS, MCMMO_REPARACAO, MCMMO_ACROBACIA, YPOINTS_PONTOS, YPESCA_COINS, YPESCA_PESCADOS, YGUERRA_GANHADAS,
# YGUERRA_CLAN_GANHADAS, YCHAIN_KILL, YCHAIN_KILLSTREAK, YCHAIN_KDR, YCHAIN_TEMPO, YCRATESVIRTUAIS_ABERTAS, YRECOMENDAR_RECOMENDADOS, YCLANS_KILLS, YCLANS_DEATHS, YVIPS_ATIVADOS, YVIPS_CREDITOS, YMITO_TIMES, YMITO_TOTAL_TIME,
# YCAMPO_COINS, YCAMPO_BROKEN, YCAMPO_TIME, YPAYMENTS_SPENT, YMINASPACKETS_QUEBRADOS, YMINASPACKETS_BLOCOS, YBANCO_RICOS, YPESCASIMPLES_PESCADOS, YSTACKBOSSES_KILLED, YSTACKBOSSES_DAMAGE, YFLORESTA_COIN, YFLORESTA_BROKEN, YFLORESTA_TIME

# PLACEHOLDERS DISPONÍVEIS
# {index}, {player_}, {value_}, {value_formatted_}, {value_time_}, {value_kdr_}

tops:
  money_1_weekly:
    top-type: 'VAULT'
    # Posição do TOP que será recompensada
    position: 1
    # Período da recompensa
    # WEEKLY = semanal
    # MONTHLY = mensal
    period: 'WEEKLY'
    # Recompensas que serão dadas
    # chance,recompensa (da rewards.yml)
    rewards:
      - '100.0,reward1'
Kodari AI
KodariMay 5 at 11:22 am 57,093 (v2)
YTops
A comprehensive server top-ranking plugin for Minecraft servers. Tracks and displays player rankings across multiple categories including economy, PvP kills, online time, clan stats, rankup progress, and dozens of plugin integrations. Features hologram displays via DecentHolograms, periodic top announcements, a reward collection GUI with per-player pending rewards, and weekly/monthly top reward distribution. Supports SQLite, MySQL, and HikariCP databases.
  • Main plugin + config/database layer first, then providers, then managers, then GUI/commands

  • TopType enum covers all types from config; PapiProvider handles ystore plugin integrations

  • HologramManager uses DHAPI; TopRewardManager tracks weekly/monthly periods via calendar keys

I need to fix the YTopsCommand - I accidentally shadowed Collections. Let me rewrite that file cleanly:

The plugin is fully generated. Here’s a summary of what was built:

Architecture:

  • YTops — main plugin orchestrating all managers and scheduling tasks

  • ConfigManager — loads all 5 config files (config.yml, holograms.yml, rewards.yml, top_rewards.yml, messages.yml, hologram_locations.yml)

  • DatabaseManager + AbstractDatabase — shared SQL logic with SQLite / MySQL / HikariCP implementations

  • TopManager — async refresh loop querying Vault, PlayerPoints, and PlaceholderAPI-based providers for all 60+ top types; results cached in DB and memory

  • RewardManager — parses rewards.yml and handles item/command delivery with multiplied amounts

  • TopRewardManager — evaluates weekly/monthly period keys via ISO calendar and queues pending rewards with history deduplication

  • HologramManager — creates/updates DecentHolograms via DHAPI, locations persisted to hologram_locations.yml

  • CollectGUI — chest inventory grouping pending rewards by type; left-click collects, right-click deletes (respects right-delete-reward and limit.max)

  • YTopsCommand — /ytops reload|update|sethologram|removehologram|givereward|collect with tab completion

  • TopRefreshTask / AnnouncementTask — periodic tasks driven by top-list-tick and top-message.time settings

perseu_of

CADA OS ARQUIVOS QUIE PEDI?

Kodari AI
KodariMay 5 at 11:23 am 35,398 (v2)

Aqui estão todos os 41 arquivos do projeto lidos e exibidos acima. O projeto YTops é um plugin de ranking com:

  • Database: SQLite/MySQL/HikariCP com 3 tabelas (top_cache, pending_rewards, reward_history)

  • Top System: Providers nativos (Vault, PlayerPoints) + PAPI para os demais tipos (~70 TopTypes)

  • Hologramas: Integração com DecentHolograms via DHAPI

  • Recompensas: Sistema de coleta via GUI (CollectGUI), distribuição periódica (semanal/mensal)

  • Tasks: Refresh do top + anúncios em chat

O que você precisa fazer?

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
Code
41 2,691
src/main/java/com/ystore/ytops/YTops.java
package com.ystore.ytops;

import com.ystore.ytops.command.YTopsCommand;
import com.ystore.ytops.config.ConfigManager;
import com.ystore.ytops.database.DatabaseManager;
import com.ystore.ytops.hologram.HologramManager;
import com.ystore.ytops.listener.PlayerListener;
import com.ystore.ytops.reward.RewardManager;
import com.ystore.ytops.task.AnnouncementTask;
import com.ystore.ytops.task.TopRefreshTask;
import com.ystore.ytops.top.TopManager;
import com.ystore.ytops.topreward.TopRewardManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class YTops extends JavaPlugin {

    @Getter
    private static YTops instance;

    private ConfigManager configManager;
    private DatabaseManager databaseManager;
    private TopManager topManager;
    private RewardManager rewardManager;
    private TopRewardManager topRewardManager;
    private HologramManager hologramManager;

    private TopRefreshTask topRefreshTask;
    private AnnouncementTask announcementTask;

    @Override
    public void onEnable() {
        instance = this;

        this.configManager = new ConfigManager(this);

        this.databaseManager = new DatabaseManager(this);
        this.databaseManager.connect();

        this.topManager = new TopManager(this);
        this.rewardManager = new RewardManager(this);
        this.topRewardManager = new TopRewardManager(this);
        this.hologramManager = new HologramManager(this);

        getCommand("ytops").setExecutor(new YTopsCommand(this));

        getServer().getPluginManager().registerEvents(new PlayerListener(this), this);

        startTasks();

        getLogger().info("YTops v" + getDescription().getVersion() + " ativado com sucesso!");
    }

    @Override
    public void onDisable() {
        if (hologramManager != null) {
            hologramManager.removeAll();
        }
        if (databaseManager != null) {
            databaseManager.disconnect();
        }
        getLogger().info("YTops desativado.");
    }

    public void reload() {
        configManager.reload();
        rewardManager.reload();
        topRewardManager.reload();

        if (topRefreshTask != null) {
            topRefreshTask.cancel();
        }
        if (announcementTask != null) {
            announcementTask.cancel();
        }

        hologramManager.reload();
        startTasks();
    }

    private void startTasks() {
        long refreshTicks = configManager.getMainConfig().getLong("top-list-tick", 120) * 20L;
        topRefreshTask = new TopRefreshTask(this);
        topRefreshTask.runTaskTimerAsynchronously(this, 40L, refreshTicks);

        if (configManager.getMainConfig().getBoolean("top-message.enable", true)) {
            long announceTicks = configManager.getMainConfig().getLong("top-message.time", 600) * 20L;
            announcementTask = new AnnouncementTask(this);
            announcementTask.runTaskTimer(this, announceTicks, announceTicks);
        }
    }
}