mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 07:06:44 +01:00
Fixes #1872
This commit is contained in:
parent
c5d5b52df4
commit
d9a17bd379
@ -424,8 +424,7 @@ public final class NukkitMain extends PluginBase implements Listener, IPlotMain
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public AbstractTitle initTitleManager() {
|
public AbstractTitle initTitleManager() {
|
||||||
// Already initialized in UUID handler
|
return new NukkitTitleUtil();
|
||||||
return AbstractTitle.TITLE_CLASS;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user