Change Global Player Persistent Variable while Player offline

Started by janisishere on

Topic category: Help with modding (Java Edition)

Last seen on 09:14, 8. Sep 2024
Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Change Global Player Persistent Variable while Player offline

Hey, im trying to make a system thats like lifesteal, and you get banned after having 0 hearts. Now I want to make an unban item that unbans players. But I dont know how to change a player persistent Variable while the entity is offline. And how would i make a gui for it (optional)

Last seen on 04:06, 14. Sep 2024
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
there is a plugin you can…
Wed, 08/21/2024 - 12:58

there is a plugin you can download called array lists by nerdy, you can make a procedure with the global trigger player join world, you can then grab that username and add it to the array list, but first make sure to check if it already exists before you add, otherwise there will be duplicate names, then in the item it will let you open a gui that will display the names of that array list, with buttons next to them that will change the variable for them, however that's all I can help with, hopefully you can get the rest working, goodluck!