Giter VIP home page Giter VIP logo

tgm-api's People

Contributors

atdit avatar benrobson avatar dependabot[bot] avatar draeeeeeeeeeeeem avatar jellz avatar jorgeberrex avatar lukechatton avatar matrixtunnel avatar mattbsg avatar sowhatifimlazy avatar tjhubz avatar trophonix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

tgm-api's Issues

Rename fields in users database schema

In efforts to be consistent with a single naming convention, some fields need to be renamed
wool_destroys -> monumentDestroys
wool_pickups -> woolPickups
wool_placements -> woolPlacements

These should ideally be eventually moved into gamemode specific stat sections, along the lines of:

{
    "name": "Notch",
    "kills": 100,
    "deaths": 38579,
    ...
    "gamemodes": {
        "DTM": {
            "monumentDestroys": 15
        },
        "CTW": {
            "woolPickups": 24,
            "woolPlacements": 9,
        },
        ...
    }
}

Store XP in the DB

Right now the server is calculating the XP based on the player's stats, it should probably be changed to just instead storing the player's XP in the database.

Webhook support

Post messages through Discord webhooks for:

  • New punishments
  • Reverted punishments
  • Add a rank to a player
  • Remove a rank from a player
  • Update a rank (prefix, permissions, priority, etc)

Player's Rank IDs should be removed when Rank is deleted

Describe the feature you'd like
When a rank is removed, all the players which had that rank previously should lose the rank id in their ranks list.

Usefulness of the feature
Redundant rank ids of deleted ranks wouldn't be in the player's rank list anymore.

Additional context
I'm not sure if this is a bug report or a feature request, so I decided to just put it as feature request.

Screenshots:
image
Player's rank list after adding a rank

image
Rank list

image
Rank list after deleting the rank

image
Player's rank list after deleting the rank

Player lookup with warzone player uuid

Currently, the punishments route does not return punisher's name but instead a uuid representing the staff member responsible. For certain integrations this should either return the responsible punisher's name or an amended lookup endpoint that can return player info (including an IGN) of a provided player uuid be created.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.