From 30d7d200faa0f44713f3f6758d0a4a5ace7127c2 Mon Sep 17 00:00:00 2001 From: sspeedwagonn Date: Wed, 1 Jan 2025 01:13:49 -0600 Subject: [PATCH 1/2] Updated to 1.21.4 --- pom.xml | 2 +- src/main/java/me/gon_bao/vomit/VehicleExit.java | 4 ++-- src/main/java/me/gon_bao/vomit/VomitTimer.java | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) 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); } From c43cfcea831e3e880802c7eeea3b70abbb75fc01 Mon Sep 17 00:00:00 2001 From: sspeedwagonn <114622338+sspeedwagonn@users.noreply.github.com> Date: Sat, 4 Jan 2025 14:20:44 -0600 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.