motdgd-advertisement-for-your-unturned-server

#24 - published 2 years ago

MOTDgd – Advertisement for your Unturned server

If you run game servers on Unturned, you’re in luck – you can now monetise your servers effectively. We offer a fantastic alternative to donations.

 

MOTDgd Ltd is a UK company, and we are proud to be a leading game ad network in the marketspace. We have over 10,000 server owners signed up worldwide, with a huge presence in the Steam marketplace.

 

Our video/banner adverts will be shown via a link, your users click on in link request window. It will open Steam browser, they will watch an ad for a short time (approx 30 sec) with the purpose of getting an item, ability or command defined by you, e.g. an item, a car, heal etc.

 

This is made possible by allowing you to run any number of custom/Unturned commands before and/or after an advertisement is shown. You can customise this how you wish with simple & RTD style reward modes included.

 

Our plugin is server friendly: We’re lightweight and not bloated, you can define a period of time that your users won’t benefit from watching an ad (cooldown), specify how many ads players get before going on a cooldown. You can now also choose custom ad backgrounds, text and a logo for your ad page with your community branding!

 

It is easy to install with our config file web generator.

 

Our plugin is unintrusive it will only impact a player’s gameplay in the way that you tell it to.

 

This is a highly customisable plugin, and as such it is suitable for any type of server.

 

Important reminder!

We use clients private information (Public IP address) to generate hash code, that checks if the user that requested the ad is actually watching it. Before using this plugin, let clients know about this policy. Complete privacy policy can be found here: http://motdgd.com/privacy. By using this plugin, you signify your acceptance of this policy. If you do not agree to this policy, please do not use our plugin. Your continued use of the plugin following the posting of changes to this policy will be deemed your acceptance of those changes.

How to set it up?

First you need to register on MOTDgd and get your User ID. After you register, download .zip file from below. place MOTDgd.dll into your plugins folder and place other .dlls into Libraries folder. After moving folders, generate our config (or edit it on your own) and move it to Plugins\MOTDgd. Reload Rocket and you are good to go! 🙂

I’m currently working on video guide how to set this up.

 

Commands

  • ad – Show to player link to advertisement. Console – disabled.
  • cooldown – Show to player how much time is remaining before cooldown expiry. Console – disabled.
  • clearcooldown <player> – Clear cooldown for specified player. Console – enabled.
  • clearallcooldown – Clear cooldown for all players on the server. Console – enabled.
  • setmode ALL, SEQUENTIAL, RANDOM, WEIGHTED – Set the reward mode until server restart, (to make a permanent change you need to alter the physical config file)
  • givereward <player> – Give the player a reward manually

Permissions

To enable commands for players, add to your permission file – <Command>Command_you_want_to_enable</Command>
For example – if you want to enable ad and cooldown command add =>
<Command>ad</Command>
<Command>cooldown</Command>
To your permission file.

 

Additional permission – motdgd.immune – add this permission to players, that you don’t want to see ad on join and reminder messages (usefull for VIPs and Donators).

 

Special thanks to Alexr03 for beta testing this plugin.

 

Screenshots

Possible earnings

 

Changelog

2.0.3.0 –

  • Server url changed, please UPDATE UNTIL 1. 12. 2017 or the plugin won’t work.

2.0.2.0 –

  • Added permission motdgd.immune
  • Minor fixes

2.0.1.0 –

  • Added new commands (setmode, givereward) – see plugin description for more info.

2.0.0.0 –

  • Plugin got completely reworked, since MOTDgd server changed.

Default configuration


