mirror of
https://github.com/RonanPlugins/BetterRTP.git
synced 2025-08-17 09:05:47 +00:00
sounds fix
This commit is contained in:
parent
76ab0f1630
commit
060361c6e7
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user