no pingrange bcs its trash asf
This commit is contained in:
parent
32cc960712
commit
ba30d4b518
@ -107,9 +107,10 @@ public class QueueManager {
|
||||
final QueueEntry queueEntry = this.queued.get(player.getUniqueId());
|
||||
|
||||
int eloRange = playerData.getEloRange();
|
||||
int pingRange = playerData.getPingRange();
|
||||
//int pingRange = playerData.getPingRange();
|
||||
int seconds = Math.round((float) (queueTime / 1000L));
|
||||
|
||||
/*
|
||||
if (seconds > 5) {
|
||||
if (seconds % 15 == 0) {
|
||||
pingRange += 20;
|
||||
@ -123,6 +124,8 @@ public class QueueManager {
|
||||
|
||||
playerData.setPingRange(pingRange);
|
||||
}
|
||||
|
||||
*/
|
||||
if (type.isRanked() && seconds % 10 == 0) {
|
||||
eloRange += 10;
|
||||
|
||||
@ -131,7 +134,7 @@ public class QueueManager {
|
||||
|
||||
playerData.setEloRange(eloRange);
|
||||
}
|
||||
}
|
||||
// }
|
||||
|
||||
for (UUID opponent : this.queued.keySet()) {
|
||||
String playerFoundMatchMessage, matchedFoundMatchMessage;
|
||||
@ -154,10 +157,6 @@ public class QueueManager {
|
||||
continue;
|
||||
if (eloDiff > opponentData.getEloRange())
|
||||
continue;
|
||||
int pingDiff = Math.abs(opponentQueueEntry.getPing() - queueEntry.getPing());
|
||||
|
||||
if (playerData.getPingRange() != -1 && pingDiff > playerData.getPingRange())
|
||||
continue;
|
||||
}
|
||||
|
||||
Kit kit = this.plugin.getKitManager().getKit(kitName);
|
||||
|
Loading…
Reference in New Issue
Block a user