mirror of
https://github.com/songoda/UltimateStacker.git
synced 2025-01-03 22:37:41 +01:00
Blacklisting players on loot editing.
This commit is contained in:
parent
4208464ccf
commit
267bcd94e7
@ -4,7 +4,7 @@ stages:
|
||||
variables:
|
||||
name: "UltimateStacker"
|
||||
path: "/builds/$CI_PROJECT_PATH"
|
||||
version: "1.8.1"
|
||||
version: "1.8.2"
|
||||
|
||||
build:
|
||||
stage: build
|
||||
|
@ -4,6 +4,7 @@ import com.songoda.lootables.loot.Drop;
|
||||
import com.songoda.ultimatestacker.UltimateStacker;
|
||||
import com.songoda.ultimatestacker.utils.Methods;
|
||||
import com.songoda.ultimatestacker.utils.settings.Setting;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.EventPriority;
|
||||
import org.bukkit.event.Listener;
|
||||
@ -23,6 +24,8 @@ public class DeathListeners implements Listener {
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true)
|
||||
public void onEntityDeath(EntityDeathEvent event) {
|
||||
if (event.getEntity() instanceof Player) return;
|
||||
|
||||
List<Drop> drops = instance.getLootablesManager().getDrops(event.getEntity());
|
||||
|
||||
boolean custom = false;
|
||||
|
Loading…
Reference in New Issue
Block a user