mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-25 02:27:41 +01:00
Make initial skin packet delay configurable
This commit is contained in:
parent
09c482e2f6
commit
aa136420c8
@ -502,7 +502,8 @@ public class EventListen implements Listener {
|
|||||||
|
|
||||||
@EventHandler(priority = EventPriority.MONITOR)
|
@EventHandler(priority = EventPriority.MONITOR)
|
||||||
public void onPlayerJoin(PlayerJoinEvent event) {
|
public void onPlayerJoin(PlayerJoinEvent event) {
|
||||||
skinUpdateTracker.updatePlayer(event.getPlayer(), 6 * 20, true);
|
skinUpdateTracker.updatePlayer(event.getPlayer(), Setting.INITIAL_PLAYER_JOIN_SKIN_PACKET_DELAY_TICKS.asInt(),
|
||||||
|
true);
|
||||||
|
|
||||||
if (Setting.USE_SCOREBOARD_TEAMS.asBoolean()) {
|
if (Setting.USE_SCOREBOARD_TEAMS.asBoolean()) {
|
||||||
Util.updateNPCTeams(event.getPlayer(), 0);
|
Util.updateNPCTeams(event.getPlayer(), 0);
|
||||||
|
@ -107,6 +107,7 @@ public class Settings {
|
|||||||
ERROR_COLOUR("general.color-scheme.message-error", "<c>"),
|
ERROR_COLOUR("general.color-scheme.message-error", "<c>"),
|
||||||
FOLLOW_ACROSS_WORLDS("npc.follow.teleport-across-worlds", true),
|
FOLLOW_ACROSS_WORLDS("npc.follow.teleport-across-worlds", true),
|
||||||
HIGHLIGHT_COLOUR("general.color-scheme.message-highlight", "<e>"),
|
HIGHLIGHT_COLOUR("general.color-scheme.message-highlight", "<e>"),
|
||||||
|
INITIAL_PLAYER_JOIN_SKIN_PACKET_DELAY_TICKS("npc.skins.player-join-update-delay-ticks", 3 * 20),
|
||||||
KEEP_CHUNKS_LOADED("npc.chunks.always-keep-loaded", false),
|
KEEP_CHUNKS_LOADED("npc.chunks.always-keep-loaded", false),
|
||||||
LOCALE("general.translation.locale", ""),
|
LOCALE("general.translation.locale", ""),
|
||||||
MAX_CONTROLLABLE_GROUND_SPEED("npc.controllable.max-ground-speed", 0.5),
|
MAX_CONTROLLABLE_GROUND_SPEED("npc.controllable.max-ground-speed", 0.5),
|
||||||
|
@ -116,7 +116,6 @@ public class Skin {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
setNPCSkinData(entity, skinName, skinId, skinData);
|
setNPCSkinData(entity, skinName, skinId, skinData);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user