Add player name auto-completion, Close #105

This commit is contained in:
William committed 2021-11-23 00:26:23 +00:00
1 parent 830a7443b9
commit 8a1cc15d1d
7 files changed
+58 -4

No files matched your search

@@ -93,6 +93,9 @@ public class Settings {
private boolean hideCommandsFromHelpMenuWithoutPermission;
private boolean hideHuskHomesCommandFromHelpMenu;
// Whether to autocomplete player names for tpa (e.g /tpa William will assume you mean /tpa William278)
private boolean autoCompletePlayerNames;
// RTP command settings
private boolean doRtpCommand;
private int rtpRange;
@@ -239,6 +242,8 @@ public class Settings {
this.warpRestrictionPermissionFormat = config.getString("warp_command.permission_restrictions.format", "huskhomes.warp.");
this.hideRestrictedWarps = config.getBoolean("warp_command.permission_restrictions.hide_restricted_warps", true);
this.autoCompletePlayerNames = config.getBoolean("general.auto_complete_player_names", false);
this.doRtpCommand = config.getBoolean("random_teleport_command.enabled", true);
this.rtpRange = config.getInt("random_teleport_command.range", 5000);
this.rtpCoolDown = config.getInt("random_teleport_command.cooldown", 30);
@@ -511,4 +516,8 @@ public class Settings {
public long getHikariConnectionTimeOut() {
return hikariConnectionTimeOut;
}
public boolean doAutoCompletePlayerNames() {
return autoCompletePlayerNames;
}
}