flagOfTheDay plugin released!

Expand and mod your server.
Post Reply
User avatar
the panda next door
Private First Class
Private First Class
Posts: 42
Joined: Sun Mar 16, 2008 3:55 am
Location: Las Vegas

flagOfTheDay plugin released!

Post by the panda next door » Mon Jun 09, 2008 10:14 pm

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++.
Attachments
flagOfTheDay.cpp
source code
(2.44 KiB) Downloaded 329 times

User avatar
the panda next door
Private First Class
Private First Class
Posts: 42
Joined: Sun Mar 16, 2008 3:55 am
Location: Las Vegas

mac binary

Post by the panda next door » Mon Jun 09, 2008 10:27 pm

I also forgot to post the mac binary.
So....Here it is!
Attachments
flagOfTheDay.zip
Mac Leopard binary for ppc.
It might still work on intel. Please test it.
(13.05 KiB) Downloaded 278 times

F687/s
Private First Class
Private First Class
Posts: 369
Joined: Sun Dec 31, 2006 8:30 pm

Post by F687/s » Tue Jun 10, 2008 8:26 pm

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...

User avatar
the panda next door
Private First Class
Private First Class
Posts: 42
Joined: Sun Mar 16, 2008 3:55 am
Location: Las Vegas

Post by the panda next door » Tue Jun 10, 2008 9:29 pm

Yes, once the file is changed, the flag of the day changes too.
You don't need to restart the server.

User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5191
Joined: Fri Dec 13, 2002 4:11 am
Location: https://github.com/OmniTanks
Contact:

Post by JeffM » Tue Jun 10, 2008 11:09 pm

what license is this code released under? Please include a license file with the package.
ImageJeffM

User avatar
the panda next door
Private First Class
Private First Class
Posts: 42
Joined: Sun Mar 16, 2008 3:55 am
Location: Las Vegas

Post by the panda next door » Thu Jun 12, 2008 2:01 pm

I dont have a lisence.
I really dont care about plagerism.

User avatar
joevano
General
General
Posts: 1863
Joined: Sat Jun 18, 2005 1:08 pm
Location: South Bend, Indiana, USA

Post by joevano » Thu Jun 12, 2008 2:41 pm

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
There is nothing worse than aggressive stupidity. -- Johann Wolfgang von Goethe
"How many legs does a dog have if you call his tail a leg? Four. Calling a tail a leg doesn't make it a leg." -- Abraham Lincoln

Enigma
Private First Class
Private First Class
Posts: 211
Joined: Sat Apr 23, 2005 3:13 am

Post by Enigma » Thu Jun 12, 2008 8:44 pm

There is also a fairly large list of GPL-compatible licenses here.

User avatar
the panda next door
Private First Class
Private First Class
Posts: 42
Joined: Sun Mar 16, 2008 3:55 am
Location: Las Vegas

Post by the panda next door » Fri Jun 13, 2008 2:07 pm

Here is the lisense.
Attachments
gpl.txt
(34.32 KiB) Downloaded 243 times

User avatar
Zehra
Private First Class
Private First Class
Posts: 710
Joined: Sun Oct 18, 2015 3:36 pm
Location: Arctic
Contact:

Re: flagOfTheDay plugin released!

Post by Zehra » Fri May 04, 2018 11:25 pm

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
Those who are critical of me, I'll likely be the same of them. ~Zehra
The decisions we make are the ones we look forward too and the ones we regret. ~Zehra
There's a difference between knowing my name and knowing me, one shows respect to my name and the other is to who I am. ~Zehra

See where I've last been active at Strayers.
Visit BZList.net for a modern HTML5 server stats site.

Click here to view the 101 Leaderboard & Score Summaries Last updated 2020-09-15 (YYYY-MM-DD)
Latest 101 thread

Post Reply