[NOW FREE] [1.12 - 1.20] ⏳ ancHypeTrain ✅ Maximize your profit! Hype Train & Rewards & Limit — more! icon

[NOW FREE] [1.12 - 1.20] ⏳ ancHypeTrain ✅ Maximize your profit! Hype Train & Rewards & Limit — more! -----

Adds a HypeTrain feature to your server, aiming to make your server $$




[​IMG] [​IMG]
[​IMG]


ancHypeTrain is a plugin based off of Twitch's HypeTrain feature.
This plugin is optimized to make you as much money as possible while keeping your players happy.

HypeTrain is basically an event that happens when someone donates to your server.
When certain donation criteria are met, the HypeTrain levels up, giving out rewards to players. You can add as much levels as you like to the plugin.
What can I add as a reward? Anything the console can give to players with a command.
You don't want every single player on your server to get rewards when HypeTrain levels up? No problem, rewards have reward types, you can make everyone win rewards, x amount of random people (x is a range, e.g: 3-8) win rewards, or just the latest donator get the rewards.
Does this mean a HypeTrain will be active on my server until it hits the last level? No, HypeTrain lasts 600 seconds (configurable) and if no other donations are made in this timeframe, the HypeTrain will end.
Since we can't automatically read donations through your website, and it would take so much of your time to configure it accordingly, we've thought of something different, this plugin offers easy integration with packages.
Packages are basically modules that can be bought off of your website, you can create a package called VIP and tell your website to run the command /aht give player VIP when someone buys VIP from your website, the plugin will do the rest if configured correctly.

"So how does HypeTrain encourage players to donate to my server?" you might ask, if you're offering appealing and better rewards with every single level, people will not want to lose their HypeTrain level, and will donate to your server to get the rest of the rewards.

Requirements:
• Vault plugin
• A permissions plugin supported by Vault (e.g: LuckPerms, GroupManagerX and etc.)

Default config.yml:
Code (Text):
config:
  version: 1.0
  lang: en # Only 'en' (English) and 'tr' (Turkish) are supported built-in.


train:
  # Where do you want the hype train to be displayed?
  mode: bossbar # bossbar / actionbar / none
  # Please refer to this link for available bossbar styles and colors.
  # https://github.com/NEZNAMY/TAB/wiki/Feature-guide:-Bossbar
  bossbar-style: NOTCHED_20
  bossbar-color: RED
  bossbar-progress: 100
  # This is the format for actionbars and bossbars, feel free to edit this
  # however you want.
  format: "&5&lHYPE TRAIN &7is: &dLevel {level}! &7Requirements: &dLevel {next_level}: &7${remaining_donations} &8(&c{time_remaining}s&8) &8| &6/aht info"
  # Should there be donation & hype train level-up announcements in the chat?
  announce-messages: true
  # How many seconds after the "Hype train" starts should it be
  # terminated if no other donation is received to the server?
  time: 600 # 10 minutes.
  # How many seconds should the plugin wait to give out rewards
  # after a new level of hype train is reached?
  delay: 15 # 15 seconds.


levels:
  # Feel free to add as many levels as you want, the plugin will
  # be able to keep up with any level you add, considering you've set
  # them up correctly.
  1:
    # Threshold means, for the hype-train to reach this level, how much
    # donation ($$) should be collected?
    threshold: 50
    rewards:
      # There are 3 reward types: everyone, random, donator.
      # everyone: Every single player currently active on the server will receive the rewards.
      # random: xx amount of random players will be selected, and will receive the rewards.
      # donator: Only the donator, who made the train level up, will receive the rewards.
      type: everyone
      # If the selected type is random, first a random integer between 2-5 will be selected,
      # then, the plugin will select that many random players currently active on the server.
      # After the players are selected, they will receive their rewards.
      random: 2-5 # A random integer between 2-5
      # These are the commands that will be executed when giving out rewards.
      # You may use the variable {player}.
      commands:
        - "give {player} diamond 1"
        - "give {player} emerald 2"
        - "eco give {player} 200"
      # Description is what players will see when they use the /aht info command
      # these messages will be shown as the rewards they will receive when they hit
      # this level.
      description:
        - "&b1 diamond"
        - "&a2 emeralds"
        - "&e$200 money"
  2:
    # Please note that, setting the threshold to 100 here means that
    # if the server has received 100$, the train will level up to 2.
    # The threshold from level 1 will not be added to this threshold.
    threshold: 100
    rewards:
      type: random
      random: 2-5
      commands:
        - "broadcast Woah! {player} is one of the lucky players!"
        - "eco give {player} 500"
        - "give {player} diamond 2"
      description:
        - "&e$500 money"
        - "&b2 diamonds"


