StatsAPI v1.2.6-SNAPSHOT

API for Devlopers | MySQL | Player Cache | Fully Configurable | 1.7-1.15

  1. DevSnx
    Native Minecraft Version:
    1.14
    Tested Minecraft Versions:
    • 1.7
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    • 1.14
    • 1.15
    Contributors:
    Snx
    Languages Supported:
    English, German
    [​IMG]
    • Any Ideas?
    • UUID <enable/disable> in config.yml
    • Top10 Wall - Addon (85%)
    • /stats with messages.yml
    • /stats <enable/disable> in messages.yml
    • add new Stats
      • Skillpoints
      • coins
      • distance traveled
      • times you have eaten
      • and more..
    [​IMG]
    • Fast Performance
    • UUID Support
    • MySQL
    • Caches Players
    • Asynchronous tasks
    • Commands can enable or disable!
    • Support of
      • Played Games
      • Wins
      • Kills
      • Deaths
      • K/D
      • Skillpoints
      • Open Chests
      • Broken Blocks
      • Placed Blocks
    [​IMG]
    • /stats
    • /stats [player]
    [​IMG]

    Code (Java):
    DATABASE:
      HOST: locahost
      PORT: '3306'
      USER: username
      PASSWORD: password
      DATABASE: database
     

    Code (Text):
    MESSAGE:
      STATS:
        PREFIX: '&8[&7StatsAPI&8]'
        NOSTATS: '%PREFIX% &cNo Stats available'
        NOPLAYER: '%PREFIX% &cNo Player with this Minecraftname exists'
        ONKOWNCOMMAND: '%PREFIX% &cuse: &e/stats [player]'
        COMMAND:
        - '&7-=-=] &eStats %PLAYERNAME% &7[=-=-'
        - ' &7Games: &e%GAMES%'
        - ' &7Wins: &e%WINS%'
        - ' &7Kills: &e%KILLS%'
        - ' &7Deaths: &e%DEATHS%'
        - ' &7K/D: &e%KD%'
        - '&7-=-=-=-=-=-=-=-=-=-=-=-'
     

    Code (Java):
    CONFIG:
      COMMAND:
        STATS: true
     
    [​IMG]

    Code (Java):

            public StatsManager statsManager;

            PlayerStats stats = statsManager.getPlayerStats(event.getPlayer().getUniqueId());

            int kills = stats.getKills();
            int deaths = stats.getDeaths();
            int games = stats.getGames();
            int wins = stats.getWins();
     
            String name = stats.getName();
            double kd = stats.getKD();
            stats.addKills(int kills);
            stats.addDeaths(int deaths);
            stats.addWins(int wins);
            stats.addGames(int games);
            stats.setKills(int kills);
            stats.setDeaths(int deaths);
            stats.setWins(int wins);
            stats.setGames(int games);
            stats.addOpenChests(int chests);
            stats.addPlacedblocks(int blocks);
            stats.addBrokenblocks(int blocks);
            stats.setOpenChests(int chests);
            stats.setPlacedblocks(int blocks);
            stats.setBrokenblocks(int blocks);
            stats.getBrokenblocks();
            stats.getPlacedblocks();
            stats.getOpenchests();

           stats.addSkillPoints(int points);
           stats.removeSkillPoints(int points);
           stats.getSKillpoints();...

            UUID uuid =  StatsAPI.getRankingManager().getUUID(RankedType, 1);
            int rank = StatsAPI.getRankingManager().getValues(RankedType, uuid);
       
    [​IMG]

    Private Message with Plugin link for add in the list! :)
    23qrn, gabbs and Jnkk like this.

Recent Updates

  1. Bug Fix
  2. fix RankedTypes
  3. new RankedType

Recent Reviews

  1. Sancaros
    Sancaros
    5/5,
    Version: v1.2.6-SNAPSHOT
    Good plugin but addon also needs to update 1.16.3
    I'm waiting for the update days.
    1. DevSnx
      Author's Response
      I will update it soon :)
  2. khelpire
    khelpire
    5/5,
    Version: v1.2.6-SNAPSHOT
    Cool plugin and really has many stats for each player. how can I know the placeholders for each stats?
    1. DevSnx
      Author's Response
      Check discord and send me pn! :)
  3. EnderCrystalGuy
    EnderCrystalGuy
    5/5,
    Version: v1.2.6-SNAPSHOT
    Gutes Plugin, jedoch wird mir in phpmyadmin in der Datenbank der API immer folgender Fehler angezeigt:

    Warning in ./libraries/sql.lib.php#601
    count(): Parameter must be an array or an object that implements Countable

    Backtrace

    ./libraries/sql.lib.php#2038: PMA_isRememberSortingOrder(array)
    ./libraries/sql.lib.php#1984: PMA_executeQueryAndGetQueryResponse(
    array,
    boolean true,
    string 'Duell',
    string 'StatsAPI',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    string '',
    string './themes/pmahomme/img/',
    NULL,
    NULL,
    NULL,
    string 'SELECT * FROM `StatsAPI`',
    NULL,
    NULL,
    )
    ./sql.php#216: PMA_executeQueryAndSendQueryResponse(
    array,
    boolean true,
    string 'Duell',
    string 'StatsAPI',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    string '',
    string './themes/pmahomme/img/',
    NULL,
    NULL,
    NULL,
    string 'SELECT * FROM `StatsAPI`',
    NULL,
    NULL,
    )


    Woran kann das liegen?
    1. DevSnx
      Author's Response
      Hast du eine ältere StatsAPI auf den neusten stand aktualisiert? Das Plugin zeigt Fehler da bestimmte Einträge in der Datenbank fehlen.
  4. qirin97
    qirin97
    5/5,
    Version: v1.2.5-STABLE
    Sehr geile StatsAPI, aktuell die beste c: Freue mich schon auf weitere Plugins, SG ist auch nicht schlecht!
    1. DevSnx
      Author's Response
      Vielen Dank! :)
  5. letzYassineTvYT
    letzYassineTvYT
    5/5,
    Version: v1.2.5-STABLE
    5/5 Plugin, wenn noch die top 10 wall kommt dan 6/5 :D
    -----------------------------------
    1. DevSnx
      Author's Response
      Hehe danke :)
  6. moonlightflower
    moonlightflower
    5/5,
    Version: v1.2.5-SNAPSHOT
    Good plugin but addon also needs to update 1.15
    I'm waiting for the update days.
    1. DevSnx
      Author's Response
      Thanks, which addon do you need for 1.15?
  7. Bartagame96
    Bartagame96
    5/5,
    Version: 1.2.5-SNAPSHOT
    Excellent statistics plugin, highly recommended, and is active in case you need help

    Excelente plugin de estadísticas, muy recomendable, y está activo en caso de que necesite ayuda
  8. gabbs
    gabbs
    5/5,
    Version: v.1.2.2-SNAPSHOT
    5 stars, excellent idea, keep improving it!
    For now, the plugin registers only UUID and Username, the rest does not. Do you know why?
    1. DevSnx
      Author's Response
      Thanks! i have fix it! Issuses please in Discord :)
  9. Jnkk
    Jnkk
    5/5,
    Version: v1.2.0-SNAPSHOT
    Very good Updates! Thanks for making the Ranking methods its so beautiful. I use the HolograpicDisplays Addon to <3
    1. DevSnx
      Author's Response
      Thank you!
  10. Jnkk
    Jnkk
    5/5,
    Version: v1.0.2
    Its a very good and simple API! Its perfectly working for my Minigame :)
    Thanks you!
    1. DevSnx
      Author's Response
      Thanks! :)