<?xml version="1.0" encoding="utf-8"?>
<MOTDgdConfiguration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <User_ID>0</User_ID>
  <Reminder_delay>5</Reminder_delay>
  <Number_of_ads_before_cooldown>1</Number_of_ads_before_cooldown>
  <Reward_mode>ALL</Reward_mode>
  <CooldownTime>15</CooldownTime>
  <Global_messages>true</Global_messages>
  <Ad_on_join>false</Ad_on_join>
  <Reapply_join_command>false</Reapply_join_command>
  <Give_reward_when_video_unavailable>false</Give_reward_when_video_unavailable>
  <AdvancedLogging>false</AdvancedLogging>
  <Executor_CSteamID />
  <Join_Commands>
    <string>broadcast (player) connected to the server!</string>
  </Join_Commands>
  <Rewards>
    <Reward Command="Reward" Probability="1" />
  </Rewards>
  <Translations>
    <Translation Identifier="EVENT_RECEIVED_REWARD_COOLDOWN" Text="You got your reward! Now you are on cooldown for {0} minutes" Color="default" />
    <Translation Identifier="EVENT_RECEIVED_REWARD_ADS_REMAIN" Text="You got your reward! You can watch {0} more ads before receiving cooldown." Color="default" />
    <Translation Identifier="LINK_RESPONSE" Text="Here's your link!" Color="!not_required!" />
    <Translation Identifier="EVENT_RECEIVED_REWARD_ADS_GLOBAL" Text="{0} received his reward by watching ad. Get your reward with /ad command" Color="default" />
    <Translation Identifier="REMINDER_MESSAGE" Text="Get your reward by using /ad command!" Color="default" />
    <Translation Identifier="REMINDER_MESSAGE_JOIN" Text="oin commands have been reapplied!. Get your reward by using /ad command!" Color="default" />
    <Translation Identifier="COOLDOWN_EXPIRED" Text="Your cooldown has just expired!" Color="default" />
    <Translation Identifier="COOLDOWN" Text="You already received reward and now are on cooldown!" Color="default" />
    <Translation Identifier="COOLDOWN_REMAINING" Text="You can receive a new reward in {0} minutes!" Color="default" />
    <Translation Identifier="NOT_ON_COOLDOWN" Text="You can watch ad right now!" Color="default" />
    <Translation Identifier="REQUEST_LINK_MESSAGE" Text="Requesting your ad." Color="default" />
    <Translation Identifier="COMPLETED_WITHOUT_VIDEO" Text="Unfortunately we didn't have any video for you, so you can't receive your reward." Color="default" />
  </Translations>
</MOTDgdConfiguration>

Default english translation


Commands and permissions


/ad

Permissions: ad

Generates link to advertisement page. After completion gives player reward.


/cooldown

Permissions: cooldown

Tells player how much time is left before cooldown expiry.


/clearallcooldown

Permissions: clearallcooldown

Clears all cooldowns on the server.


/clearcooldown <player>

Permissions: clearcooldown

Clears cooldown for player.


/setmode <ALL | SEQUENTIAL | RANDOM | WEIGHTED>

Permissions: setmode

Set the reward mode until server restart, (to make a permanent change you need to alter the physical config file).


/givereward <player>

Permissions: givereward

Give the player a reward manually.


Git changelog


113a5ee69297e55 2017-05-03 09:15:02

Internal chnages

    8c9f8bafa5e5f5e 2017-02-11 20:00:46

    Minor bugfix (Null exception at remove_cooldown_loop)

      b0bee823dd3163a 2017-02-01 19:34:27

      Minor bugfixes

        0fb89361922c1ad 2016-11-21 11:16:14

        version number fix

          ce74b82101d3651 2016-11-21 11:11:51

          New hub url

            28a7384eac673e7 2016-11-21 11:09:33

            Revert "new hub version"

            • This reverts commit 09957f3c5bf957fc97fc9b39c895d041c28cce37.

            09957f3c5bf957f 2016-11-21 11:09:23

            new hub version

              74c255c205f8c32 2016-11-19 08:15:17

              Added motdgd.immune permission

                c84bc0a40f864fd 2016-11-14 21:47:12

                Added AdvancedLogging messages

                  0d68324a2df492a 2016-11-14 12:33:58

                  Hotifx (2.0.1.4)

                    29dea808354c373 2016-11-13 15:59:51

                    Fixed join commands

                      93b3d31d5dc14c2 2016-11-13 14:17:37

                      Version rerelease

                        943a9280b1c0f97 2016-11-13 12:38:01

                        Minor bugfixes and improvements

                          e3ea5c0d5ae66a2 2016-11-12 20:25:04

                          Minor bugfix, change command syntax

                            86951ba7877897c 2016-11-12 19:38:25

                            Minor fix

                              ae1138796786b1a 2016-11-12 19:35:29

                              Minor changes, code optimalization

                                28cbf416922eacd 2016-11-09 20:51:19

                                Added new commands (setmode, givereward)

                                  3f196cdfebedd44 2016-11-07 16:22:51

                                  Build fix

                                    3410201aaef8d49 2016-11-07 16:15:34

                                    Edited dependencies

                                      c354450a2b58d89 2016-11-07 16:11:42

                                      Another change

                                        56d439b94b2621b 2016-11-07 16:07:55

                                        lib change

                                          f2847ad1b233016 2016-11-07 16:03:55

                                          Initial upload

                                            Download

                                            Build #24
                                            By downloading this file, you agree to our license terms.

                                            Repository

                                            github.com

                                            License

                                            MIT

                                            Author

                                            LinhyCZ