Fix stopSound

This commit is contained in:
0u0 2019-08-13 16:03:34 +08:00 committed by GitHub
parent dc8cb8459a
commit 7648a0f8b6
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)
{