Fix missing features and improve code quality
Features fixed: - Added chat filter functionality (block/warn/censor modes) - Fixed spy command to monitor all chat messages - Added proper spy notifications for global/local chat Code quality improvements: - Created PlayerUtil to eliminate code duplication in player lookup - Refactored ChatListener into smaller, focused methods - Added Constants class to replace magic numbers - Improved SOLID principles compliance - Fixed all compilation warnings All features from README are now implemented and working.
This commit is contained in:
parent
4f7b792633
commit
e616667c78
20 changed files with 250 additions and 99 deletions
|
|
@ -154,7 +154,7 @@ public class ConfigManager {
|
|||
}
|
||||
|
||||
public int getLocalRadius() {
|
||||
return config.getInt("chat.local.radius", 100);
|
||||
return config.getInt("chat.local.radius", com.loki.lochat.utils.Constants.DEFAULT_LOCAL_RADIUS);
|
||||
}
|
||||
|
||||
public String getLocalPrefix() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue