개인 자료란 (JE)

  서버 커뮤니티

Profile 픽클 대표칭호 없음
Profile

질문하기 스크립트

스크립트 구문오류좀 해결해주세요..

18 일 전 조회 수 31 추천 수 0
이해도 입문자 
게임버전 (JE) 관련없음 
게임버전 (BE) 관련없음 
스크립트 버전 2.8.4 

command /worlddelete:

    permission: farm.manage.delete

    trigger:

        set {worlddelete::%player's uuid%} to true

        send "삭제할 월드의 이름을 채팅으로 입력해주세요."


on chat:

    if {worlddelete::%player's uuid%} is set:

        set {_worldName} to message

        delete {worlddelete::%player's uuid%}

        if {player's name_%{_worldName}%} is set:

            if {player's name_%{_worldName}%} = player's uuid:

                send "입력하신 월드가 존재합니다: %{_worldName}%"

                execute console command "mv delete %{_worldName}%_%player's name%"

                wait 5 seconds

                execute console command "mv confirm"

                send "월드 %{_worldName}%가 삭제되었습니다."

                execute console command "lp user %player's name% permission unset essentials.protect.pvp true world=%player's name%_%{_worldName}%"

                execute console command "lp group default permission unset essentials.protect.pvp false world=%player's name%_%{_worldName}%"

                send "월드 %{_worldName}%에서 PvP 설정이 삭제되었습니다."

                delete {player's name_%{_worldName}%}

            else:

                send "해당 월드에 대한 권한이 없습니다."

        else:

            send "해당 월드는 등록되지 않았거나 권한이 없습니다. 다시 입력해주세요."

        cancel event

        

command /createworld:

    permission: farm.manage.create

    trigger:

        send "새 월드의 이름을 입력해주세요. (영문, 숫자, 밑줄(_)만 사용 가능, 공백 불가)"

        if {chat-enabled} is false:

        set {worldnameinput.%uuid of player%} to true


on chat:

    if {worldnameinput.%uuid of player%} is set:

        delete {worldnameinput.%uuid of player%}

        if {chat-enabled} is true:

        set {_message} to message

        if {_message} is "":

            send "월드 이름이 입력되지 않았습니다. 명령어를 다시 입력하려면, 채팅창에서 `/팜생성`을 입력해주세요."

            exit

        if {_message} matches "^[a-zA-Z0-9_]+$":

            set {_worldName} to "%{_message}%_%player's name%"

            execute console command "mv clone example_world %{_worldName}%"

            send "월드 %{_worldName}%가 성공적으로 생성되었습니다. '/팜이동 이나 /gofarm' 명령어로 이동할 수 있습니다."

            set {player's name_%{_worldName}%} to "%uuid of player%"

            set {_worldName} to "%arg 1%"

            add {_worldName} to {worldNames::%player's name%::*}

            set {_worldName} to "%arg 1%"

            add {_worldName} to {worldlistname}

            execute console command "lp user %player's name% permission set essentials.protect.pvp true world=%{_worldName}%"

            execute console command "lp group default permission set essentials.protect.pvp false world=%{_worldName}%"

            send "월드 %{_worldName}%에서 PvP 설정이 업데이트되었습니다."

        else:

            send "월드 이름에는 영문, 숫자, 밑줄(_)만 사용할 수 있으며, 공백을 포함할 수 없습니다. 명령어를 다시 입력하려면, 채팅창에서 `/팜 이나 /farm`를 입력해주세요."


command /showworlds:

    trigger:

        send "접속할 월드를 선택하세요:"

        loop {worldlistname::*}:

            send "{""text"":""%loop-value%"",""clickEvent"":{""action"":""run_command"",""value"":""/mvtp %player% %loop-value%_%player's name%""}}" to player


[12:54:52] [Server thread/INFO]: [Skript] Line 47: (11.sk)

[12:54:52] [Server thread/INFO]: UUID of the player is already a text, so you should not put it in one (e.g. UUID of the player instead of "%UUID of the player%")

[12:54:52] [Server thread/INFO]: Line: set {player's name_%{_worldName}%} to "%uuid of player%"

[12:54:52] [Server thread/INFO]:  

[12:54:52] [Server thread/INFO]: [Skript] Line 48: (11.sk)

[12:54:52] [Server thread/INFO]: The 'argument' expression can only be used in a script command or command event

[12:54:52] [Server thread/INFO]: Line: set {_worldName} to "%arg 1%"

[12:54:52] [Server thread/INFO]:  

[12:54:52] [Server thread/INFO]: [Skript] Line 50: (11.sk)

[12:54:52] [Server thread/INFO]: The 'argument' expression can only be used in a script command or command event

[12:54:52] [Server thread/INFO]:     Line: set {_worldName} to "%arg 1%"

이런버그가 발생했는데 뭐가 문젠건가요..?


뉴스 및 창작물
/files/thumbnails/576/775/003/262x150.crop.jpg?20240426232553

아티클

이달의 블록: 단단한 진흙

학교가기싫다

2024-04-26

0

/files/thumbnails/115/774/003/262x150.crop.jpg?20240428135129

업데이트

마인크래프트 1.20.5 정식 업데이트

학교가기싫다

2024-04-24

0

/files/thumbnails/762/770/003/262x150.crop.jpg?20240418073724

레드스톤

T.B.H (고민중독) | 노트블럭 버전 | NoteBlock Cover [한국어 영어 중국어 가사 추가]

노트블럭전문가

2024-04-18

0

/files/thumbnails/218/767/003/262x150.crop.jpg?20240412130213

레드스톤

우리의 꿈 - 원피스 오프닝

노트블럭전문가

2024-04-12

0

/files/thumbnails/505/766/003/262x150.crop.jpg?20240411122306

레드스톤

기동전사 건담 수성의 마녀 | 노트블럭 커버 1

노트블럭전문가

2024-04-11

1