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