File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
src/main/java/net/azisaba/afnw/afnwcore2 Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 2020import net .azisaba .afnw .afnwcore2 .listeners .player .FirstPlayerJoinListener ;
2121import net .azisaba .afnw .afnwcore2 .listeners .player .JoinListener ;
2222import net .azisaba .afnw .afnwcore2 .listeners .player .QuitListener ;
23+ import net .azisaba .afnw .afnwcore2 .listeners .player .RespawnNether ;
2324import net .azisaba .afnw .afnwcore2 .util .data .PlayerData ;
2425import net .azisaba .afnw .afnwcore2 .util .data .PlayerDataSave ;
2526import org .bukkit .Bukkit ;
@@ -61,6 +62,7 @@ public void onEnable() {
6162 pluginEvent .registerEvents (new DeathListener (), this );
6263 pluginEvent .registerEvents (new FirstPlayerJoinListener (this , data ), this );
6364 pluginEvent .registerEvents (new AFKListener (this ), this );
65+ pluginEvent .registerEvents (new RespawnNether (this ), this );
6466 /* エンティティリスナー */
6567 pluginEvent .registerEvents (new WitherSpawn (this ), this );
6668 getLogger ().info ("Listener 設定完了" );
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public void onRespawn(PlayerRespawnEvent e) {
2828 if (lobby == null ) {
2929 throw new NullPointerException ("Lobby World could not be found" );
3030 }
31- p . teleport (lobby .getSpawnLocation ());
31+ e . setRespawnLocation (lobby .getSpawnLocation ());
3232 } else {
3333 e .setRespawnLocation (respawn );
3434 }
You can’t perform that action at this time.
0 commit comments