Skip to content
This repository has been archived by the owner on Jul 16, 2021. It is now read-only.

Commit

Permalink
make block potion not effect creative users
Browse files Browse the repository at this point in the history
  • Loading branch information
HeathLoganCampbell committed Nov 9, 2019
1 parent 4ac878c commit 67aaa5c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package games.bevs.minecraftbut.senerario.senerarios;

import org.bukkit.GameMode;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.block.BlockBreakEvent;
Expand Down Expand Up @@ -59,6 +60,7 @@ public void applyPotion(Player player)
public void onBreak(BlockBreakEvent e)
{
Player player = e.getPlayer();
if(player.getGameMode() == GameMode.CREATIVE) return;
this.applyPotion(player);
}
}

0 comments on commit 67aaa5c

Please sign in to comment.