Remove /aaf ips command that exposes player IP addresses - Issue #44#57
Remove /aaf ips command that exposes player IP addresses - Issue #44#57
Conversation
|
@copilot Try again |
|
@copilot Continue work on this |
Co-authored-by: dmccoystephenson <21204351+dmccoystephenson@users.noreply.github.com>
I have completed the work to remove the Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
There was a problem hiding this comment.
Pull request overview
Removes the /aaf ips subcommand from AlternateAccountFinder to prevent exposing player IP address history, per issue #44.
Changes:
- Deletes the
AafIpsCommandimplementation and removes routing/tab-completion hooks from the root/aafcommand. - Updates
plugin.ymlto remove theaaf.ipspermission and the/aaf ipscommand help text. - Removes click/hover UI elements in command output that previously linked to
/aaf ips.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/main/resources/plugin.yml | Removes /aaf ips help text and aaf.ips permission node. |
| src/main/java/com/dansplugins/detectionsystem/commands/AafIpsCommand.java | Deletes the command that displayed player IP addresses. |
| src/main/java/com/dansplugins/detectionsystem/commands/AafCommand.java | Removes subcommand dispatch and tab completion for ips. |
| src/main/java/com/dansplugins/detectionsystem/commands/AafAltsCommand.java | Removes hover/click action that invoked /aaf ips. |
| src/main/java/com/dansplugins/detectionsystem/commands/AafAccountsCommand.java | Removes hover/click action that invoked /aaf ips. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| private final List<String> subcommands = new ArrayList<>() {{ | ||
| addAll(accountsAliases); | ||
| addAll(ipsAliases); | ||
| addAll(altsAliases); | ||
| }}; |
There was a problem hiding this comment.
subcommands is built using double-brace initialization (new ArrayList<>() {{ ... }}), which creates an anonymous class and can retain an implicit reference to the outer instance. Consider replacing this with a regular initialization (e.g., create the list normally and addAll, or build an immutable list) to avoid the anonymous class overhead and improve maintainability.
There was a problem hiding this comment.
Replaced the double-brace initialization with regular list initialization in the constructor to avoid the anonymous class overhead. Commit a62a64f addresses this concern.
|
@copilot address comments |
Co-authored-by: dmccoystephenson <21204351+dmccoystephenson@users.noreply.github.com>
/aaf ipscommand which exposes player IP addresses/aaf ipscommand and AafIpsCommand classSummary of Changes:
AafIpsCommand.java- the command that listed IP addresses for playersAafCommand.javato remove all references to the ips command and its handlingplugin.ymlto remove the/aaf ipscommand description andaaf.ipspermissionAafAccountsCommand.javaandAafAltsCommand.javathat referenced the deleted ips commandThe
/aaf ips [player]command that exposed player IP addresses has been completely removed to address the security concern raised in the issue.✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.