mirror of
https://github.com/darksaid98/Flashback.git
synced 2026-12-02 06:28:48 +00:00
Add Spectate button to Player List window
This commit is contained in:
1 parent
ed6b30ee64
commit
4e8ded512b
1 file changed
+6
-1
@@ -138,7 +138,7 @@ public class PlayerListWindow {
|
|||||||
|
|
||||||
ImGui.text(profile.getName());
|
ImGui.text(profile.getName());
|
||||||
ImGui.sameLine();
|
ImGui.sameLine();
|
||||||
if (ImGui.smallButton("Teleport")) {
|
if (ImGui.smallButton("TP")) {
|
||||||
Minecraft.getInstance().getConnection().sendUnsignedCommand("teleport " + profile.getId());
|
Minecraft.getInstance().getConnection().sendUnsignedCommand("teleport " + profile.getId());
|
||||||
lastUpdate = currentTime;
|
lastUpdate = currentTime;
|
||||||
}
|
}
|
||||||
@@ -154,6 +154,11 @@ public class PlayerListWindow {
|
|||||||
lastUpdate = currentTime;
|
lastUpdate = currentTime;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
ImGui.sameLine();
|
||||||
|
if (ImGui.smallButton("Spectate")) {
|
||||||
|
Minecraft.getInstance().getConnection().sendUnsignedCommand("spectate " + profile.getId());
|
||||||
|
lastUpdate = currentTime;
|
||||||
|
}
|
||||||
ImGui.popID();
|
ImGui.popID();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user