Solved VIP++ + Home system for VIP players

In magma you should be able to:
JavaScript:
var path = Plugin.Path;
var path = path.Replace("MyPluginName", "OtherPluginName");
var path = path.Replace("MyPluginName", "OtherPlugin'sIniName");
 
If I have
JavaScript:
if(isVip(Player) == true || Player.Admin == true){
The plugin will not load, If I remove it it loads fine.
 
If I have
JavaScript:
if(isVip(Player) == true || Player.Admin == true){
The plugin will not load, If I remove it it loads fine.
function On_PluginInit(){
Player.Message("asd: "+ Util.GetRootFolder());
}

You dont have a player there. You can only do Server.Broadcast on plugin init.

Well, if we cannot find a solution we might able to add a method inside fougerite i guess.
 
I need it only for VIP players will try to somehow pass and see. Thank you for the advice so far
 
XGSRLPC.png
 
function On_PluginInit(){
Player.Message("asd: "+ Util.GetRootFolder());
}

You dont have a player there. You can only do Server.Broadcast on plugin init.

Well, if we cannot find a solution we might able to add a method inside fougerite i guess.
Yeah nothing shows up when I reload the server
 
"You dont have a player there. You can only do Server.Broadcast on plugin init."

JavaScript:
function On_PlayerConnected(Player){
    if(Player.Admin){
        Player.Message("asd " + Util.GetRootFolder());
    }
}
Nothing happened, Even removed if(Player.Admin){
 
Nothing happened, Even removed if(Player.Admin){
JavaScript:
function On_PlayerConnected(Player){
 try {
  Player.Message("Folder :  "+ Util.GetRootFolder());
 } 
 catch (ex) {
  Server.Broadcast(ex.message);
 }
}