mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-07-08 16:44:42 +02:00
23 lines
829 B
Java
23 lines
829 B
Java
package com.plotsquared.bukkit.titles;
|
|
|
|
import com.intellectualcrafters.plot.PS;
|
|
import com.intellectualcrafters.plot.config.Settings;
|
|
import com.intellectualcrafters.plot.object.PlotPlayer;
|
|
import com.intellectualcrafters.plot.util.AbstractTitle;
|
|
import com.plotsquared.bukkit.object.BukkitPlayer;
|
|
|
|
public class HackTitle extends AbstractTitle {
|
|
|
|
@Override
|
|
public void sendTitle(PlotPlayer player, String head, String sub, int in, int delay, int out) {
|
|
try {
|
|
HackTitleManager title = new HackTitleManager(head, sub, in, delay, out);
|
|
title.send(((BukkitPlayer) player).player);
|
|
} catch (Exception ignored) {
|
|
PS.debug("&cYour server version does not support titles!");
|
|
Settings.TITLES = false;
|
|
AbstractTitle.TITLE_CLASS = null;
|
|
}
|
|
}
|
|
}
|