code refactoring
All checks were successful
Build / build (push) Successful in 2m15s

This commit is contained in:
unurled 2024-03-18 22:29:22 +01:00
parent f706a7e91a
commit ffbdf2e367
Signed by: unurled
GPG key ID: FDBC9CBE1F82423F
2 changed files with 6 additions and 2 deletions

View file

@ -17,6 +17,9 @@ import org.bukkit.util.Vector;
import org.jetbrains.annotations.NotNull;
public class SRPlayerUtils {
private SRPlayerUtils() {}
public static void syncPlayerToSR(@NotNull Player p, @NotNull SRPlayer sr) {
sr.setInventory(p.getInventory());
sr.setPotionEffects((List<PotionEffect>) p.getActivePotionEffects());