bananek Napisano 1 Marca 2020 Zgłoś Udostępnij Napisano 1 Marca 2020 Witam mam problem ze skryptem na ślub. Osoba która wysyła propozycję ślubu dostaje info, że to zrobiła, a do tej drugiej osoby nie dochodzi informacja, że ta pierwsza go zaprosiła. Niżej zamieszczam skrypt oraz błędy jakie wyskakują po wpisaniu /sk reload all. Liczę na szybką pomoc, pozdrowionka. # #Written by xTheAurisx #Version 0.2v # options: #Permissions MarryBasePermission: marry.marry MarryTpPermission: marry.tp MarrySetHomePermission: marry.sethome MarryHomePermission: marry.home MarryGiftPermission: marry.gift #Messages chatTag: [LC] marryYouSent: You sent &e%player arg%&r a marriage proposal! marryYouReceived: &e%player%&r would like to marry you! Type /marry %player% to accept, or /marry decline %player%" to decline. marryAlready: You are already married! marryOtherAlready: That player is already married to %{marry.%player arg%}%! marryToThatPlayer: You are already married to that player! marryBroadcast: &a%player% married %player arg%! divorceBroadcast: &c%player% divorced %{marry.%player%::0}%! marryYouAreNot: You are not married. playerArgPermissionDenied: The player you want to marry does not have permission to use Marriage. marryHomeWasSetOther: You're partner set your home at %{marry.%player%::1}% marryYouSetHome: You set your marriage home at %location of player% marryHomeNotSet: Your marriage home is not set! Do /marry sethome to set it! partnerTeleportedToYou: Your partner teleported to you! youTeleported: You teleported to your partner! youSentGift: You sent %{marry.%player%::2}% to your partner! giftReceived: You received %{marry.%player%::2}% from your partner! commandNotFound: Command not found, do &a/marry help&r for help. proposalPlayerExpired: Your marriage proposal to %player arg% has expired. proposalFromPlayerExpired: Marriage proposal expired. declinedPlayer: You have denied %player arg%'s marriage proposal. marryDeclined: Your marriage proposal was declined. noProposal: There is no proposal to that player. pleaseWaitForExpiration: Please wait for your current proposal to expire before sending another. #Help Menu MarryHelpMarryPlayerCommand: Sends a marriage proposal to a player, or accepts a marriage proposal from that player. MarryHelpTeleportCommand: Teleports to your partner. MarryHelpSetHomeCommand: Sets your marriage home to your location. MarryHelpHomeCommand: Teleports to your set marriage home. MarryHelpGiftCommand: Sends the item stack you are holding to your partner. MarryHelpDivorceCommand: Divorces you and your partner. #Options enableProposalCooldown: true ProposalCooldown: 20 seconds teleportDelay: 0 seconds #Set to 0 to disable informOnTeleport: true itemBlacklist: 0 air, enchanted book #items that can not be sent through marry gift, air is disabled to reduce spammy messages, and enchanted book is disabled because it does not work. command /marry [<player>] [<text>]: permission: marry.marry trigger: if "%arg 1%" is "%player%": message "{@chatTag} You can't marry yourself." stop if text arg is not set: if player arg is not set: message "{@chatTag} Marriage Version 1.2 - Written by iwolfking." message "{@chatTag} Use &a/marry help&r for commands." stop player argument has permission "{@MarryBasePermission}": if {marriage.proposal.%player%} is set: message "{@chatTag} {@pleaseWaitForExpiration}" {marry.%player%} is not set: {marry.%player arg%} is not set: {marriage.proposal.%player arg%} is player: clear {marriage.proposal.%player%} set {marry.%player%} to player arg set {marry.%player arg%} to player broadcast "{@chatTag} {@marryBroadcast}" set {marry.%player%::0} to "%{marry.%player%}%" parsed as player set {marry.%player arg%::0} to "%{marry.%player arg%}%" parsed as player stop else: {marriage.proposal.%player%} is not set: set {marriage.proposal.%player%} to "%player arg%" message "{@chatTag} {@marryYouSent}" message "{@chatTag} {@marryYouReceived}" to player arg if {@enableProposalCooldown} is true: set {_MarriageProposalTimer} to now while {marriage.proposal.%player%} is "%player arg%": wait 1 second if difference between {_MarriageProposalTimer} and now is greater than {@ProposalCooldown}: clear {marriage.proposal.%player%} message "{@chatTag} {@proposalPlayerExpired}" message "{@chatTag} {@proposalFromPlayerExpired}" to player arg else: message "{@chatTag} {@marryOtherAlready}" else: message "{@chatTag} {@marryAlready}" else: message "{@chatTag} {@playerArgPermissionDenied}" stop else: if text arg is "decline": if player has permission "{@MarryBasePermission}": {marry.%player%} is not set: {marry.%player arg%} is not set: if {marriage.proposal.%player arg%} is "%player%": clear {marriage.proposal.%player arg%} message "{@chatTag} {@marryDeclined}" to player arg message "{@chatTag} {@declinedPlayer}" stop else: message "{@chatTag} {@noProposal}" stop if text arg is "tp": if player has permission "{@MarryTpPermission}": if {marry.%player%} is set: if {@teleportDelay} is 0 seconds: teleport player to {marry.%player%::0} if {@informOnTeleport} is true: message "{@chatTag} {@partnerTeleportedToYou}" to {marry.%player%::0} message "{@chatTag} {@youTeleported}" stop else: message "{@chatTag} You will teleport to your partner in &c{@teleportDelay}." wait {@teleportDelay} teleport player to {marry.%player%::0} if {@informOnTeleport} is true: message "{@chatTag} {@partnerTeleportedToYou}" to {marry.%player%::0} message "{@chatTag} {@youTeleported}" stop else: message "{@chatTag} {@marryYouAreNot}" if text arg is "sethome": if player has permission "{@MarrySetHomePermission}": if {marry.%player%} is set: set {marry.%player%::1} to location of player set {marry.%{marry.%player%::0}%::1} to location of player message "{@chatTag} {@marryHomeWasSetOther}" to {marry.%player%::0} message "{@chatTag} {@marryYouSetHome}" stop else: message "{@chatTag} {@marryYouAreNot}" stop if text arg is "home": if player has permission "{@MarryHomePermission}": if {marry.%player%::1} is set: if {@teleportDelay} is 0 seconds: teleport player to {marry.%player%::1} stop else: message "{@chatTag} You will teleport to your marriage home in &c{@teleportDelay}." wait {@teleportDelay} teleport player to {marry.%player%::1} stop else: message "{@chatTag} {@marryHomeNotSet}" stop if text arg is "gift": if player has permission "{@MarryGiftPermission}": set {marry.%player%::2} to "%tool of player%" parsed as item if "{@itemBlacklist}" contains "%{marry.%player%::2}%": message "{@chatTag} You can not send &c%{marry.%player%::2}%&r to your partner!" stop add {marry.%player%::2} to {marry.%player%::0} remove {marry.%player%::2} from player message "{@chatTag} {@youSentGift}" message "{@chatTag} {@giftReceived}" to {marry.%player%::0} stop if text arg is "help": message "{@chatTag} Help:" message "{@chatTag} &a/marry <player>&r: {@MarryHelpMarryPlayerCommand}" message "{@chatTag} &a/marry tp&r: {@MarryHelpTeleportCommand}" message "{@chatTag} &a/marry sethome&r: {@MarryHelpSetHomeCommand}" message "{@chatTag} &a/marry home&r: {@MarryHelpHomeCommand}" message "{@chatTag} &a/marry gift&r: {@MarryHelpGiftCommand}" message "{@chatTag} &a/divorce <player>&r: {@MarryHelpDivorceCommand}" stop else: message "{@chatTag} {@commandNotFound}" command /divorce <player>: permission: marry.marry trigger: if {marry.%player%} is player arg: broadcast "{@chatTag} {@divorceBroadcast}" clear {marry.%player%} clear {marry.%player%::*} clear {marry.%player arg%::*} clear {marry.%player arg%} clear {marriage.proposal.%player%} clear {marriage.proposal.%player arg%} Błędy: [21:23:54 ERROR]: Invalid use of quotes ("). If you want to use quotes in "quoted text", double them: "". (Marry.sk, line 87: message "{@chatTag} {@marryYouReceived}" to player arg') [21:23:54 WARN]: Delays less than one tick are not possible, defaulting to one tick. (Marry.sk, line 127: wait {@teleportDelay}') [21:23:54 WARN]: Delays less than one tick are not possible, defaulting to one tick. (Marry.sk, line 155: wait {@teleportDelay}') Cytuj Odnośnik do komentarza Udostępnij na innych stronach More sharing options...
Endrju Napisano 17 Marca 2020 Zgłoś Udostępnij Napisano 17 Marca 2020 Skąd pobrałeś ten skrypt? Próbowałeś skontaktować się z autorem? Cytuj Odnośnik do komentarza Udostępnij na innych stronach More sharing options...
Rekomendowane odpowiedzi
Dołącz do dyskusji
Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.