Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-29 01:20:15 +01:00
Merge branch 'master' into dev
# Conflicts: # bukkit-legacy/pom.xml # bukkit/pom.xml # bungee/pom.xml # common/pom.xml # fabric/pom.xml # jar/pom.xml # pom.xml # sponge-legacy/pom.xml # sponge/pom.xml # velocity/pom.xml
Dieser Commit ist enthalten in:
Commit
4355f8987f
@ -28,6 +28,7 @@ import us.myles.ViaVersion.util.GsonUtil;
|
|||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
|
import java.util.Collection;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
@ -126,9 +127,10 @@ public class BungeePlugin extends Plugin implements ViaPlatform<ProxiedPlayer>,
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ViaCommandSender[] getOnlinePlayers() {
|
public ViaCommandSender[] getOnlinePlayers() {
|
||||||
ViaCommandSender[] array = new ViaCommandSender[getProxy().getPlayers().size()];
|
Collection<ProxiedPlayer> players = getProxy().getPlayers();
|
||||||
|
ViaCommandSender[] array = new ViaCommandSender[players.size()];
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for (ProxiedPlayer player : getProxy().getPlayers()) {
|
for (ProxiedPlayer player : players) {
|
||||||
array[i++] = new BungeeCommandSender(player);
|
array[i++] = new BungeeCommandSender(player);
|
||||||
}
|
}
|
||||||
return array;
|
return array;
|
||||||
|
@ -210,7 +210,7 @@ public class Protocol1_13To1_12_2 extends Protocol<ClientboundPackets1_12_1, Cli
|
|||||||
} else {
|
} else {
|
||||||
Via.getPlatform().getLogger().warning("Could not find 1.13 -> 1.12.2 statistic mapping for " + name);
|
Via.getPlatform().getLogger().warning("Could not find 1.13 -> 1.12.2 statistic mapping for " + name);
|
||||||
}
|
}
|
||||||
} else {
|
} else if (split.length > 2) {
|
||||||
String category = split[1];
|
String category = split[1];
|
||||||
//TODO convert string ids (blocks, items, entities)
|
//TODO convert string ids (blocks, items, entities)
|
||||||
switch (category) {
|
switch (category) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren