mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-27 23:10:16 +01:00
Expose the internal current tick
This commit is contained in:
parent
2cee31307e
commit
9a251fbd95
2 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue