@@ -93,7 +93,7 @@ public void onMove(PlayerMoveEvent e) {
9393 if (!ConfigManager .getConfig ().getStringList ("DisabledBlocks" ).isEmpty ()) {
9494 for (String blocks : ConfigManager .getConfig ().getStringList ("DisabledBlocks" )) {
9595 try {
96- if (p .getWorld ().getBlockAt (p .getLocation ().add (0 , -1 , 0 )).getType () == Material .valueOf (blocks .toUpperCase ())) {
96+ if (p .getWorld ().getBlockAt (p .getLocation ().add (0 , -1 , 0 )).getType () == Material .valueOf (blocks .toUpperCase ()) || p . getWorld (). getBlockAt ( p . getLocation ()). getType () == Material . valueOf ( blocks . toUpperCase ()) ) {
9797 Grounded .remove (p .getUniqueId ().toString ());
9898 return ;
9999 }
@@ -112,7 +112,7 @@ public void onMove(PlayerMoveEvent e) {
112112 return ;
113113 }
114114 if (!ConfigManager .getConfig ().getBoolean ("InfiniteJump.Enabled" ) || !p .hasPermission ("tdj.infinitejump" )) {
115- if (!p .isOnGround () || p .getWorld ().getBlockAt (p .getLocation ().add (0 , -1 , 0 )).getType () == Material .AIR ) {
115+ if (!p .isOnGround () || ( p .getWorld ().getBlockAt (p .getLocation ().add (0 , -1 , 0 )).getType () == Material .AIR && p . getWorld (). getBlockAt ( p . getLocation ()). getType () == Material . AIR ) ) {
116116 return ;
117117 }
118118
@@ -165,6 +165,7 @@ public void onMove(PlayerMoveEvent e) {
165165 if (!ConfigManager .getConfig ().getBoolean ("NoFall.Enabled" ))
166166 p .setEnableFallDamageWhileAllowFlight (true );
167167 } catch (NoSuchMethodError ignored ) {}
168+ Grounded .remove (p .getUniqueId ().toString ());
168169 }, 1L );
169170 } else {
170171 if (Bukkit .getPluginManager ().getPlugin ("NoCheatPlus" ) != null ) {
@@ -181,6 +182,7 @@ public void onMove(PlayerMoveEvent e) {
181182 if (!ConfigManager .getConfig ().getBoolean ("NoFall.Enabled" ))
182183 p .setEnableFallDamageWhileAllowFlight (true );
183184 } catch (NoSuchMethodError ignored ) {}
185+ Grounded .remove (p .getUniqueId ().toString ());
184186 return ;
185187 }
186188 NCPExemptionManager .exemptPermanently (p , CheckType .MOVING_SURVIVALFLY );
@@ -195,6 +197,7 @@ public void onMove(PlayerMoveEvent e) {
195197 if (!ConfigManager .getConfig ().getBoolean ("NoFall.Enabled" ))
196198 p .setEnableFallDamageWhileAllowFlight (true );
197199 } catch (NoSuchMethodError ignored ) {}
200+ Grounded .remove (p .getUniqueId ().toString ());
198201 NCP (p );
199202 }
200203 return ;
@@ -210,6 +213,7 @@ public void onMove(PlayerMoveEvent e) {
210213 if (!ConfigManager .getConfig ().getBoolean ("NoFall.Enabled" ))
211214 p .setEnableFallDamageWhileAllowFlight (true );
212215 } catch (NoSuchMethodError ignored ) {}
216+ Grounded .remove (p .getUniqueId ().toString ());
213217 }
214218
215219
@@ -361,6 +365,7 @@ public void run() {
361365 case "v1_16_R1" :
362366 case "v1_16_R2" :
363367 case "v1_16_R3" :
368+ case "v1_17_R1" :
364369 particles = new Particle_1_16_R3 ();
365370 break ;
366371 default :
0 commit comments