mirror of
https://github.com/TotalFreedomMC/TF-WorldGuardExtraFlagsPlugin.git
synced 2025-02-05 11:52:42 +00:00
Fix stopSound
This commit is contained in:
parent
dc8cb8459a
commit
7648a0f8b6
1 changed files with 2 additions and 3 deletions
|
@ -1,8 +1,7 @@
|
|||
package net.goldtreeservers.worldguardextraflags.utils;
|
||||
|
||||
import java.awt.Color;
|
||||
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.Sound;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.entity.EntityPotionEffectEvent;
|
||||
import org.bukkit.potion.PotionEffect;
|
||||
|
@ -33,7 +32,7 @@ public class SupportedFeatures
|
|||
|
||||
try
|
||||
{
|
||||
SupportedFeatures.stopSoundSupported = Player.class.getDeclaredMethod("stopSound", Color.class) != null;
|
||||
SupportedFeatures.stopSoundSupported = Player.class.getDeclaredMethod("stopSound", Sound.class) != null;
|
||||
}
|
||||
catch (Throwable ignored)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue