File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/main/java/ch/njol/skript/test/utils Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1616import java .util .Map ;
1717import java .util .UUID ;
1818
19+ /**
20+ * A wrapper for an {@link OfflinePlayer} and a custom {@link PlayerProfile}.
21+ * Allows having a valid {@link OfflinePlayer} object without the need to do any lookups, especially if Mojang authorization is down.
22+ */
1923public class TestOfflinePlayer implements OfflinePlayer {
2024
21- private static final String PLAYER_NAME = "Sahvde " ;
22- private static final UUID PLAYER_UUID = UUID .fromString ( "69e37026-2c7d-4255-ac76-9b13a5fe8f74" );
25+ private static final String PLAYER_NAME = "SkriptLang " ;
26+ private static final UUID PLAYER_UUID = UUID .randomUUID ( );
2327 private static final OfflinePlayer PLAYER = Bukkit .getOfflinePlayer (PLAYER_UUID );
2428 private static final PlayerProfile PLAYER_PROFILE = PLAYER .getPlayerProfile ();
2529 private static final @ Nullable TestOfflinePlayer instance ;
You can’t perform that action at this time.
0 commit comments