Skip to content

Commit

Permalink
Spigot 1.9 Compatibility, Take 2.
Browse files Browse the repository at this point in the history
Adjust for the new sound enum values in the 1.9 API.
  • Loading branch information
totemo committed Mar 4, 2016
1 parent ede338b commit 646ed4e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
13 changes: 4 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>nu.nerd</groupId>
<artifactId>KitchenSink</artifactId>
<name>KitchenSink</name>
<version>0.9.8</version>
<version>0.10.0</version>
<packaging>jar</packaging>
<description>A plugin for miscellaneous functionality that hasn't found a home elsewhere.</description>
<url>https://github.com/NerdNu/KitchenSink</url>
Expand Down Expand Up @@ -35,16 +35,11 @@

<dependencies>
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>bukkit</artifactId>
<version>1.8.8-R0.1-SNAPSHOT</version>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.9-SNAPSHOT</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>craftbukkit</artifactId>
<version>1.8.8-R0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>de.bananaco</groupId>
<artifactId>bPermissions</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion src/nu/nerd/kitchensink/KitchenSinkListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ public void onInventoryOpen(InventoryOpenEvent event) {
Player player = (Player) event.getPlayer();
player.sendMessage(ChatColor.RED + "WARNING: There will be a restart in about " + Integer.toString(time) + " seconds!");
player.sendMessage(ChatColor.RED + "Having an inventory open when a restart occurs may result in loss of items.");
player.playSound(player.getLocation(), Sound.ANVIL_LAND, 2f, 1f);
player.playSound(player.getLocation(), Sound.BLOCK_ANVIL_LAND, 2f, 1f);
}
}

Expand Down

0 comments on commit 646ed4e

Please sign in to comment.