Skip to content

Commit

Permalink
fix dedicated server trying to get LAN host
Browse files Browse the repository at this point in the history
  • Loading branch information
maxomatic458 committed Jul 23, 2023
1 parent bebd622 commit 8daaa9c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public void run() {
if (code != null) {
var playerList = playitForge.server.getPlayerList();
for (ServerPlayer player : playerList.getPlayers()) {
if (player.hasPermissions(3) || player.getUUID().equals(playitForge.server.getSingleplayerProfile().getId())) {
if (player.hasPermissions(3) || (!playitForge.server.isDedicatedServer() && player.getUUID().equals(playitForge.server.getSingleplayerProfile().getId()))) {
// clickable link
var url = "https://playit.gg/mc/" + code;
var msg = Component.literal("Click " + ChatColor.RED + "here" + ChatColor.RESET + " to setup your playit.gg tunnel")
Expand Down

0 comments on commit 8daaa9c

Please sign in to comment.