<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.play.eco/en/index.php?action=history&amp;feed=atom&amp;title=Debugging_store_interactions</id>
	<title>Debugging store interactions - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.play.eco/en/index.php?action=history&amp;feed=atom&amp;title=Debugging_store_interactions"/>
	<link rel="alternate" type="text/html" href="https://wiki.play.eco/en/index.php?title=Debugging_store_interactions&amp;action=history"/>
	<updated>2026-07-20T20:10:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.play.eco/en/index.php?title=Debugging_store_interactions&amp;diff=16599&amp;oldid=prev</id>
		<title>StalEF at 17:58, 1 April 2026</title>
		<link rel="alternate" type="text/html" href="https://wiki.play.eco/en/index.php?title=Debugging_store_interactions&amp;diff=16599&amp;oldid=prev"/>
		<updated>2026-04-01T17:58:32Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:58, 1 April 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{ModdingOutdated}}&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;gt; Version: 7.3.1&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;gt; Version: 7.3.1&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key playeco_wiki_en:diff:1.41:old-7550:rev-16599:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>StalEF</name></author>
	</entry>
	<entry>
		<id>https://wiki.play.eco/en/index.php?title=Debugging_store_interactions&amp;diff=7550&amp;oldid=prev</id>
		<title>Redwyre: Created page with &quot;{{ModdingOutdated}}  &gt; Version: 7.3.1  &gt; Difficulty: Medium  == Introduction == Unfortunately, interaction objects that exhibit different behavior when owned or not owned by y...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.play.eco/en/index.php?title=Debugging_store_interactions&amp;diff=7550&amp;oldid=prev"/>
		<updated>2021-07-04T16:28:31Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{ModdingOutdated}}  &amp;gt; Version: 7.3.1  &amp;gt; Difficulty: Medium  == Introduction == Unfortunately, interaction objects that exhibit different behavior when owned or not owned by y...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{ModdingOutdated}}&lt;br /&gt;
&lt;br /&gt;
&amp;gt; Version: 7.3.1&lt;br /&gt;
&lt;br /&gt;
&amp;gt; Difficulty: Medium&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Unfortunately, interaction objects that exhibit different behavior when owned or not owned by you are hard to debug. The reason is that there is currently no way that you can transfer ownership of an object to someone else programmatically. Even though there is a way to claim deeds, a dummy cannot do that for you. Besides dummies created by `/dummy` and `/metime` seem to have the same _slg _/ _steamId_ as you, which means that you jointly own property with them. To make debugging possible without having to invite a friend over to the server I decided to write a mod.&lt;br /&gt;
&lt;br /&gt;
== Principles ==&lt;br /&gt;
This mod introduces two new developer commands: `/transferproperty` and `/returnproperty`. The first creates or fetches a user named _PropertyHolderDummy_. This player will not be physically in the game. It is an offline player as it were. The mod then fetches all property held by you and transfers it to the dummy. The `/returnproperty` command will do the reverse and strip all property from the dummy and transfer it to you.&lt;br /&gt;
&lt;br /&gt;
== Mechanics ==&lt;br /&gt;
To get to the property of a player one uses `PropertyManager.PropertyForUser`. This returns so-called `PropertyPlot`s which refer to an `AuthrorizationController` that you can use to set ownership with the `SetOwner` method.&lt;br /&gt;
&lt;br /&gt;
== Code ==&lt;br /&gt;
=== transferproperty ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 // Spawn a dummy player&lt;br /&gt;
var dummy = UserManager.GetOrCreateUser(null, &amp;quot;PropertyHolderDummy&amp;quot;, &amp;quot;PropertyHolderDummy&amp;quot;);&lt;br /&gt;
// Get all propery of this player&lt;br /&gt;
foreach (var a in PropertyManager.PropertyForUser(user).Select(p =&amp;gt; p.GetAuth()))&lt;br /&gt;
{&lt;br /&gt;
    a.SetOwner(dummy.Name);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second parameter of `UserManager.GetOrCreateUser` is the user&amp;#039;s _slgId_. Assigning your _slgId_ to this would effectively clone yourself and you would jointly own property, defeating the purpose of this mod.&lt;br /&gt;
&lt;br /&gt;
=== returnproperty ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 // Get all propery back from the dummy&lt;br /&gt;
foreach (var a in PropertyManager.PropertyForUser(UserManager.FindUserByName(dummyName)).Select(p =&amp;gt; p.GetAuth()))&lt;br /&gt;
{&lt;br /&gt;
    a.SetOwner(user.Name);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As you can see all the property owned by the dummy is returned to the user here.&lt;br /&gt;
&lt;br /&gt;
That&amp;#039;s all folks!&lt;br /&gt;
&lt;br /&gt;
[[Category: Modding]]&lt;/div&gt;</summary>
		<author><name>Redwyre</name></author>
	</entry>
</feed>