packages:
  # Packages are basically what you sell on your webpage.
  # Since the plugin cannot automatically listen to your webpage, we will
  # need a way to determine when a player buys something, and what it's price is.
  # So you will need to fill in this part before you can actually start using the plugin.
  # Upper-case letters are not supported here!
  vip:
    # Price is the amount of money the player has paid to buy this item on your
    # webstore, these prices will be calculated to level up the train.
    price: 13.99
    # Do you want the plugin to broadcast a message when this package is bought?
    broadcast: true
    # If broadcast is true, do you want the plugin to use the global message, or set your own?
    # To use global, just type in: "global", if you want to use a custom message for this package
    # Please type in what you want to be broadcasted
    broadcast-message: "global"
    # The commands that will be executed when this package is bought:
    commands:
      - "lp user {player} parent add VIP"
 

Default lang_en.yml
Code (Text):
menu:
  menu_name: "&6Hype Train Information"
  row-size: 5 # 1-6
  items:
    info:
      material: head-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYmFkYzA0OGE3Y2U3OGY3ZGFkNzJhMDdkYTI3ZDg1YzA5MTY4ODFlNTUyMmVlZWQxZTNkYWYyMTdhMzhjMWEifX19
      name: "&d&l&nINFORMATION"
      lore:
        - ""
        - "&7 Hype Train is a system which "
        - "&7 rewards players for donating "
        - "&7 to the server. When certain "
        - "&7 donation criteria are met "
        - "&7 rewards are given out to "
        - "&7 players."
        - ""
        - " &8• &eTrain level: &8[&6{train_level}&8] "
        - " &8• &eTotal donations: &8[&6${total_donations}&8] "
        - " &8• &eRequired for next: &8[&6${required_next}&8] "
        - " &8• &eNext level rewards: &6{next_level_rewards} "
        - ""
        - "&8Click here to donate to the server! "
        - ""
      run-command: "store"
      slot: 13
  received-donations:
    name: "&eDonator: &8[&6{player}&8]"
    lore:
      - ""
      - " &8• &7Bought: &8[&6{package_name}&8] "
      - " &8• &7Date: &8[&6{date}&8] "
      - " &8• &7Price: &8[&6{price}&8] "
      - ""
    slots:
      - 28
      - 29
      - 30
      - 31
      - 32
      - 33
      - 34
  filler-item:
    # If you don't want to use filler items, please set material to AIR.
    material: BLACK_STAINED_GLASS_PANE


lang:
  prefix: "&8[&5ancHypeTrain&8] "
  info_command: "&7Please use the command accordingly: &d/aht info"
  info_admin_command: "&c&l(ADMIN) &d/aht give player package &7or &d/aht packages"
  player_not_found: "&7I couldn't find this player."
  broadcast_purchase: "&d{player} &7has purchased &d{package}&7!"
  successful_purchase: "&7You have successfully purchased package: &d{package}&7!"
  giving_out_rewards: "&7Donation requirements for &dLv {level} &7has been met. Giving out the rewards!"
  time_has_run_out: "&7Countdown has run out, hype train has ended at &cLv {level}&7."
  no_permission: "&7You don't have the required permissions to use this command."
  package_list: "&7These are the currently active packages: &d{packages}&7."

Discord:
https://discord.gg/uxXPk5V7hy
Resource Information
Author:
----------
Total Downloads: 41
First Release: Nov 27, 2024
Last Update: Nov 27, 2024
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings