Skip to content

Commit

Permalink
Removed the search addresses sub-command.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmccoystephenson committed Jul 4, 2022
1 parent 949de70 commit 917ea70
Showing 1 changed file with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,11 @@ public void showInfo(CommandSender sender, String[] args) {

if (args[0].equalsIgnoreCase("probable")) {
listProbable(player);
return;
}

if (args[0].equalsIgnoreCase("addresses")) {
listAddresses(player);
}

}
else {
player.sendMessage(ChatColor.RED + "Usage: /aaflist [suspected | probable | addresses]");
player.sendMessage(ChatColor.RED + "Usage: /aaflist [suspected | probable ]");
}
}
else {
Expand Down Expand Up @@ -78,10 +73,4 @@ public void listProbable(Player player) {
}
}

public void listAddresses(Player player) {
for (InternetAddressRecord record : persistentData.getInternetAddressRecords()) {
player.sendMessage(ChatColor.AQUA + "" + record.getIP().toString().substring(1));
}
}

}

0 comments on commit 917ea70

Please sign in to comment.