Cuberite Forum
[Under construction] Auth plugin - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Plugins (https://forum.cuberite.org/forum-1.html)
+--- Forum: Plugin Discussion (https://forum.cuberite.org/forum-8.html)
+--- Thread: [Under construction] Auth plugin (/thread-152.html)

Pages: 1 2


RE: [Under construction] Auth plugin - Zehir - 06-12-2011

Somebody can help for this function? AddKeyName
PHP Code:
local UsersIni cIniFile("users.ini")
   

      if ( 
UsersIni:ReadFile() == true then                                       -- Lit le fichier ini
         UsersIni
:AddKeyName(Player:GetName())
         
UsersIni:WriteFile()
         return 
false
      end 

This not create the keyname [Playername]


Edit: I found the problem. You can not add the key if the file is present but empty.


RE: [Under construction] Auth plugin - Tim - 08-16-2011

Hows it going with this Zehir? Smile