Discord Thread CAN YOU HELP ME FIX SKRIPT 2.6.4

  • 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 community!

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

This thread came from the skUnity Discord. You can't reply to it here but if you join the skUnity Discord, you'll be able to post a reply there. The thread link is part of the thread's message.
Status
Not open for further replies.
1️⃣ line 17, 18, and 20 literally tell you: you need to use
attacker or victim in place of player in your variables in on death
events
2️⃣ if you <:readthedocs:801635778739699722>, you would find out it's just
player's balance, so remove the word vault

3️⃣
repeat with each player
does not exist; what are you trying to do here?
4️⃣ you can't use
||
in code like that; again, what are you trying to do?

Posted by: tobyminceraft from the skUnity Discord.
 
This is the source code of the Minecraft plugin, which allows players to hunt each other and kill each other to earn money in the game.

Specifically, the /truyna command allows the player to enter the target name and the bounty amount for querying that target. The plugin will check if the player's balance is sufficient to pay the bonus and determine if the bonus level is greater than 50.

When someone kills the target, the plugin adds the bounty to the killer's balance and subtracts the bounty from the target's balance. If the target is killed within the most set amount of time (300 seconds here), the plugin will return 80% of the bounty to the player as the target.

In addition, the plugin has a job that repeats with each player, checking if a player has played for too long without being killed or evading being killed, and if this happens, the plugin will deduct the player's money there and put them in jail for 30 minutes.
this is what i do

Posted by: G1NO from the skUnity Discord.
 
Status
Not open for further replies.