1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-02-18 11:22:15 +01:00

Expose the internal current tick

This commit is contained in:
William Blake Galbreath 2019-04-20 19:47:29 -05:00
parent 2cee31307e
commit 9a251fbd95
2 changed files with 11 additions and 0 deletions
paper-api/src/main/java/org/bukkit

View file

@ -2552,6 +2552,10 @@ public final class Bukkit {
public static com.destroystokyo.paper.profile.PlayerProfile createProfileExact(@Nullable UUID uuid, @Nullable String name) {
return server.createProfileExact(uuid, name);
}
public static int getCurrentTick() {
return server.getCurrentTick();
}
// Paper end
@NotNull

View file

@ -2221,5 +2221,12 @@ public interface Server extends PluginMessageRecipient, net.kyori.adventure.audi
*/
@NotNull
com.destroystokyo.paper.profile.PlayerProfile createProfileExact(@Nullable UUID uuid, @Nullable String name);
/**
* Get the current internal server tick
*
* @return Current tick
*/
int getCurrentTick();
// Paper end
}