mirror of
https://github.com/TotalFreedomMC/OpenInv.git
synced 2025-02-11 11:40:33 +00:00
Add brackets to avoid ambiguity
Java ignores indentation, which might cause headaches in the future.
This commit is contained in:
parent
bbacb04636
commit
67d0f927ed
1 changed files with 5 additions and 3 deletions
|
@ -80,11 +80,13 @@ public class PlayerDataManager implements IPlayerDataManager {
|
|||
OfflinePlayer[] offlinePlayers = Bukkit.getOfflinePlayers();
|
||||
for (OfflinePlayer player : offlinePlayers) {
|
||||
String name = player.getName();
|
||||
if (name == null)
|
||||
|
||||
if (name == null){
|
||||
continue;
|
||||
if (name.equalsIgnoreCase(search))
|
||||
}
|
||||
if (name.equalsIgnoreCase(search)){
|
||||
return player.getUniqueId();
|
||||
|
||||
}
|
||||
if (name.toLowerCase().startsWith(lowerSearch)) {
|
||||
int curDelta = name.length() - lowerSearch.length();
|
||||
if (curDelta < delta) {
|
||||
|
|
Loading…
Reference in a new issue