mirror of
https://github.com/RonanPlugins/BetterRTP.git
synced 2026-02-16 10:30:58 +00:00
sounds fix
This commit is contained in:
@@ -30,12 +30,16 @@ public class RTPTeleport {
|
||||
titles(p, loc, attempts);
|
||||
try {
|
||||
//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) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
if (getPl().getText().getSoundsEnabled())
|
||||
sounds(p);
|
||||
getPl().getCmd().rtping.put(p.getUniqueId(), false); //Dont let them rtp again until current is done!
|
||||
}
|
||||
}.runTask(getPl());
|
||||
|
||||
Reference in New Issue
Block a user