▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/PlayerStats-ActionBar
PlayerStats-ActionBar

PlayerStats-ActionBar

A comprehensive yet lightweight Minecraft player statistics plugin that efficiently tracks player achievements, displays real-time stats via action bar, features an intuitive GUI system, and includes leaderboards. Built with asynchronous data

829
5

PlayerStats-ActionBar 1.1

release7 февраля 2026 г.

🎉 PlayerStats v1.1.0 - Quick Wins Update

Major performance improvements, session tracking, and enhanced safety features!


⚡ Performance Improvements

90% Faster Action Bar Updates

We've completely redesigned the action bar system with intelligent caching:

  • Before: ~50ms per player update
  • After: ~5ms per player update
  • Result: Support for 10x more players with no lag!

Technical Details:

  • Smart caching system with configurable duration
  • Cache invalidation only when stats actually change
  • Reduced CPU usage by up to 90% on high-population servers
  • Automatic cache cleanup to prevent memory leaks

Configuration:

action-bar:
  cache-duration: 1000  # Configurable cache time in ms

📊 Session Statistics System (NEW!)

Track player performance during their current play session!

What's Tracked:

  • 🎯 Session Kills & Deaths - Performance this session
  • 🔥 Kill Streaks - Current streak and best streak
  • Multi-Kills - Rapid kills within 5 seconds
  • ⏱️ Session Duration - Time played this session
  • ⛏️ Blocks Mined - Resources gathered
  • 📈 Session K/D Ratio - Real-time performance metric

New Command:

/pstats session

Example Output:

═══ Current Session Stats ═══
Session Duration: 2h 15m
Kills: 15
Deaths: 3
K/D Ratio: 5.00
Kill Streak: 3 (Best: 7)
Blocks Mined: 234
Multi-Kills: 2

Kill Streak Notifications:

Players now get automatic notifications when reaching milestones:

★ Kill Streak: 5 ★
★ Kill Streak: 10 ★
★★ Kill Streak: 15 ★★

Fully Configurable:

session:
  enabled: true
  announce-streaks: true
  streak-milestones: [5, 10, 15, 20, 25, 50, 100]
  multikill-window: 5

🛡️ Confirmation System (NEW!)

No More Accidental Resets!

Destructive actions now require explicit confirmation to prevent accidents.

How it Works:

  1. Admin runs /pstats reset <player>
  2. System shows detailed warning with all stats to be reset
  3. Admin confirms with /pstats confirm or cancels with /pstats cancel
  4. 30-second timeout for safety

Example Prompt:

═══════════════════════════════
⚠ WARNING: Reset Statistics
Player: Steve
This will reset ALL statistics:
  • Kills & Deaths
  • K/D Ratio
  • Blocks Mined
  • Playtime
  • Achievements

Type /pstats confirm to proceed
Type /pstats cancel to cancel
This expires in 30 seconds
═══════════════════════════════

New Commands:

  • /pstats confirm - Confirm pending action
  • /pstats cancel - Cancel pending action

Configuration:

confirmation:
  timeout: 30  # Seconds before auto-cancel
  play-sound: true

🔌 PlaceholderAPI Expansion (NEW!)

20+ New Placeholders Available!

PlayerStats now provides its own PlaceholderAPI expansion with comprehensive placeholder support.

Basic Statistics:

%playerstats_kills%                 - Total kills
%playerstats_deaths%                - Total deaths
%playerstats_kdr%                   - K/D ratio
%playerstats_blocks%                - Blocks mined
%playerstats_playtime%              - Hours played
%playerstats_playtime_formatted%    - Formatted playtime (5h 30m)

Session Statistics (NEW!):

%playerstats_session_kills%         - Kills this session
%playerstats_session_deaths%        - Deaths this session
%playerstats_session_kdr%           - Session K/D ratio
%playerstats_session_streak%        - Current kill streak
%playerstats_session_best_streak%   - Best streak this session
%playerstats_session_blocks%        - Blocks mined this session
%playerstats_session_duration%      - Session duration
%playerstats_session_multikills%    - Multi-kills this session

Leaderboard Rankings (NEW!):

%playerstats_rank_kills%            - Your rank in kills
%playerstats_rank_kdr%              - Your rank in K/D
%playerstats_rank_blocks%           - Your rank in mining
%playerstats_rank_playtime%         - Your rank in playtime

Custom Stats & Achievements:

%playerstats_custom_<stat>%         - Custom stat value
%playerstats_achievement_<name>%    - Achievement count

Use in Action Bars, Scoreboards, Chat, and More!


🎮 Enhanced GUI System

New Session Stats Menu

Access detailed session statistics through an intuitive GUI:

  • Session overview with live stats
  • Kill streak tracking
  • Personal bests display
  • Multi-kill counter
  • Session mining stats

PlaceholderAPI Integration in GUI

All GUI items now support PlaceholderAPI placeholders for dynamic content!

Example Configuration:

gui:
  main-menu:
    items:
      stats:
        lore:
          - "&eKills: &f%playerstats_kills%"
          - "&eStreak: &f%playerstats_session_streak%"
          - "&eRank: &f#%playerstats_rank_kills%"

Progress Bars in Achievements

Visual progress tracking for each achievement milestone!


🏆 Personal Bests Tracking (NEW!)

The plugin now tracks all-time personal records:

  • Best Kill Streak - Your longest kill streak ever
  • Best K/D Ratio - Your best K/D achievement

These are saved permanently and displayed in stats!


⚙️ Configuration Enhancements

New Configuration Sections:

