Fix an NPE reported in ticket-38.
Dieser Commit ist enthalten in:
Ursprung
bc1955bff3
Commit
dd3cd6c768
@ -427,7 +427,7 @@ public class SpigotPacketInjector implements SpigotPacketListener {
|
|||||||
void uninjectPlayer(Player player) {
|
void uninjectPlayer(Player player) {
|
||||||
final NetworkObjectInjector injector = getInjector(player);
|
final NetworkObjectInjector injector = getInjector(player);
|
||||||
|
|
||||||
if (player != null) {
|
if (player != null && injector != null) {
|
||||||
Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() {
|
Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren