Method no longer needed since dropping support for 1.6.4

This commit is contained in:
filoghost 2016-08-29 10:33:51 +02:00
parent b7eefd44c9
commit 435d455134
13 changed files with 2 additions and 54 deletions

View File

@ -70,7 +70,7 @@ public class EditCommand extends HologramSubCommand {
}
}
if (CommandValidator.isPlayerSender(sender) && HolographicDisplays.getNMSManager().hasChatHoverFeature()) {
if (CommandValidator.isPlayerSender(sender)) {
HelpCommand.sendHoverTip(sender);
}
}

View File

@ -64,7 +64,7 @@ public class HelpCommand extends HologramSubCommand {
}
}
if (CommandValidator.isPlayerSender(sender) && HolographicDisplays.getNMSManager().hasChatHoverFeature()) {
if (CommandValidator.isPlayerSender(sender)) {
sendHoverTip(sender);
}
}

View File

@ -33,6 +33,4 @@ public interface NMSManager {
public FancyMessage newFancyMessage(String text);
public boolean hasChatHoverFeature();
}

View File

@ -143,10 +143,5 @@ public class NmsManagerImpl implements NMSManager {
public FancyMessage newFancyMessage(String text) {
return new FancyMessageImpl(text);
}
@Override
public boolean hasChatHoverFeature() {
return true;
}
}

View File

@ -156,11 +156,6 @@ public class NmsManagerImpl implements NMSManager {
return new FancyMessageImpl(text);
}
@Override
public boolean hasChatHoverFeature() {
return true;
}
@Override
public NMSArmorStand spawnNMSArmorStand(org.bukkit.World world, double x, double y, double z, CraftHologramLine parentPiece) {
throw new NotImplementedException("Method can only be used on 1.8 or higher");

View File

@ -156,11 +156,6 @@ public class NmsManagerImpl implements NMSManager {
return new FancyMessageImpl(text);
}
@Override
public boolean hasChatHoverFeature() {
return true;
}
@Override
public NMSArmorStand spawnNMSArmorStand(org.bukkit.World world, double x, double y, double z, CraftHologramLine parentPiece) {
throw new NotImplementedException("Method can only be used on 1.8 or higher");

View File

@ -156,11 +156,6 @@ public class NmsManagerImpl implements NMSManager {
return new FancyMessageImpl(text);
}
@Override
public boolean hasChatHoverFeature() {
return true;
}
@Override
public NMSArmorStand spawnNMSArmorStand(org.bukkit.World world, double x, double y, double z, CraftHologramLine parentPiece) {
throw new NotImplementedException("Method can only be used on 1.8 or higher");

View File

@ -156,11 +156,6 @@ public class NmsManagerImpl implements NMSManager {
return new FancyMessageImpl(text);
}
@Override
public boolean hasChatHoverFeature() {
return true;
}
@Override
public NMSArmorStand spawnNMSArmorStand(org.bukkit.World world, double x, double y, double z, CraftHologramLine parentPiece) {
throw new NotImplementedException("Method can only be used on 1.8 or higher");

View File

@ -153,10 +153,5 @@ public class NmsManagerImpl implements NMSManager {
public FancyMessage newFancyMessage(String text) {
return new FancyMessageImpl(text);
}
@Override
public boolean hasChatHoverFeature() {
return true;
}
}

View File

@ -153,9 +153,4 @@ public class NmsManagerImpl implements NMSManager {
return new FancyMessageImpl(text);
}
@Override
public boolean hasChatHoverFeature() {
return true;
}
}

View File

@ -153,9 +153,4 @@ public class NmsManagerImpl implements NMSManager {
return new FancyMessageImpl(text);
}
@Override
public boolean hasChatHoverFeature() {
return true;
}
}

View File

@ -143,10 +143,5 @@ public class NmsManagerImpl implements NMSManager {
public FancyMessage newFancyMessage(String text) {
return new FancyMessageImpl(text);
}
@Override
public boolean hasChatHoverFeature() {
return true;
}
}

View File

@ -143,10 +143,5 @@ public class NmsManagerImpl implements NMSManager {
public FancyMessage newFancyMessage(String text) {
return new FancyMessageImpl(text);
}
@Override
public boolean hasChatHoverFeature() {
return true;
}
}