When a player joins the world/server, check if first time joining

Started by TosNoom on

Topic category: Help with modding (Java Edition)

Last seen on 16:24, 25. Nov 2023
Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
When a player joins the world/server, check if first time joining

How can I do this? I want to make a mod that gives a newly joined player a custom, random effect which is stored in a variable and can be activated with a command. I want to make it so when the player joins for the first time, they get /titled. Is it possible to check if the player joins for the first time?

Last seen on 15:21, 16. Oct 2023
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Use player persistent…
Mon, 08/28/2023 - 18:57

Use player persistent variable for it.

Last seen on 21:10, 4. Dec 2023
Joined Mar 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Just make it check for a…
Mon, 08/28/2023 - 20:32

Just make it check for a variable and if it = 0 (your code) add one to the variable