mirror of
https://github.com/hyperdefined/ToolStats.git
synced 2025-12-08 21:54:58 +00:00
gamemode check
This commit is contained in:
@@ -47,8 +47,7 @@ public class BlocksMined implements Listener {
|
||||
return;
|
||||
}
|
||||
Player player = event.getPlayer();
|
||||
// ignore creative mode
|
||||
if (player.getGameMode() != GameMode.SURVIVAL) {
|
||||
if (player.getGameMode() == GameMode.CREATIVE || player.getGameMode() == GameMode.SPECTATOR) {
|
||||
return;
|
||||
}
|
||||
// if the player mines something with their fist
|
||||
|
||||
Reference in New Issue
Block a user