diff --git a/README.md b/README.md index 35cc332..c838428 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Vomit [![Build Status](https://travis-ci.com/pascal541/Vomit.svg?branch=master)](https://travis-ci.com/pascal541/Vomit) +# To view the updated code, switch over to the `latest` branch. ## Introduction: This is a simple minecraft bukkit plugin that lets players puke once they leave a minecart. There are a few things that you can configure (see config file). If you discover any bugs, errors or if you want a function to be added, please let me know. diff --git a/pom.xml b/pom.xml index 2e17ab1..9971395 100644 --- a/pom.xml +++ b/pom.xml @@ -61,7 +61,7 @@ org.spigotmc spigot-api - 1.15.1-R0.1-SNAPSHOT + 1.21.4-R0.1-SNAPSHOT provided diff --git a/src/main/java/me/gon_bao/vomit/VehicleExit.java b/src/main/java/me/gon_bao/vomit/VehicleExit.java index 3aad313..3aafa38 100644 --- a/src/main/java/me/gon_bao/vomit/VehicleExit.java +++ b/src/main/java/me/gon_bao/vomit/VehicleExit.java @@ -28,8 +28,8 @@ public void onVehicleExit(VehicleExitEvent event) { player.sendMessage(ChatColor.translateAlternateColorCodes('&', Main.message)); } - player.addPotionEffect(new PotionEffect(PotionEffectType.CONFUSION, ticks + 80, 0)); - player.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, ticks, 4)); + player.addPotionEffect(new PotionEffect(PotionEffectType.NAUSEA, ticks + 80, 0)); + player.addPotionEffect(new PotionEffect(PotionEffectType.SLOWNESS, ticks, 4)); VomitTimer.active.add(player); } diff --git a/src/main/java/me/gon_bao/vomit/VomitTimer.java b/src/main/java/me/gon_bao/vomit/VomitTimer.java index 2850400..ec17928 100644 --- a/src/main/java/me/gon_bao/vomit/VomitTimer.java +++ b/src/main/java/me/gon_bao/vomit/VomitTimer.java @@ -13,7 +13,7 @@ class VomitTimer { static ArrayList active = new ArrayList<>(); - private static HashMap ticks = new HashMap<>(); + private static final HashMap ticks = new HashMap<>(); static void startTimer() { Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(Main.getPlugin(), () -> { @@ -38,7 +38,7 @@ static void startTimer() { } Location playerLocation = player.getLocation(); Location spawnParticleLocation = new Location(playerLocation.getWorld(), playerLocation.getX(), playerLocation.getY() + 1.5, playerLocation.getZ()); - player.getWorld().spawnParticle(Particle.SLIME, spawnParticleLocation, 50); + player.getWorld().spawnParticle(Particle.ITEM_SLIME, spawnParticleLocation, 50); } }, 0, 0); }