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
56 changes: 56 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -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)
27 changes: 27 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.ediTv2</groupId>
<artifactId>PressurePush</artifactId>
<version>1.0-SNAPSHOT</version>

<dependencies>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.9-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>

<repositories>
<repository>
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/groups/public/</url>
</repository>
</repositories>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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());
Expand Down
File renamed without changes.
File renamed without changes.