
HTGLoggers
Logs player commands, chat, join, leave events, and offers API for custom log management.
Автор: tojawg_063024712обновлён 27 окт. 2024 г.
Технологии
Описание
PLUGIN NIE BĘDZIE WSPIERANY
Publiczne Pluginy w SIECI:
Dokumentacja
Właśnie otworzyliśmy dokumentacje dla naszego plugina zapraszam na strone HTG Docs na temat HTGLoggers.
HTGLoggers
HTGLoggers to potężny i łatwy w użyciu plugin do logowania dla serwerów Spigot, idealny dla administratorów, którzy potrzebują szczegółowych zapisów aktywności graczy i wydarzeń na serwerze.
Funkcje
- Logowanie dołączenia/wyjścia graczy: Automatyczne rejestrowanie, gdy gracze dołączają lub opuszczają serwer.
- Logowanie czatu i komend: Rejestruje wszystkie wiadomości na czacie i używane komendy, ułatwiając monitorowanie.
- Dostosowywalne formaty logów: Możliwość konfigurowania formatu logów, w tym znaczniki czasu i style wiadomości.
- Łatwa integracja: Bezproblemowo współpracuje z innymi pluginami, takimi jak HTGClient, dla lepszego zarządzania zdarzeniami.
- Lekki i wydajny: Optymalizowany pod kątem wydajności, zapewnia minimalny wpływ na działanie serwera.
- API do zarządzania plikami: Oferuje API do tworzenia plików logów i bezpośredniego wysyłania logów do tych plików.
Konfiguracja
Łatwo kontroluj, które wydarzenia są logowane i jak się pojawiają w pliku config.yml:
logging:
enabled: true # Czy logowanie jest włączone
format:
timestamp_format: "yyyy-MM-dd HH:mm:ss" # Format znacznika czasu
join_format: "[{time}] Player joined: {player}"
quit_format: "[{time}] Player left: {player}"
chat_format: "[{time}] Chat - {player}: {message}"
command_format: "[{time}] Command - {player}: {command}"
teleport_format: "[{time}] Teleport - {player} to {location}" # Nowy format logowania teleportacji
advancement_format: "[{time}] Advancement - {player}: {advancement}" # Nowy format logowania osiągnięcia
block_break_format: "[{time}] Block Break - {player}: {block}" # Nowy format logowania niszczenia bloków
events:
log_join: true # Loguj dołączenia graczy
log_quit: true # Loguj wyjścia graczy
log_chat: true # Loguj wiadomości na czacie
log_commands: true # Loguj użycie komend
log_teleport: true # Loguj teleportacje graczy
log_advancement: true # Loguj zdobycie osiągnięcia przez graczy
log_block_break: true # Loguj niszczenie bloków przez graczy
Aby uzyskać więcej szczegółów, odwiedź HTGLogger Wikipedia i HTG Docs na temat HTGLoggers.
Последние версии
Все версии →release
HTGLoggers 2.1.3.1-release
2.1.3.1-release27 окт. 2024 г.99Minecraft: 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6bukkit, paper, purpur, spigot
Что нового
## Removed Features
- **API V2:** The functionality for displaying the plugin in the list of supported plugins on the GUI has been removed.
release
HTGLoggers 2.1.2.0-release
2.1.2.0-release27 окт. 2024 г.88Minecraft: 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21bukkit, paper, purpur, spigot
Что нового
## HTGLoggers - Version 2.1.2.0-release
**Additions:**
- Added version update checking using a **version.json** file hosted on GitHub.
- Support for automatic update checking to verify if the plugin is up-to-date via the version.json file.
**Fixes:**
- Improved stability of default plugin features, fixed exception handling, and enhanced log messages.
**Upgrades:**
- Enhanced console logs with more readable...
release
HTGLoggers 2.1.1.0-release
2.1.1.0-release27 окт. 2024 г.40Minecraft: 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21bukkit, paper, purpur, spigot
Что нового
## Version 2.1.1.0-release Summary
**New Features and Changes:**
- **Version Check:** Implementation of a feature to check whether a new version of the plugin is available.
**Repairs:**
- **Default Functions Fixed:** Resolved issues with the default functions of the plugin.
**Upgrades:**
- **Console Log Upgrade:** Improved styling of console logs to enhance readability.
release
HTGLoggers (Public API) 2.1.0.0-release
2.1.0.0-release22 сент. 2024 г.89Minecraft: 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6bukkit, paper, purpur, spigot
Что нового
# Update Description for HTGLoggers 2.1.0.0
**Version:** 2.1.0.0
**Release Date:** 21.09.2024
## What’s New:
1. **API Initialization:**
- Introduced a new `initialize` method in the `HTGLoggersAPI` class to allow other plugins to utilize logging features.
2. **Log File Creation:**
- Added the `createLogFile` method for automatic log file creation for specified plugins.
3. **File Logging:**
- Introduced a new `logToFile` method that allows logging messages to a log file in append mode.
4. **Usage Examples:**
- Included code examples for API initialization and logging messages to files in the documentation.
## Fixes:
1. **API Initialization Errors:**
- Improved the initialization mechanism to prevent conflicts and incorrect logging, especially with incompatible plugin versions.
2. **Error Logging:**
- Enhanced error messages for failed log file creation attempts.
## Removed:
1. **Old Logging Methods:**
- Deprecated logging methods have been removed to streamline the API and improve readability.
## Upcoming:
- An update to the wiki documentation will be released soon, providing detailed information on the new features and usage guidelines. [Wikipedia](https://github.com/WaleonGames/htgloggers/wiki)
**Note:** Ensure you are using version 2.1.0.0 or higher to take full advantage of the new API and logging features.
beta
HTGLoggers (Public API) 2.0.4.1-prelease
2.0.4.1-prelease22 сент. 2024 г.51Minecraft: 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6bukkit, paper, purpur, spigot
Что нового
Update Code
<details>
<summary>Spoiler</summary>
**not required**
</details>
beta
HTGLoggers (Public API) 2.0.4-prelease
2.0.4-prelease22 сент. 2024 г.52Minecraft: 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6bukkit, paper, purpur, spigot
Что нового
# Changelog for version 2.0.4
## Fixed:
1. **API Initialization**:
- Added additional validation during API initialization. `HTGLoggersAPI` now checks if it has already been initialized and throws an `IllegalStateException` in case of a reinitialization attempt. Instead of a warning logged in the console, improper reinitialization now results in an exception.
2. **Handling Empty Plugin Names**:
- Fixed an issue where empty or null plugin names could be passed to the `createLogFile` method. The method now validates the `pluginName` parameter and logs an error if the name is invalid.
## Added:
1. **Enhanced Exception Handling**:
- Implemented detailed exception handling when creating log files. Any errors related to folder or file creation are now logged at the `SEVERE` level, including the full stack trace.
2. **Expanded Parameter Validation**:
- Added validation for the plugin name in the `createLogFile` method. The method now checks if the plugin name is neither empty nor null before attempting to create a log file.
## Removed:
1. **Unnecessary API Reinitialization Warning**:
- Removed the logic that warned about API reinitialization and replaced it with an exception. This prevents potential errors in the future.
beta
🆙 Update v2.0.3.1 - Pom.xml Update
2.0.3.1-prelease22 сент. 2024 г.52Minecraft: 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6bukkit, paper, purpur, spigot
Что нового
Pom.xml Update
<details>
<summary>Spoiler</summary>
**not required**
</details>