I just found the Timed Permissions plugin from LaserHydra that would solve my issue!
Godmode
Moved
Total Downloads: 30,059 - First Release: Oct 23, 2014 - Last Update: Oct 27, 2017
- 4.76667/5, 60 likes
-
I have a error when I type /god Player, even removing the god of the player, still immortal, how can I fix it?
-
@Wulf
defaultInformAttacker not works. No messages are typed anymore.
Damages disabled when god is enabled not works too. -
Godmode.cs
Code:void OnPlayerLoot(PlayerLoot lootInventory, UnityEngine.Object targetObject) { var player = lootInventory.GetComponent<BasePlayer>(); var target = targetObject as BasePlayer; if (!target) return; if (gods[target.userID] != null) NextTick(() => { player.EndLooting(); SendChatMessage(player, noGodLoot); }); }
Thanks.Last edited by a moderator: Feb 24, 2016 -
I'm not dev too but probably something in this list
-
Wulf Community Admin
-
Ahhh ok
-
Thanks I'll correct that value on my sever and post back changed lines.
Changed line 244 on Godmode.cs
From:
void OnPlayerLoot(PlayerLoot lootInventory, UnityEngine.Object targetObject)
To:
void OnLootPlayer(BasePlayer lootInventory, UnityEngine.Object targetObject)
No errors up to now.Last edited by a moderator: Feb 24, 2016 -
Thanks @[NRNS]Ynot!
Still getting the permission prefix Warning though:
-
Yes looking at permissions myself at the moment too, doing some digging will post any findings.
-
Wulf Community Admin
-
-
Wulf Community Admin
-
Code:void OnLootPlayer(BasePlayer player, UnityEngine.Object targetObject) { if (!BasePlayer) return; if (gods[BasePlayer.userID] != null) NextTick(() => { player.EndLooting(); SendChatMessage(player, noGodLoot); }); }
This works for me:
Code:void OnLootPlayer(BasePlayer player, UnityEngine.Object targetObject) { var target = targetObject as BasePlayer; if (!target) return; if (gods[target.userID] != null) NextTick(() => { player.EndLooting(); SendChatMessage(player, noGodLoot); }); }
changed all occurences of, canusegodmode to godmode.allowed, in file Godmode.cs no more warnings on permissions.
Just make sure when giving permissions to use godmode.allowed insteadLast edited by a moderator: Feb 24, 2016 -
Wulf Community Admin
Attached Files:
-
-
Thanks for the updated version !!
I did also updated other plugins the same way and they are working. -
any ideas why when i disable it i take no damage, i bleed but no damage
-
its saying i don't have the perms to use where do i add it so i can use it
-
Wulf Community Admin
-
grant group owner god
and
grant user owner /god
neither of these worked
[DOUBLEPOST=1456673762][/DOUBLEPOST]would you be able to send me a list of perms that i cant try add