Page 1 of 1

flagOfTheDay plugin released!

Posted: Mon Jun 09, 2008 10:14 pm
by the panda next door
I am now releasing my first plugin, flagOfTheDay plugin.
flagOfTheDay gives the 'flag of the day' to anyone who enters the command '/flagoftheday'

This works on a 2.0.8+ server.

How to set up and use:

Step 1: Create a file named flagOfDay.conf and put it where your conf files go. flagOfDay.conf must be the name!!! in flagOfDay.conf, place the ID of the flag you want to be the flag of the day and only the flag you want to be the flag of the day. Example:

Code: Select all

GM
note: the flag must already be on the map if the player is to be given the flag of the day.

Step 2: Load the plugin into bzfs.


If you ever want to change the flag of the day during the game (or not), either change the flag ID in flagOfDay.conf or have an admin or anyone with the CHFLAG permission change the flag by running the /changeflagoftheday command. /changeflagoftheday will change the flag of the day to the specified flag. (/changeflagoftheday <flagType> There is no need to restart the server.

-also, if anyone needs help compiling the plugin, pm me. I have no experience with C++.

mac binary

Posted: Mon Jun 09, 2008 10:27 pm
by the panda next door
I also forgot to post the mac binary.
So....Here it is!

Posted: Tue Jun 10, 2008 8:26 pm
by F687/s
One question:

Once you start the plugin, can you change the flagOfDay.conf file to use a different flag (maybe via cron)? Like, if you load the plugin with flagofDay.conf containing "GM", and then change it so it reads "L", would it give players Laser?

Seems like a neat idea, though it may garner the same abuse that the "Unlimited /flag give" servers have. But it's limited to one flag only, and it's a lot cleaner than dumping 200 of the same flag onto the server. Interesting to see how it fares...

Posted: Tue Jun 10, 2008 9:29 pm
by the panda next door
Yes, once the file is changed, the flag of the day changes too.
You don't need to restart the server.

Posted: Tue Jun 10, 2008 11:09 pm
by JeffM
what license is this code released under? Please include a license file with the package.

Posted: Thu Jun 12, 2008 2:01 pm
by the panda next door
I dont have a lisence.
I really dont care about plagerism.

Posted: Thu Jun 12, 2008 2:41 pm
by joevano
broken tank over there wrote:I dont have a lisence.
I really dont care about plagerism.
We do care about plagiarism, whether you do or not. We have a policy on map licensing, and really it applies to anything that is released on these forums. We realize you do not care NOW, and may never care, but it is there to protect you, us, and the people who download it, in the event that you do care in the future. Don't come back and say I won't, because I know you can't see the future and perspectives change, events happen everyday that cause us to change our minds on issues. Please add a license file. I am attaching a link to the map licensing post for you, there are links to the different types of licenses in there.

http://my.bzflag.org/bb/viewtopic.php?t=10575

Posted: Thu Jun 12, 2008 8:44 pm
by Enigma
There is also a fairly large list of GPL-compatible licenses here.

Posted: Fri Jun 13, 2008 2:07 pm
by the panda next door
Here is the lisense.

Re: flagOfTheDay plugin released!

Posted: Fri May 04, 2018 11:25 pm
by Zehra
Updated to 2.4

flagOfTheDay

Help file:

Code: Select all

FlagOfTheDay

This plug-in provides the 'flag of the day' with a simple command.
Just type in and enter '/flagoftheday' to get the flag of the day.
Documentation:

Code: Select all

1. Create a file called 'flagOfDay.conf and add in the flag name of your choice. (Must be a valid flag.)
Note: It is not the full name, just the 'the flag type, so 'SHield' does not work, but 'SH' does.

2. Update groups which will have the 'CHFLAG' perm.
Note: This is required now if you wish for someone to change the flag of the day.

3. Place the file right next to BZFS, since it is needed for the configuration.
Start up the server and make sure it is loaded.

4. If you wish to change the flag of the day, just use '/changeflagothefday [flagtype] to change the flag.
Note: You must have the "CHFLAG' permission for this to work, and not use brackets when typing in '/changflagoftheday'.
-Zehra