Page 1 of 2

[eXpansion-1 Plugin] Auto EndRound

Posted: 13 Nov 2014, 17:22
by steppie
Hi

This is my first plugin to this great controller, so what is it?

It's Auto Endround plugin, that forceendround if nobody finish the round in the defined max time.
This is important, because if you join a server, where the round is started by a player but do not finish, the round will never end and new player will not be able to drive.

Features:
1. ForceEndRound if a player "hijack" server, by not finishing the round.
2. Time defined in settings. (Authortime + your defined time)
3. Update timer to EndRoundTime when player finish.
4. Display a countdown so you know how much time you have left to finish.
5. Works in both legacy and script mode.

Download it here: http://unc-crew.dk/downloads/AutoForceEndround_1.3.zip

Install by unzip the content to you eXpansion ManiaLivePlugins folder and activate the plugin in servercontroller.

Re: [Plugin] Auto EndRound

Posted: 13 Nov 2014, 19:51
by oliverde8
hey so happy to see the first plugin for expansion :clap:

For information you don't need both :

Code: Select all

	$this->addGameModeCompability(\Maniaplanet\DedicatedServer\Structures\GameInfos::GAMEMODE_ROUNDS);
	$this->addGameModeCompability(\Maniaplanet\DedicatedServer\Structures\GameInfos::GAMEMODE_SCRIPT, 'Round.Script.txt');
by default Script Compatibility mode is true and therefor adding legacy Round support adds Script round support as well. I know we also use both quite often as the feature was added only later in our developpement.

For info it can be disabled this way :

Code: Select all

$this->setScriptCompatibilityMode(false)
Really nice plugin :)

Re: [Plugin] Auto EndRound

Posted: 13 Nov 2014, 20:05
by steppie
Thanks for the feedback :thumbsup:

I've removed the script line and changed the config so it's shown under the plugins.

Download file updated!

Re: [eXpansion Plugin] Auto EndRound

Posted: 14 Nov 2014, 18:23
by steppie
Updated the plugin, as it didn't update the time at playerfinish if legacy callback was disable.

Download link updated in first post.

Re: [eXpansion Plugin] Auto EndRound

Posted: 24 Nov 2015, 21:19
by jaga01
That`s a good plugin and is missing on other controllers. Good Job !

Re: [eXpansion Plugin] Auto EndRound

Posted: 26 Apr 2016, 20:12
by jaga01
how i can make it work with 1.0.0 eXpansion ?

Re: [eXpansion Plugin] Auto EndRound

Posted: 27 Apr 2016, 19:53
by oliverde8
jaga01 wrote:how i can make it work with 1.0.0 eXpansion ?
Hi due to changes to eXpansion to add PHP7 support the plugin won't work until someone fixes it :(

I might do it, when I find time. But don't expect me to find anytime before may 17th,

Re: [eXpansion Plugin] Auto EndRound

Posted: 27 Apr 2016, 20:05
by jaga01
hey !

Ok I have to wait then :) I really wait for you guys to come back, a lot of bugs and usefull updates need to be done :D

Re: [eXpansion Plugin] Auto EndRound

Posted: 18 May 2016, 20:41
by steppie
The plugin is now updated to work with the latest version of expansion.
Download link updated in first post.

Big thanks to Reaby for debugging and fixes.

Re: [eXpansion Plugin] Auto EndRound

Posted: 19 May 2016, 06:52
by jaga01
Can you be more specific with the instalation? i Unziped folder AutoEndRound to vendor > ml-expasion > expansion, folder and it didn`t work