Tournaments - NekomaDev/LiteFish GitHub Wiki

Tournaments

Tournaments will allow you to diversify your gaming experience. Create time-limited events for players to compete against each other

Tournaments setting

All tournament configurations are stored in plugins\LiteFish\tournaments. As an example, there is already an example that you can parse Example_Tournaments.json. The activeTournaments.json file stores optimized active tournament data.

Set START TIME of the tournament

You can set the start time of the tournament. Analyzes the operating system time of your server.
24 hour format: hours:minutes:day_of_week

After the server starts, you will receive a notification that the tournament launch time has been set.

Create tournament

  1. Copy the Example_Tournaments.json file and rename it. For example StickHunters.json. Let's create a fun event where players have 1 hour and they have to catch 10 sticks

    I have changed the description and text alerts for this tournament. Here you can set any texts and colors
  2. Now let's add a condition, we need to create a condition for the player to catch 10 sticks

    color: Changes the color of the BossBar.PINK,BLUE,RED,GREEN,YELLOW,PURPLE,WHITE.
    style: BossBar style. SOLID,SEGMENTED_6,SEGMENTED_10,SEGMENTED_12,SEGMENTED_20. %fish%: Automatically replaces with the item's DisplayName or MaterialName %now_catch%: Sets how many sticks the player has already caught
  3. Now let's add rewards for this tournament.

    place: Prize places for which prizes will be awarded sounds/particles: Sounds and particles that will be played in the character's position after he fulfills all the conditions. You can specify multiple sounds and particles
  4. Great, now let's test our new tournament



Custom Items

Let's consider an example that we want to use the LiteFish plugin catch by ID. Let's add MEGA STICK to any category

Next, find the generated ID for this item in dropData.json

And add this condition using our ID

Restart the config and start the tournament again. We did it!

Random Items

If you specified an array of items, then all of them will be counted.

By setting random, each time you start a tournament a random item will be selected from the list, allowing you to trigger a random event each time.

Who will catch more

To set a condition without a limit, so that players compete to see who can catch the most in a certain time, just set count : 0 There will be a table of condition types, it will expand with updates

Type Description
CATCH Item that the player must catch. Uses fields: count,ids/materials
WEIGHT You need to catch a given amount of fish weight. Uses fields: count,ids/materials