mirror of
https://github.com/kaboomserver/weapons.git
synced 2024-06-01 01:41:23 +00:00
Rollback to 1.12.2 for now
This commit is contained in:
parent
1e116190b2
commit
227ada0bcc
2
pom.xml
2
pom.xml
|
@ -8,7 +8,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.destroystokyo.paper</groupId>
|
<groupId>com.destroystokyo.paper</groupId>
|
||||||
<artifactId>paper-api</artifactId>
|
<artifactId>paper-api</artifactId>
|
||||||
<version>1.13-R0.1-SNAPSHOT</version>
|
<version>1.12.2-R0.1-SNAPSHOT</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
|
|
@ -85,7 +85,7 @@ public class Main extends JavaPlugin implements Listener {
|
||||||
world.playSound(playerPos, Sound.ENTITY_GHAST_SHOOT, 0.9F, 1.5F);
|
world.playSound(playerPos, Sound.ENTITY_GHAST_SHOOT, 0.9F, 1.5F);
|
||||||
world.playSound(playerPos, Sound.ENTITY_BAT_TAKEOFF, 0.8F, 2.0F);
|
world.playSound(playerPos, Sound.ENTITY_BAT_TAKEOFF, 0.8F, 2.0F);
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
} else if (item == Material.IRON_HORSE_ARMOR && name.equals("§Sniper")) {
|
} else if (item == Material.IRON_BARDING && name.equals("§Sniper")) {
|
||||||
Location projectilePos = new Location(world, playerPos.getX(), playerPos.getY() + 1.5, playerPos.getZ());
|
Location projectilePos = new Location(world, playerPos.getX(), playerPos.getY() + 1.5, playerPos.getZ());
|
||||||
Projectile projectile = (Projectile) world.spawnEntity(projectilePos, EntityType.SNOWBALL);
|
Projectile projectile = (Projectile) world.spawnEntity(projectilePos, EntityType.SNOWBALL);
|
||||||
projectile.setShooter(player);
|
projectile.setShooter(player);
|
||||||
|
@ -94,7 +94,7 @@ public class Main extends JavaPlugin implements Listener {
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
}
|
}
|
||||||
} else if (action == Action.RIGHT_CLICK_AIR || action == Action.RIGHT_CLICK_BLOCK) {
|
} else if (action == Action.RIGHT_CLICK_AIR || action == Action.RIGHT_CLICK_BLOCK) {
|
||||||
if (item == Material.IRON_HORSE_ARMOR && name.equals("§rSniper")) {
|
if (item == Material.IRON_BARDING && name.equals("§rSniper")) {
|
||||||
if (player.hasPotionEffect(PotionEffectType.SLOW)) {
|
if (player.hasPotionEffect(PotionEffectType.SLOW)) {
|
||||||
player.removePotionEffect(PotionEffectType.SLOW);
|
player.removePotionEffect(PotionEffectType.SLOW);
|
||||||
} else {
|
} else {
|
||||||
|
@ -123,7 +123,7 @@ class CommandWeapons implements CommandExecutor {
|
||||||
addWeapon(inventory, Material.ANVIL, "§rAnvil Dropper");
|
addWeapon(inventory, Material.ANVIL, "§rAnvil Dropper");
|
||||||
addWeapon(inventory, Material.STICK, "§rLightning Stick");
|
addWeapon(inventory, Material.STICK, "§rLightning Stick");
|
||||||
addWeapon(inventory, Material.BLAZE_ROD, "§rNuker");
|
addWeapon(inventory, Material.BLAZE_ROD, "§rNuker");
|
||||||
addWeapon(inventory, Material.IRON_HORSE_ARMOR, "§rSniper");
|
addWeapon(inventory, Material.IRON_BARDING, "§rSniper");
|
||||||
player.openInventory(inventory);
|
player.openInventory(inventory);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
name: Weapons
|
name: Weapons
|
||||||
main: pw.kaboom.weapons.Main
|
main: pw.kaboom.weapons.Main
|
||||||
description: Plugin that implements various kinds of weapons.
|
description: Plugin that implements various kinds of weapons.
|
||||||
api-version: 1.13
|
version: master
|
||||||
version: ${project.version}
|
|
||||||
|
|
||||||
commands:
|
commands:
|
||||||
weapons:
|
weapons:
|
||||||
|
|
Loading…
Reference in a new issue