Merge pull request #85 from jacky8399/master

Fix stopSound
This commit is contained in:
Joni 2019-08-15 20:31:04 +03:00 committed by GitHub
commit d68263ac3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -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)
{