Skip to content
Compare
Choose a tag to compare

Welcome new features!

Pre-release
Pre-release
@Olyno Olyno released this
· 38 commits to master since this release
ef3a497
Compare
Choose a tag to compare

Description

It's been a long time since I've updated GameAPI, but don't worry, there were many tests going on. So, this new version is now available!

⚠️This version has probably breaking changes. Please report me any issue you have here ⚠️

Here are changes:

Added:

  • A launching system with a custom cooldown system. The yaml file will be like
timer:
  time: 20
  messages_as: message
  messages:
    '20': Game starts in ${time}
    '15': Game starts in ${time}
    '10': Game starts in ${time}
    '9': Game starts in ${time}
    '8': Game starts in ${time}
    '7': Game starts in ${time}
    '6': Game starts in ${time}
    '5': Game starts in ${time}
    '4': Game starts in ${time}
    '3': Game starts in ${time}
    '2': Game starts in ${time}
    '1': Game starts in ${time}

➡️ time is how much time will pass before the game starts (in seconds)
➡️ messages_as is the form of all messages. It can be message (in the chat), title or action_bar
➡️ '20': blabla is when the message will appear. Here it will be at the 20th second
➡️ ${time} is a "string var" that will be replace with the current time in the cooldown

  • Better yaml files
  • A rework of Game and Team class
    • Added a GameRunner and GameManager class. GameRunner class is a thread that will start when the game starts and GameManager is an abstract class that includes all important methods (like display name etc...).

A lot of new features will be available in the future. Have a look here to be hyped!
➡️ https://github.com/AlexLew95/GameAPI/projects ⬅️