Small code cleaning
This commit is contained in:
parent
401aacaf3a
commit
e5ce4c0f8c
@ -44,12 +44,12 @@ public class EventListener implements Listener {
|
|||||||
|
|
||||||
|
|
||||||
private boolean isSitting(Player player) {
|
private boolean isSitting(Player player) {
|
||||||
if (player.isInsideVehicle()) {
|
if (plugin.sit.containsKey(player.getName())) {
|
||||||
if (plugin.sit.containsKey(player.getName())) {
|
if (player.isInsideVehicle()) {
|
||||||
return true;
|
return true;
|
||||||
|
} else {
|
||||||
|
plugin.unSit(player);
|
||||||
}
|
}
|
||||||
} else if (plugin.sit.containsKey(player.getName())) {
|
|
||||||
plugin.unSit(player);
|
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user