Permission based player head drops

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Thunder Dong

Member
Apr 17, 2020
1
0
0
25
Hi, what I'm trying to do is set up a script that checks if a player has a specific permission, and then drops one of three player heads based on that permission. So if they have the skript.team1 permission, they drop the Team 1 leader's head etc. However I'm having trouble getting any entity to drop an item at all, for example if I use the example creeper script on the wiki:

on death of creeper:
drop 1 TNT

Nothing happens at all, the creeper just dies normally and that's it. Unless I'm missing something vital here that should work? Either way if anyone can help me make a script that checks for each team permission and drops the relevant head that'd be great. It's also vital that members of team 1 can't kill other members of team 1 to get team 1 leader skulls because I'd like to prevent farming in this manner.

I tried to make a simple script (below) but I get an error saying it doesn't recognise the condition/effect on the last line, anyone know why?
on death of player:
attacker doesn't have permission "headdrop.norse"
victim has permission "headdrop.norse"
drop the skull of %adels%
 
Status
Not open for further replies.