Permission probleme
#1
Hello,

My first plugin advance but i have probleme which permission this my code of Info.lua :

-- Info.lua

-- Implements the g_PluginInfo standard plugin description

g_PluginInfo =
{
	Name = "Position",
	Date = "2015-02-15",
	Description = "Plugin who tp to your position setup",
	
	Commands = {
	["/setpos"] =
		{
			Permissions = "Position.setpos",
			Handler = GetPos,
			HelpString = " Set your  position",
		},
		
	["/tp"] =
		{
			Permissions = "Position.setpos",
			Handler = GetTp,
			HelpString = " Tp to your position",
		},
	}, --Commands
	
	ConsoleCommands = {},
	
	Permissions =
	{
		["Position.setpos"] =
		{
			Description = "Allows the players to setup home.",
			RecommendedGroups = "admins",
		},
	}
}

This code work but everyone can use it, normally only rank admin can use this command but here all rank can use it how to fix that ?
Reply
Thanks given by:
#2
It should be "Permission" instead of "Permissions".
Reply
Thanks given by:
#3
Oh my god i'm so sorry for that :/

But i have a other error :p

RecommendedGroups = "vips",

If i put "vip, VIP, vips or VIPS" every time i get this error " you have not permission" but my test player is rank VIP how can fix that ?

Sorry for my answers i'm very new in the lua ^^
Reply
Thanks given by:
#4
This should be in plugin discussion, not requests?
Reply
Thanks given by:
#5
@bearbin yes you're right Smile
Reply
Thanks given by:
#6
The RecommendedGroups is just a text that will be displayed in the plugin documentation, MCServer doesn't use that setting for anything. Each server admin needs to grant the specific permissions for their users on their server.
Reply
Thanks given by:
#7
Sorry for bad Section ^^

Ok but how make a permission level to my plugin without "RecommendedGroups" ?
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)