diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0b8a40e --- /dev/null +++ b/.gitignore @@ -0,0 +1,56 @@ +### JetBrains template +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio + +*.iml + +## Directory-based project format: +.idea/ +# if you remove the above rule, at least ignore the following: + +# User-specific stuff: +# .idea/workspace.xml +# .idea/tasks.xml +# .idea/dictionaries + +# Sensitive or high-churn files: +# .idea/dataSources.ids +# .idea/dataSources.xml +# .idea/sqlDataSources.xml +# .idea/dynamic.xml +# .idea/uiDesigner.xml + +# Gradle: +# .idea/gradle.xml +# .idea/libraries + +# Mongo Explorer plugin: +# .idea/mongoSettings.xml + +## File-based project format: +*.ipr +*.iws + +## Plugin-specific files: + +# IntelliJ +/out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +### Example user template template +### Example user template + +# IntelliJ project files +.idea +*.iml +out +gen +# Created by .ignore support plugin (hsz.mobi) diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..f8118c0 --- /dev/null +++ b/pom.xml @@ -0,0 +1,27 @@ + + + 4.0.0 + + com.ediTv2 + PressurePush + 1.0-SNAPSHOT + + + + org.spigotmc + spigot-api + 1.9-R0.1-SNAPSHOT + provided + + + + + + spigot-repo + https://hub.spigotmc.org/nexus/content/groups/public/ + + + + \ No newline at end of file diff --git a/src/com/gmail/munjavk/pressurepush/PressurePush.java b/src/main/java/com/gmail/munjavk/pressurepush/PressurePush.java similarity index 95% rename from src/com/gmail/munjavk/pressurepush/PressurePush.java rename to src/main/java/com/gmail/munjavk/pressurepush/PressurePush.java index 2d5b6eb..5d1211b 100644 --- a/src/com/gmail/munjavk/pressurepush/PressurePush.java +++ b/src/main/java/com/gmail/munjavk/pressurepush/PressurePush.java @@ -166,19 +166,19 @@ public void onPressurePlateStep(PlayerInteractEvent e) { if (getConfig().getInt("Sound") == 2) { Vector v = p.getLocation().getDirection().multiply(strength).setY(up); p.setVelocity(v); - p.playSound(p.getLocation(), Sound.IRONGOLEM_HIT, 10.0F, 2.0F); + p.playSound(p.getLocation(), Sound.ENTITY_IRONGOLEM_HURT, 10.0F, 2.0F); e.setCancelled(true); } if (getConfig().getInt("Sound") == 4) { Vector v = p.getLocation().getDirection().multiply(strength).setY(up); p.setVelocity(v); - p.playSound(p.getLocation(), Sound.BLAZE_DEATH, 1.0F, 1.0F); + p.playSound(p.getLocation(), Sound.ENTITY_BLAZE_DEATH, 1.0F, 1.0F); e.setCancelled(true); } if (getConfig().getInt("Sound") == 1) { Vector v = p.getLocation().getDirection().multiply(strength).setY(up); p.setVelocity(v); - p.playSound(p.getLocation(), Sound.ENDERDRAGON_HIT, 10.0F, 2.0F); + p.playSound(p.getLocation(), Sound.ENTITY_ENDERDRAGON_HURT, 10.0F, 2.0F); e.setCancelled(true); } if (getConfig().getInt("Sound") == 0) { @@ -189,7 +189,7 @@ public void onPressurePlateStep(PlayerInteractEvent e) { if (getConfig().getInt("Sound") == 3) { Vector v = p.getLocation().getDirection().multiply(strength).setY(up); p.setVelocity(v); - p.playSound(p.getLocation(), Sound.ENDERDRAGON_WINGS, 10.0F, 2.0F); + p.playSound(p.getLocation(), Sound.ENTITY_ENDERDRAGON_FLAP, 10.0F, 2.0F); e.setCancelled(true); } disableFall.add(p.getName()); diff --git a/config.yml b/src/main/resources/config.yml similarity index 100% rename from config.yml rename to src/main/resources/config.yml diff --git a/plugin.yml b/src/main/resources/plugin.yml similarity index 100% rename from plugin.yml rename to src/main/resources/plugin.yml