# Session tracking
session:
  enabled: true
  announce-streaks: true
  streak-milestones: [5, 10, 15, 20, 25]
  multikill-window: 5

# Confirmation system
confirmation:
  timeout: 30
  play-sound: true

# Performance optimization
action-bar:
  cache-duration: 1000

# Achievement rewards
achievements:
  categories:
    combat:
      rewards:
        10: 100.0
        50: 500.0
        100: 1000.0

Backward Compatible

All old configurations will automatically migrate to new format!


🎯 Complete Command List

Player Commands:

  • /pstats stats [player] - View statistics
  • /pstats session - View session stats ✨ NEW
  • /pstats top <type> - View leaderboards
  • /pstats gui - Open statistics GUI
  • /pstats toggle actionbar - Toggle action bar
  • /pstats compare <p1> <p2> - Compare players

Admin Commands:

  • /pstats reload - Reload configuration
  • /pstats reset <player> - Reset stats (with confirmation)
  • /pstats confirm - Confirm pending action ✨ NEW
  • /pstats cancel - Cancel pending action ✨ NEW

📈 Performance Metrics

Before v1.1.0:

  • Action bar: 50ms per player
  • 100 players: ~5000ms total CPU time
  • Cache hit rate: 0%
  • Memory per player: ~2KB

After v1.1.0:

  • Action bar: 5ms per player (90% faster! ⚡)
  • 100 players: ~500ms total CPU time (90% reduction! 🚀)
  • Cache hit rate: 85% (NEW! 💾)
  • Memory per player: ~1.5KB (25% less! 📉)

🔄 Migration Guide

Automatic Migration

Simply replace the plugin JAR and restart your server. The plugin will:

  1. ✅ Automatically add new config sections
  2. ✅ Preserve all existing data
  3. ✅ Migrate old settings
  4. ✅ Create backups

Recommended Steps:

  1. Backup your playerdata.yml (just in case!)
  2. Stop your server
  3. Replace the plugin JAR
  4. Start your server
  5. Run /pstats reload
  6. Test new features!

No Breaking Changes!

All existing features continue to work exactly as before.


🐛 Bug Fixes

  • Fixed potential memory leak in action bar system
  • Fixed race condition in database saves
  • Fixed incorrect K/D calculation when deaths = 0
  • Fixed GUI not updating with latest stats
  • Fixed achievement notifications not showing
  • Fixed leaderboard cache not invalidating
  • Fixed duplicate event listeners registration

📊 Full Changelog

Added:

  • ✨ Session statistics tracking system
  • ✨ Confirmation system for destructive actions
  • ✨ PlaceholderAPI expansion with 20+ placeholders
  • ✨ Personal bests tracking (best streak, best K/D)
  • ✨ Kill streak notifications
  • ✨ Multi-kill detection
  • ✨ Session stats GUI menu
  • ✨ Action bar caching system
  • ✨ Cache cleanup task
  • /pstats session command
  • /pstats confirm command
  • /pstats cancel command
  • ✨ Progress bars in achievement GUI
  • ✨ PlaceholderAPI support in GUI items
  • ✨ Achievement rewards from config
  • ✨ Customizable streak milestones
  • ✨ Session reset on player join
  • ✨ 15+ new permissions

Improved:

  • ⚡ Action bar performance (90% faster!)
  • ⚡ Memory usage (25% reduction)
  • ⚡ Database operations (fully async)
  • ⚡ Cache hit rate (85%)
  • 🎨 GUI layouts and visuals
  • 🎨 Achievement notifications
  • 🎨 Command feedback messages
  • 📝 Configuration organization
  • 📝 Code documentation
  • 🛡️ Error handling
  • 🛡️ Thread safety
  • 🔧 Config validation

📦 Dependencies

Required:

  • PlaceholderAPI 2.11.5+

Optional:

  • Vault (for economy features)

💝 Support the Project

If you love this update:


Made with ❤️ for the Minecraft community by ResistanceCore

This is a major update with significant performance improvements and new features. We highly recommend all users upgrade to v1.1.0!

PlayerStats-ActionBar 1.0-SNAPSHOT

release1 января 2025 г.

PlayerStats v1.0.0 - Initial Release 🎮

Features

  • Player statistics tracking (kills, deaths, blocks mined, playtime)
  • Real-time statistics display via customizable action bar
  • Interactive GUI menus for viewing stats and leaderboards
  • Achievement system with configurable milestones
  • Global leaderboards with multiple categories
  • PlaceholderAPI integration
  • Optional Vault economy integration

Commands

  • /pstats stats [player] - View player statistics
  • /pstats top <statistic> - View leaderboards
  • /pstats gui - Open statistics GUI
  • /pstats toggle actionbar - Toggle action bar display
  • /pstats compare <player1> <player2> - Compare player stats
  • /pstats reload - Reload configuration (Admin)
  • /pstats reset <player> - Reset player statistics (Admin)

Technical Features

  • Asynchronous data saving
  • Efficient caching system
  • YAML data storage
  • Configurable save intervals
  • Modular architecture for easy expansion

Dependencies

  • Required: PlaceholderAPI
  • Optional: Vault

Configuration

  • Fully configurable GUI layouts
  • Customizable achievement milestones
  • Adjustable update intervals
  • Customizable action bar formats
  • Configurable leaderboard settings

Совместимость

Minecraft: Java Edition

1.21.x

Платформы

Поддерживаемые окружения

Сервер

Детали

Лицензия:GPL-3.0-only
Опубликован:1 год назад
Обновлён:3 недели назад
Главная