This commit is contained in:
Jesse Boyd 2018-02-08 19:48:40 +11:00
parent c5d5b52df4
commit d9a17bd379
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
2 changed files with 15 additions and 2 deletions

View File

@ -424,8 +424,7 @@ public final class NukkitMain extends PluginBase implements Listener, IPlotMain
@Override
public AbstractTitle initTitleManager() {
// Already initialized in UUID handler
return AbstractTitle.TITLE_CLASS;
return new NukkitTitleUtil();
}
@Override

View File

@ -0,0 +1,14 @@
package com.plotsquared.nukkit.util;
import cn.nukkit.Player;
import com.intellectualcrafters.plot.object.PlotPlayer;
import com.intellectualcrafters.plot.util.AbstractTitle;
import com.plotsquared.nukkit.object.NukkitPlayer;
public class NukkitTitleUtil extends AbstractTitle {
@Override
public void sendTitle(PlotPlayer player, String head, String sub, int in, int delay, int out) {
Player plr = ((NukkitPlayer) player).player;
plr.sendTitle(head, sub, in, delay, out);
}
}