Skip to content

Commit c9d12b2

Browse files
committed
加点小东西
1 parent 0174827 commit c9d12b2

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/main/java/top/mpt/xzystudio/flywars/game/Game.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,12 @@ public void run() {
142142
HashMap<Player, TeammateType> map = gameTeam.players;
143143
// 遍历一个team的两名玩家的数组
144144
for (Player p : Arrays.asList(p1, p2)) {
145+
// Location loc = new Location(pl.getWorld(),
146+
// (Integer) ConfigUtils.getConfig("start-x", 0),
147+
// (Integer) ConfigUtils.getConfig("start-y", 0),
148+
// (Integer) ConfigUtils.getConfig("start-z", 0));
145149
// 将玩家TP到腐竹指定的场所
146-
Location loc = new Location(pl.getWorld(),
147-
(Integer) ConfigUtils.getConfig("start-x", 0),
148-
(Integer) ConfigUtils.getConfig("start-y", 0),
149-
(Integer) ConfigUtils.getConfig("start-z", 0));
150-
p.teleport(loc); // tp
150+
p.teleport(pl.getLocation()); // tp
151151
gameTeam.ride(); // 骑
152152
// 向玩家展示信息
153153
PlayerUtils.send(p, "[FlyWars] 你是 %s, 你的队友是 <%s>", gameTeam.getTeamDisplayName() ,gameTeam.getTheOtherPlayer(p).getName());

src/main/java/top/mpt/xzystudio/flywars/game/scoreboard/ScoreboardManager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package top.mpt.xzystudio.flywars.game.scoreboard;
22

33
import fr.mrmicky.fastboard.FastBoard;
4+
import org.bukkit.Bukkit;
45
import org.bukkit.entity.Player;
56
import org.bukkit.scoreboard.Team;
67
import top.mpt.xzystudio.flywars.game.Game;

0 commit comments

Comments
 (0)