<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://leaf.trashdev.org/index.php?action=history&amp;feed=atom&amp;title=Invite_System</id>
	<title>Invite System - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://leaf.trashdev.org/index.php?action=history&amp;feed=atom&amp;title=Invite_System"/>
	<link rel="alternate" type="text/html" href="https://leaf.trashdev.org/index.php?title=Invite_System&amp;action=history"/>
	<updated>2026-06-17T14:11:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://leaf.trashdev.org/index.php?title=Invite_System&amp;diff=361&amp;oldid=prev</id>
		<title>Ashy: Created page with &quot;== How do invites work? ==  In customizer, you can add a creation (called UI in pre-v3.0) of the &quot;invite&quot; type. This is like the base for invites  == How to create an invite ==  1. Go to `Config UI` 2. Go to `Customizer` 3. Click `Add` 4. Scroll down to &quot;Invite&quot; 5. Set the unique ID (remember, no spaces in invite unique ids! and they wont be displayed to the player) 6. Fill in the expiration time (if needed), remember: 20 ticks = 1 second, 1200 ticks = 1 minute  == Setti...&quot;</title>
		<link rel="alternate" type="text/html" href="https://leaf.trashdev.org/index.php?title=Invite_System&amp;diff=361&amp;oldid=prev"/>
		<updated>2026-06-14T03:35:17Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== How do invites work? ==  In customizer, you can add a creation (called UI in pre-v3.0) of the &amp;quot;invite&amp;quot; type. This is like the base for invites  == How to create an invite ==  1. Go to `Config UI` 2. Go to `Customizer` 3. Click `Add` 4. Scroll down to &amp;quot;Invite&amp;quot; 5. Set the unique ID (remember, no spaces in invite unique ids! and they wont be displayed to the player) 6. Fill in the expiration time (if needed), remember: 20 ticks = 1 second, 1200 ticks = 1 minute  == Setti...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== How do invites work? ==&lt;br /&gt;
&lt;br /&gt;
In customizer, you can add a creation (called UI in pre-v3.0) of the &amp;quot;invite&amp;quot; type. This is like the base for invites&lt;br /&gt;
&lt;br /&gt;
== How to create an invite ==&lt;br /&gt;
&lt;br /&gt;
1. Go to `Config UI`&lt;br /&gt;
2. Go to `Customizer`&lt;br /&gt;
3. Click `Add`&lt;br /&gt;
4. Scroll down to &amp;quot;Invite&amp;quot;&lt;br /&gt;
5. Set the unique ID (remember, no spaces in invite unique ids! and they wont be displayed to the player)&lt;br /&gt;
6. Fill in the expiration time (if needed), remember: 20 ticks = 1 second, 1200 ticks = 1 minute&lt;br /&gt;
&lt;br /&gt;
== Setting up the invites ==&lt;br /&gt;
&lt;br /&gt;
When editing invites you can edit the actions of 4 things:&lt;br /&gt;
- Deny actions: ran when invite is denied&lt;br /&gt;
- Accept actions: ran when invite is accepted&lt;br /&gt;
- Expiration actions: ran when invite expires&lt;br /&gt;
- Send actions: ran when invite is sent&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
# You do need to be familiar with the formatting system, and something else to note is the formatting system has 2 copies of the player-related variables in some places. Like, &amp;lt;code&amp;gt;&amp;lt;name&amp;gt;&amp;lt;/code&amp;gt; has a &amp;lt;code&amp;gt;&amp;lt;name2&amp;gt;&amp;lt;/code&amp;gt; counterpart. This is for multiple players.&lt;br /&gt;
# Player 1 = The player who received the invite&lt;br /&gt;
# Player 2 = The player who sent the invite&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Creating the invite UI ==&lt;br /&gt;
&lt;br /&gt;
Invites dont do anything on their own, so heres how you set up a UI&lt;br /&gt;
&lt;br /&gt;
=== Create the UI ===&lt;br /&gt;
&lt;br /&gt;
This should just be a normal creating UI process, so you do have to be familiar with creating UIs.&lt;br /&gt;
&lt;br /&gt;
=== Create a send button ===&lt;br /&gt;
&lt;br /&gt;
The action should be &amp;lt;code&amp;gt;/scriptevent leafgui:invite UNIQUE_ID&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;TIP:&amp;lt;h3&amp;gt;&lt;br /&gt;
You can put a command in quotes after the leafgui:invite scriptevent, like:&lt;br /&gt;
&lt;br /&gt;
/scriptevent leafgui:invite UNIQUE_ID &amp;quot;/scriptevent leaf:open your-invite-ui&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This will allow the invite UI to reopen your UI once the player is done interacting with it.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Create a incoming invites button ===&lt;br /&gt;
&lt;br /&gt;
Create a button, and choose whatever icon (if wanted). The display should be something like `Invite from &amp;lt;name2&amp;gt;` (just an example, just gives you an idea)&lt;br /&gt;
&lt;br /&gt;
Use whatever for the action, i recommend just putting a &amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt; since it will go unused after setting up the meta&lt;br /&gt;
&lt;br /&gt;
Now, the special part is after you create the button:&lt;br /&gt;
&amp;gt; Edit the button&lt;br /&gt;
&amp;gt; Edit meta to &amp;quot;#INVITES UNIQUE_ID&amp;quot; (&amp;lt;code&amp;gt;#INVITES&amp;lt;/code&amp;gt; is case sensitive, make sure its all uppercase)&lt;br /&gt;
&lt;br /&gt;
=== Create a outgoing invites button ===&lt;br /&gt;
&lt;br /&gt;
Repeat the steps from the incoming invites button (example text for this one would be: &amp;lt;code&amp;gt;Invite to &amp;lt;name&amp;gt;&amp;lt;/code&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
This time, the meta should be &amp;quot;#INVITES UNIQUE_ID out&amp;quot; (&amp;lt;code&amp;gt;out&amp;lt;/code&amp;gt; should be all lowercase)&lt;br /&gt;
&lt;br /&gt;
== Test your UI ==&lt;br /&gt;
&lt;br /&gt;
Open your UI and make sure it works. You might need another player (e.g. friend, alt account) online to help test it with you.&lt;/div&gt;</summary>
		<author><name>Ashy</name></author>
	</entry>
</feed>