Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.15.1-R0.1-SNAPSHOT</version>
<version>1.21.4-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/me/gon_bao/vomit/VehicleExit.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/me/gon_bao/vomit/VomitTimer.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
class VomitTimer {

static ArrayList<Player> active = new ArrayList<>();
private static HashMap<Player, Integer> ticks = new HashMap<>();
private static final HashMap<Player, Integer> ticks = new HashMap<>();

static void startTimer() {
Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(Main.getPlugin(), () -> {
Expand All @@ -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);
}
Expand Down