Problems with world chat command script

Hey, I am running on TrinityCore rev. 98a9a088bf8c+ 2014-04-06 00:17:18 +0200 (master branch) (Win64, Release), and I added this script http://pastebin.com/FA0a3dJc.

Everything compiled without errors but when I get ingame and try out the .world command it says that there is no such command. Tried it on both player and admin (3) accounts with the same result.

Any ideas how I can get this working?

Thanks in advance.

Account security level (SEC_PLAYER) is no longer used in command scripts, use RBAC permissions instead. You can find an example in any existing command script.

Thank you. I modified the script as you said and everything seems to work fine now; the command executes as it should from both player and Staff accounts.