2015-01-25 01:11:02 +01:00
|
|
|
package com.intellectualcrafters.plot.titles;
|
|
|
|
|
|
|
|
import org.bukkit.ChatColor;
|
|
|
|
import org.bukkit.entity.Player;
|
|
|
|
|
2015-02-19 09:51:10 +01:00
|
|
|
import com.intellectualcrafters.plot.PlotSquared;
|
2015-01-25 01:11:02 +01:00
|
|
|
import com.intellectualcrafters.plot.config.Settings;
|
|
|
|
|
|
|
|
public class HackTitle extends AbstractTitle {
|
2015-02-20 07:34:19 +01:00
|
|
|
@Override
|
|
|
|
public void sendTitle(final Player player, final String head, final String sub, final ChatColor head_color, final ChatColor sub_color) {
|
|
|
|
try {
|
|
|
|
final HackTitleManager title = new HackTitleManager(head, sub, 1, 2, 1);
|
|
|
|
title.setTitleColor(head_color);
|
|
|
|
title.setSubtitleColor(sub_color);
|
|
|
|
title.send(player);
|
|
|
|
} catch (final Throwable e) {
|
|
|
|
PlotSquared.log("&cYour server version does not support titles!");
|
|
|
|
Settings.TITLES = false;
|
|
|
|
AbstractTitle.TITLE_CLASS = null;
|
|
|
|
}
|
|
|
|
}
|
2015-01-25 01:11:02 +01:00
|
|
|
}
|