diff options
Diffstat (limited to 'source/cServer.cpp')
-rw-r--r-- | source/cServer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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)
{
|