mirror of
https://github.com/RonanPlugins/BetterRTP.git
synced 2025-08-18 09:35:50 +00:00
sounds fix
This commit is contained in:
parent
76ab0f1630
commit
060361c6e7
@ -30,12 +30,16 @@ public class RTPTeleport {
|
|||||||
titles(p, loc, attempts);
|
titles(p, loc, attempts);
|
||||||
try {
|
try {
|
||||||
//p.teleport(loc);
|
//p.teleport(loc);
|
||||||
PaperLib.teleportAsync(p, loc); //Async teleport
|
PaperLib.teleportAsync(p, loc).thenRun(new BukkitRunnable() { //Async teleport
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
if (getPl().getText().getSoundsEnabled())
|
||||||
|
sounds(p);
|
||||||
|
}
|
||||||
|
});
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
if (getPl().getText().getSoundsEnabled())
|
|
||||||
sounds(p);
|
|
||||||
getPl().getCmd().rtping.put(p.getUniqueId(), false); //Dont let them rtp again until current is done!
|
getPl().getCmd().rtping.put(p.getUniqueId(), false); //Dont let them rtp again until current is done!
|
||||||
}
|
}
|
||||||
}.runTask(getPl());
|
}.runTask(getPl());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user