Skip to content
This repository has been archived by the owner on Apr 7, 2023. It is now read-only.

Commit

Permalink
Fixed timer issue and set effect to speed 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackoutburst committed Sep 18, 2021
1 parent f33a028 commit b44494a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/blackout/quake/core/Core.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public class Core {

public static void startGame() {
Main.gameRunning = true;
Main.gameTime = 0;

ItemStack gun = new ItemStack(Material.IRON_HOE);
ItemMeta gunMeta = gun.getItemMeta();
Expand All @@ -34,7 +35,7 @@ public static void startGame() {

for (QuakePlayer p : Main.players) {
p.getPlayer().getInventory().setItem(0, gun);
p.getPlayer().addPotionEffect(new PotionEffect(PotionEffectType.SPEED, 100000, 3, false, false));
p.getPlayer().addPotionEffect(new PotionEffect(PotionEffectType.SPEED, 100000, 1, false, false));
teleportToRespawn(p.getPlayer());
p.cooldown = RailGun.FIRE_DELAY;
}
Expand Down

0 comments on commit b44494a

Please sign in to comment.