Author Topic: Agreement Rules  (Read 5006 times)



Installation
Put Server_AgreementRules.zip into the Add-Ons folder in your Blockland folder.


What is Agreement Rules?
Any player must agree with Host's Rules allow join the server, If disagree then the player will kick out of the server.

Can i change the rules in the notepad?
config/server/agreementrules.txt (Edit on the notepad)

Can I change the rule in the script?
You can edit the script.

NOTE: Disable Prompt Event or it will not work.
Quote
Xalos: There's no way to fix Prompt Events.

I did tested on this below list before I release this mod.
1.Solo Server-worked
2.Internet Server-worked
3.Dedicated Server-worked
Disable Prompt event- worked
Enable Prompt event- not work (NO button)

Credits:
Furling- Lead on this project/code/beta tester
Kalphiter- original code (file load notepad)
Danny Boy- fix code/beta tester
Pacnet2013- help code/beta tester
Xalos- help and fix code/beta tester

Change Verison
V1 to V2 - correct grammar.
« Last Edit: June 25, 2013, 01:47:49 PM by Furling² »

not to insult, but change "[name] agreed with Host's Rules" to "[name] agreed with the Host's Rules"

and "You were disagree with Host's Rules." to "You disagreed with the Host's Rules."

or make these messages an RTB pref for, say, RPG "laws" or any wacky message


cool, though

Just need to fix your grammar and you'll be good.

Here's something I didn't catch earlier :

Number One - It appears as if your add-on is copying the data from the default rules file to the rules file which the host edits in config/server/ every single time the add-on is executed meaning that the host can't really edit the rules unless he/she edits the default rules file first.

An if(!isFile("config/server/agreementrules.txt")) check can detect if the file already exists or not and then if not, it can copy the default rules file but if so, it can just skip directly to reading the config/server/agreementrules.txt file and store them with $Rules_Title and $Rules_Body.


Number Two - The default rules file is defined at an incorrect location.

Code: [Select]
$DefaultRules_File = "config/server/add-ons/agreementrules.txt";

should become

Code: [Select]
$DefaultRules_File = "Add-Ons/Server_AgreementRules/agreementrules.txt";

I always considered "Disagree/Agree" things completely useless.
If you disagree, and you get kicked, why in the name of God would someone disagree and not just agree even if they don't agree, it's not like they go to federal jail or something.
I mean, this as add-on is completely useless with no difference than the other rules add-on, except that this has a button that basically kicks the user for a ridiculous reason when there's no actual way to agree or disagree without actual gameplay which proves the decision.

why would anyone disagree if they knew they would be kicked, even if I disagreed with the rules I would click agree

I always considered "Disagree/Agree" things completely useless.
If you disagree, and you get kicked, why in the name of God would someone disagree and not just agree even if they don't agree, it's not like they go to federal jail or something.
I mean, this as add-on is completely useless with no difference than the other rules add-on, except that this has a button that basically kicks the user for a ridiculous reason when there's no actual way to agree or disagree without actual gameplay which proves the decision.
I sort of like this though, it sort of gives away the excuse of saying "I didnt see the rules" or something. IMO its just another way to incorporate /rules but this way they actually have to click Agree rather than an "ok" button....theres really no difference just that if someone is fighting against an admin/mod about the rules or getting kicked/banned from a server.

why would anyone disagree if they knew they would be kicked, even if I disagreed with the rules I would click agree
Thats exactly the point though, you are sort of forced to accept the rules. Thats the same with licensing products/programs for computers etc.

Thats exactly the point though, you are sort of forced to accept the rules. Thats the same with licensing products/programs for computers etc.
yes but this isn't a terms of agreement, its not backed up by the law or anything, its just a yes or no question

what I'm saying is it would be better if it were just an "ok" box because no one is going to disagree knowing they will be auto kicked

I sort of like this though, it sort of gives away the excuse of saying "I didnt see the rules" or something. IMO its just another way to incorporate /rules but this way they actually have to click Agree rather than an "ok" button....theres really no difference just that if someone is fighting against an admin/mod about the rules or getting kicked/banned from a server.
Thats exactly the point though, you are sort of forced to accept the rules. Thats the same with licensing products/programs for computers etc.

As soon as you join and spawn and play you are "forced" to accept the rules otherwise there would be no rules.

Change "You were disagree with Host's Rules." to "You disagreed with the host's rules.".

Change "You were disagree with Host's Rules." to "You disagreed with the host's rules.".
Change Verison
V1 to V2 - correct grammar.

Any civilized game needs this :3

"You were disagree" oh my god lol

OT: I will download this because it is a pretty sensible thing for my server.

Certainly a good mod, I like how cubelands actually makes things useful other than garbage that'll never be used.

If you don't mind me saying
10/10 perfect addition to the modding community.

Certainly a good mod, I like how cubelands actually makes things useful other than garbage that'll never be used.

If you don't mind me saying
10/10 perfect addition to the modding community.
But... this is garbage. Only an idiot would select no.