Discord Thread テレポート招待プラグインってどうやったら作れますか?

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

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.
Question:How can I make a teleport invite plugin?
message:tp invitation: /tpinvite(/tpi)
tp acceptance: /tpaccept(/tpa)
tp denied: /tpdenied (/tpd)
Question:
How can I make a teleport invite plugin?

Message:
tp invitation: /tpinvite(/tpi)
tp acceptance: /tpaccept(/tpa)
tp denied: /tpdenied (/tpd)

Posted by: kirea_413 from the skUnity Discord.
 
it's a script server, we don't deal with plugins here
code_language.skript:
command /tpa [<player>]:
    trigger:
        if arg 1 is not set:
            send "&8>> &4Wpisz nick gracza!"
            stop
        delete {tpa::%player%}
        delete {tpa::ocz::%player-arg%}
        set {tpa::%player%} to "%player-arg%"
        set {tpa::ocz::%player-arg%} to "%player%"
        send "&8>> &aWyslano prosbe o teleportacje do &7%arg 1%&a." to player
        send "&8>> &aOtrzymales prosbe o przeteleportowanie sie do ciebie od &7%player%&a." to player-arg
        send "&8>> &aWpisz &7/tpaccept&a lub &7/tpdeny&a." to player-arg
        stop

on quit:
    delete {tpa::ocz::%player%}
    delete {tpa::%player%}

command /tpdeny:
    trigger:
        if {tpa::ocz::%player%} is set:
            set {_} to "%{tpa::ocz::%player%}%" parsed as player
            delete {tpa::ocz::%player%}
            delete {tpa::%{_}%}
            send "&8>> &cGracz &7%player% &cnie zaakceptowal twojej prosby!" to {_}
            send "&8>> &cNie zaakceptowales prosby gracza &7%{tpa::ocz::%player%}% &c!" to player
        else:
            send "&8>> &aNie otrzymales zapytania!"

command /tpaccept:
    trigger:
        if {tpa::ocz::%player%} is set:
            set {_} to "%{tpa::ocz::%player%}%" parsed as player
            send "&8>> &aPrzeteleportowano gracza &7%{tpa::ocz::%player%}% &a do ciebie!" to player
            send "&8>> &aGracz &7%player% &azaakceptowal twoja prosbe..." to {_}
            delete {tpa::%{_}%}
            delete {tpa::ocz::%player%}
            teleport {_} to player
        else:
            send "&8>> &aNie otrzymales zapytania!"
here is some example skript for tp, but not in english

Posted by: _grifin_ from the skUnity Discord.
 
This is what i was looking for!
It might have been more correct to write how to write skript code instead of the expression plug-in
thank you
私が求めていたものはこれです!
プラグインという表現ではなく、skriptコードの書き方と書いたほうが正しかったかもしれません
ありがとうございます
It would be helpful if you could translate it into Japanese

Posted by: kirea_413 from the skUnity Discord.
 
code_language.skript:
command /tpa [<player>]:
    trigger:
        if arg 1 is not set:
            send "&8>> &4プレイヤーのニックネームを入力してください!"
            stop
        delete {tpa::%player%}
        delete {tpa::ocz::%player-arg%}
        set {tpa::%player%} to "%player-arg%"
        set {tpa::ocz::%player-arg%} to "%player%"
        send "&8>> &aテレポーテーションリクエストが送信されました &7%arg 1%&a." to player
        send "&8>> &aあなたはからあなたにテレポートするリクエストを受け取りました &7%player%&a." to player-arg
        send "&8>> &a入力 &7/tpaccept&a また &7/tpdeny&a." to player-arg
        stop

on quit:
    delete {tpa::ocz::%player%}
    delete {tpa::%player%}

command /tpdeny:
    trigger:
        if {tpa::ocz::%player%} is set:
            set {_} to "%{tpa::ocz::%player%}%" parsed as player
            delete {tpa::ocz::%player%}
            delete {tpa::%{_}%}
            send "&8>> &cプレーヤー &7%player% &cあなたのリクエストは受け入れられませんでした!" to {_}
            send "&8>> &cプレイヤーのリクエストを受け入れませんでした &7%{tpa::ocz::%player%}% &c!" to player
        else:
            send "&8>> &aお問い合わせが届いていません!"

command /tpaccept:
    trigger:
        if {tpa::ocz::%player%} is set:
            set {_} to "%{tpa::ocz::%player%}%" parsed as player
            send "&8>> &aプレイヤーをテレポートする &7%{tpa::ocz::%player%}% &a あなたへ!" to player
            send "&8>> &aプレーヤー &7%player% &aあなたのリクエストを受け入れました..." to {_}
            delete {tpa::%{_}%}
            delete {tpa::ocz::%player%}
            teleport {_} to player
        else:
            send "&8>> &aお問い合わせが届いていません!"

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