Skip to content

Commit

Permalink
update for 6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanashi committed Nov 1, 2024
1 parent b718b6d commit 36dcd1d
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 43 deletions.
4 changes: 2 additions & 2 deletions eventListener.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<data xmlns="https://www.woltlab.com" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://www.woltlab.com https://www.woltlab.com/XSD/vortex/eventListener.xsd">
<data xmlns="http://www.woltlab.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.woltlab.com http://www.woltlab.com/XSD/6.0/eventListener.xsd">
<import>
<eventlistener name="jcoinsTeamspeak3AddListener">
<eventclassname>wcf\data\user\teamspeak\TeamspeakAction</eventclassname>
<eventname>finalizeAction</eventname>
<listenerclassname>wcf\system\event\listener\JCoinsTeamspeak3AddListener</listenerclassname>
</eventlistener>
</import>
</data>
</data>
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
use wcf\system\user\jcoins\UserJCoinsStatementHandler;
use wcf\system\WCF;

class JCoinsTeamspeak3AddListener implements IParameterizedEventListener
final class JCoinsTeamspeak3AddListener extends AbstractEventListener
{
public function execute($eventObj, $className, $eventName, array &$parameters)
protected function onFinalizeAction($eventObj)
{
if (!MODULE_JCOINS || !WCF::getUser()->userID) {
return;
Expand Down
69 changes: 30 additions & 39 deletions package.xml
Original file line number Diff line number Diff line change
@@ -1,43 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<package name="eu.hanashi.wsc.teamspeak3-sync-jcoins" xmlns="https://www.woltlab.com" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://www.woltlab.com https://www.woltlab.com/XSD/vortex/package.xsd">
<packageinformation>
<packagename><![CDATA[TeamSpeak-Sync (JCoins)]]></packagename>
<packagename language="de"><![CDATA[TeamSpeak-Sync (JCoins)]]></packagename>
<packagedescription><![CDATA[Synchronizes user groups between WSC and TeamSpeak.]]></packagedescription>
<packagedescription language="de"><![CDATA[Ergänzt JCoins-Abhängigkeit für TeamSpeak-Sync.]]></packagedescription>
<version>1.1.1</version>
<date>2019-12-10</date>
</packageinformation>

<authorinformation>
<author><![CDATA[Hanashi]]></author>
<authorurl><![CDATA[https://hanashi.eu/]]></authorurl>
</authorinformation>

<compatibility>
<api version="2018" />
</compatibility>

<requiredpackages>
<requiredpackage minversion="3.1.0">com.woltlab.wcf</requiredpackage>
<requiredpackage minversion="1.2.0 pl 1">eu.hanashi.wsc.teamspeak3-sync</requiredpackage>
<requiredpackage minversion="3.1.1">de.wcflabs.wcf.jcoins</requiredpackage>
</requiredpackages>

<instructions type="install">
<!-- file -->
<instruction type="file"/>

<!-- language -->
<instruction type="language"/>

<!-- config -->
<instruction type="eventListener" />
<instruction type="objectType" />
</instructions>

<package xmlns="http://www.woltlab.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.woltlab.com http://www.woltlab.com/XSD/5.4/package.xsd" name="eu.hanashi.wsc.teamspeak3-sync-jcoins">
<packageinformation>
<!-- eu.hanashi.wsc.teamspeak3-sync-jcoins -->
<packagename>TeamSpeak-Sync (JCoins)</packagename>
<packagename language="de">TeamSpeak-Sync (JCoins)</packagename>
<packagedescription>Synchronizes user groups between WSC and TeamSpeak.</packagedescription>
<packagedescription language="de">Ergänzt JCoins-Abhängigkeit für TeamSpeak-Sync.</packagedescription>
<version>1.2.0</version>
<date>2024-11-01</date>
</packageinformation>
<authorinformation>
<author>Hanashi Development</author>
<authorurl>https://hanashi.dev/</authorurl>
</authorinformation>
<requiredpackages>
<requiredpackage minversion="6.0.18">com.woltlab.wcf</requiredpackage>
<requiredpackage minversion="2.2.1">eu.hanashi.wsc.teamspeak3-sync</requiredpackage>
<requiredpackage minversion="6.0.4">de.wcflabs.wcf.jcoins</requiredpackage>
</requiredpackages>
<excludedpackages>
<excludedpackage version="7.0.0 Alpha 1">com.woltlab.wcf</excludedpackage>
</excludedpackages>
<instructions type="install">
<instruction type="file"/>
<instruction type="language"/>
<instruction type="eventListener"/>
<instruction type="objectType"/>
</instructions>
<instructions type="update" fromversion="1.1.0">
<!-- language -->
<instruction type="language"/>
<instruction type="file"/>
<instruction type="eventListener"/>
</instructions>
</package>

0 comments on commit 36dcd1d

Please sign in to comment.