Please give us the context part of the add-on also, we need the entire log.
But heres some things i noticed:
IDK if this is a prefrence, but i see people putting %client before %target.
You are doing a bad job at copying someone else's code, on line 4, it should be
if(!%client.isAdmin)
This is the only piece of code i'll spoon-feed you. The ! stands for NOT. So you're testing for if %client ISN'T admin, THEN execute return;
I'm not sure about this one whatsoever, but i'm pretty sure, that it should be if(%client.name = %target.name)
Could be both
This code is a loving mess, the indentation is stuff, your notifying functions are a mess. Is this a mashup of different mods? Echo, announce, messageclient etc. If you want to notify the one who enters the command, use %client.chatMessage("\C6White text here"); or messageClient(%client,'',"\C6White text here"); If you want to say something to all players, i suggest talk(text); for this. It would make the add-on seem actually decently made to the average blockhead, if the console talks as a error. I could nip-pick errors here all day, but i have to go. I'm guessing some other nearly decent coder will take over my job as a smart-ass.
As a side-note, i would like to apologize for being crude here, everyone was this bad at some point, keep on trying and keep on asking
EDIT: Looks like zeblote gave you a complete fix for everything, although he spoon-fed you pretty much the entire code -.- Do me a favor and actually re-write this and think everything over