| Blockland Forums > General Discussion |
| Why do some add-ons break the auto admin message? |
| (1/1) |
| ScratchTehEPICSpaceDude:
Some add-ons, such as the deAsciify script, break the auto admin message. It also says +- no auto admin in the console when auto admins join. Why is this? This is a little annoying. |
| nerraD:
i think you have to return the AutoAdminCheck parent. |
| otto-san:
--- Quote from: nerraD on August 29, 2012, 11:33:17 AM ---i think you have to return the AutoAdminCheck parent. --- End quote --- Correct. deAsciify fails to do this. --- Code: --- function GameConnection::autoAdminCheck(%this) { Parent::autoAdminCheck(%this); %name=doClientNameCheck(%this.bl_id,deAsciify(%this.name),2); %this.useThisName=%name; if($Pref::Server::deAsciify::AnnounceNameChange && %this.useThisName!$=%this.name) schedule(100,0,"messageAll",'',"\c4DeAsciify: \c1Name has been changed to\c3" SPC %name @ "\c1."); } --- End code --- If you go into the code and replace that with this it should work: --- Code: --- function GameConnection::autoAdminCheck(%this) { %r = Parent::autoAdminCheck(%this); %name=doClientNameCheck(%this.bl_id,deAsciify(%this.name),2); %this.useThisName=%name; if($Pref::Server::deAsciify::AnnounceNameChange && %this.useThisName!$=%this.name) schedule(100,0,"messageAll",'',"\c4DeAsciify: \c1Name has been changed to\c3" SPC %name @ "\c1."); return %r; } --- End code --- |
| Lugnut:
this is likely the same reason all of them cause problems. simply do as stated above, but make sure %r isn't in use! |
| Navigation |
| Message Index |