summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-09-06 20:10:58 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-09-06 20:10:58 +0000
commitea06cf32502c3c7b2a5eefa4421c85f7a3315ee3 (patch)
tree8fee8418704b2dd01955f336b90bd925f36d36dd /src/map/atcommand.c
parente3014f7b20b5df2843e3448c5327dda2641ddbdc (diff)
downloadhercules-ea06cf32502c3c7b2a5eefa4421c85f7a3315ee3.tar.gz
hercules-ea06cf32502c3c7b2a5eefa4421c85f7a3315ee3.tar.bz2
hercules-ea06cf32502c3c7b2a5eefa4421c85f7a3315ee3.tar.xz
hercules-ea06cf32502c3c7b2a5eefa4421c85f7a3315ee3.zip
Added new group permission as discussed with other developers "disable_commands_when_dead"
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16751 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index cceb3093e..8aaef2769 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -9322,6 +9322,10 @@ bool is_atcommand(const int fd, struct map_session_data* sd, const char* message
(*command == charcommand_symbol && info->char_groups[sd->group_pos] == 0) ) {
return false;
}
+ if( pc_isdead(sd) && pc_has_permission(sd,PC_PERM_DISABLE_CMD_DEAD) ) {
+ clif_displaymessage(fd, msg_txt(1393)); // You can't use commands while dead
+ return true;
+ }
}
// Check if target is valid only if confirmed that player can use command.