Cuberite Forum

Full Version: Permission probleme
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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 ?
It should be "Permission" instead of "Permissions".
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 ^^
This should be in plugin discussion, not requests?
yes you're right Smile
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.
Sorry for bad Section ^^

Ok but how make a permission level to my plugin without "RecommendedGroups" ?