Commit 31bf94f
committed
Fix offline player teleportation bug
BUG FIX: Players who leave while jailed and rejoin after sentence expires
- Previously: Players were stuck in jail location after rejoining
- Root cause: Auto-release timer was removing offline players from jailed list
- Fix: Only release online players immediately, keep offline players in list
- Result: PlayerEventHandler now properly teleports offline players back to original location when they rejoin
This ensures players are ALWAYS teleported back to their original location when their sentence expires, regardless of whether they were online or offline during expiration.1 parent 5ff4312 commit 31bf94f
1 file changed
+3
-1
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
| 85 | + | |
84 | 86 | | |
85 | | - | |
| 87 | + | |
86 | 88 | | |
87 | 89 | | |
88 | 90 | | |
| |||
0 commit comments