Added the permission "builtin.regeneratechunk" needed for regenerating chunks using a command.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@455 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
parent
c51a4b9469
commit
23cfcc6ffd
@ -495,6 +495,11 @@ bool cServer::Command( cClientHandle & a_Client, const char* a_Cmd )
|
||||
|
||||
if (split[0].compare("/regeneratechunk") == 0)
|
||||
{
|
||||
if (!a_Client.GetPlayer()->HasPermission("builtin.regeneratechunk"))
|
||||
{
|
||||
a_Client.Send(cPacket_Chat(cChatColor::Green + "You don't have permissions to regenerate chunks"));
|
||||
return true;
|
||||
}
|
||||
int ChunkX, ChunkZ;
|
||||
if (split.size() == 1)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user