From 23cfcc6ffd8815a788992974d0f7e4c0824f8729 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Tue, 10 Apr 2012 12:32:39 +0000 Subject: 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 --- source/cServer.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source') diff --git a/source/cServer.cpp b/source/cServer.cpp index eff4e9fc0..d8e3506dc 100644 --- a/source/cServer.cpp +++ b/source/cServer.cpp @@ -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) { -- cgit v1.2.3