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());
|
final QueueEntry queueEntry = this.queued.get(player.getUniqueId());
|
||||||
|
|
||||||
int eloRange = playerData.getEloRange();
|
int eloRange = playerData.getEloRange();
|
||||||
int pingRange = playerData.getPingRange();
|
//int pingRange = playerData.getPingRange();
|
||||||
int seconds = Math.round((float) (queueTime / 1000L));
|
int seconds = Math.round((float) (queueTime / 1000L));
|
||||||
|
|
||||||
|
/*
|
||||||
if (seconds > 5) {
|
if (seconds > 5) {
|
||||||
if (seconds % 15 == 0) {
|
if (seconds % 15 == 0) {
|
||||||
pingRange += 20;
|
pingRange += 20;
|
||||||
|
@ -123,6 +124,8 @@ public class QueueManager {
|
||||||
|
|
||||||
playerData.setPingRange(pingRange);
|
playerData.setPingRange(pingRange);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
*/
|
||||||
if (type.isRanked() && seconds % 10 == 0) {
|
if (type.isRanked() && seconds % 10 == 0) {
|
||||||
eloRange += 10;
|
eloRange += 10;
|
||||||
|
|
||||||
|
@ -131,7 +134,7 @@ public class QueueManager {
|
||||||
|
|
||||||
playerData.setEloRange(eloRange);
|
playerData.setEloRange(eloRange);
|
||||||
}
|
}
|
||||||
}
|
// }
|
||||||
|
|
||||||
for (UUID opponent : this.queued.keySet()) {
|
for (UUID opponent : this.queued.keySet()) {
|
||||||
String playerFoundMatchMessage, matchedFoundMatchMessage;
|
String playerFoundMatchMessage, matchedFoundMatchMessage;
|
||||||
|
@ -154,10 +157,6 @@ public class QueueManager {
|
||||||
continue;
|
continue;
|
||||||
if (eloDiff > opponentData.getEloRange())
|
if (eloDiff > opponentData.getEloRange())
|
||||||
continue;
|
continue;
|
||||||
int pingDiff = Math.abs(opponentQueueEntry.getPing() - queueEntry.getPing());
|
|
||||||
|
|
||||||
if (playerData.getPingRange() != -1 && pingDiff > playerData.getPingRange())
|
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Kit kit = this.plugin.getKitManager().getKit(kitName);
|
Kit kit = this.plugin.getKitManager().getKit(kitName);
|
||||||
|
|
Loading…
Reference in New Issue