Fixed name mentioning (missing sound)

This commit is contained in:
Norbi Peti 2016-03-14 20:46:14 +01:00
parent 9d33b7e21f
commit eb9da1c520
5 changed files with 3 additions and 10 deletions

Binary file not shown.

View file

@ -28,5 +28,6 @@
<classpathentry kind="lib" path="D:/Z - Norbi cucca/0 Projektek/TheButtonMCAutoFlairProto/Spigot server/plugins/Vault.jar"/>
<classpathentry kind="lib" path="D:/Z - Norbi cucca/0 Projektek/TheButtonMCAutoFlairProto/Spigot server/plugins/_/Factions.jar"/>
<classpathentry kind="lib" path="D:/Z - Norbi cucca/0 Projektek/TheButtonMCAutoFlairProto/Spigot server/plugins/_/MassiveCore.jar"/>
<classpathentry kind="lib" path="D:/Z - Norbi cucca/0 Projektek/TheButtonMCAutoFlairProto/Spigot server (build)/Spigot/Spigot-API/target/spigot-api-1.9-R0.1-SNAPSHOT-shaded.jar"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>

View file

@ -58,12 +58,4 @@
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.8.8-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>

View file

@ -140,7 +140,7 @@ public class ChatProcessing {
if (formattedmessage.matches("(?i).*"
+ Pattern.quote(p.getName()) + ".*")) {
if (PlayerListener.NotificationSound == null)
p.playSound(p.getLocation(), Sound.ORB_PICKUP, 1.0f,
p.playSound(p.getLocation(), Sound.ENTITY_ARROW_HIT_PLAYER, 1.0f,
0.5f);
else
p.playSound(p.getLocation(),
@ -180,7 +180,7 @@ public class ChatProcessing {
+ Pattern.quote(nwithoutformatting) + ".*")) {
p = Bukkit.getPlayer(PlayerListener.nicknames.get(n));
if (PlayerListener.NotificationSound == null)
p.playSound(p.getLocation(), Sound.ORB_PICKUP, 1.0f,
p.playSound(p.getLocation(), Sound.ENTITY_ARROW_HIT_PLAYER, 1.0f,
0.5f); // 2015.08.12.
else
p.playSound(p.getLocation(),