Skip to content

Commit

Permalink
fix fakeplayer spawn pos
Browse files Browse the repository at this point in the history
  • Loading branch information
MC-XiaoHei committed Aug 11, 2024
1 parent 71dcd90 commit 3f6b329
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions patches/server/0057-Implementation-Carpet-features.patch
Original file line number Diff line number Diff line change
Expand Up @@ -4702,10 +4702,10 @@ index 0000000000000000000000000000000000000000..ed445c468541c6c7f9198cca3b64f642
+}
diff --git a/src/main/java/org/leavesmc/lumina/carpet/command/PlayerCommand.java b/src/main/java/org/leavesmc/lumina/carpet/command/PlayerCommand.java
new file mode 100644
index 0000000000000000000000000000000000000000..6d784f4e5069b6210670f8dc5cdd69085fb95036
index 0000000000000000000000000000000000000000..8cc6563cbc4eef92bc1c37f583ae041a5f46a475
--- /dev/null
+++ b/src/main/java/org/leavesmc/lumina/carpet/command/PlayerCommand.java
@@ -0,0 +1,487 @@
@@ -0,0 +1,488 @@
+package org.leavesmc.lumina.carpet.command;
+
+import com.mojang.authlib.GameProfile;
Expand Down Expand Up @@ -4905,6 +4905,7 @@ index 0000000000000000000000000000000000000000..6d784f4e5069b6210670f8dc5cdd6908
+ sender.sendMessage(text("Need position to spawn player in console").color(RED));
+ return;
+ }
+ pos.setWorld(world);
+ GameMode nullableGameMode = (GameMode) args.get("gamemode");
+ if (nullableGameMode != null) {
+ mode = GameType.byId(nullableGameMode.getValue());
Expand Down

0 comments on commit 3f6b329

Please sign in to comment.