개인 자료란 (JE)

  서버 커뮤니티

Profile insane 대표칭호 없음

Unknown_sunset 737a1b8d18684d6b8b040344d0eb22f4

Profile

질문하기 스크립트

땅 구매 플러그인 질문

2024.03.01 조회 수 41 추천 수 0
이해도 중급자 
게임버전 (JE) 1.16.5 
게임버전 (BE) 관련없음 
스크립트 버전 2.5 

command /땅 [<text>] [<offlineplayer>]:


skip


        else if arg-1 is "권한":

            if arg-2 is set:

                set {_uuid} to uuid of arg-2

                if {region.member.%uuid of arg-2%::*} contains {_uuid}:

                    remove {_uuid} from {region.member.%uuid of arg-2%::*}

                    send "{@logo} &f%arg-2%님에게 땅 권한을 빼앗았습니다." to player

                else if {region.member.%uuid of arg-2%::*} contains {_uuid}:

                    add {_uuid} to {region.member.%uuid of arg-2%::*}

                    send "{@logo} &f%arg-2%님에게 땅 권한을 부여했습니다." to player

                 


on inventory click:

    if name of player's current inventory is "땅설정":

        cancel event

        set {_type::*} to "block", "open", "explosion", "fire" and "flow"

        if index of event-slot is 11, 12, 13, 14 or 15:

            set {_type} to {_type::%index of event-slot - 10%}

            if line 2 of lore of event-item contains "ON":

                set {region.setting.%uuid of player%::%{_type}%} to false

            if line 2 of lore of event-item contains "OFF":

                set {region.setting.%uuid of player%::%{_type}%} to true

            setRegion(player)


on break:

    if player is not op:

        if {region.owner::%chunk of event-location%} is set:

            set {_owner} to {region.owner::%chunk of event-location%}

            if {_owner} is not uuid of player:

                if {region.setting.%{_owner}%::block} is true:

                    send "{@logo} &c이 구역에선 블럭 파괴를 할 수 없습니다."

                    cancel event


on place:

    if player is not op:

        if {region.owner::%chunk of event-location%} is set:

            set {_owner} to {region.owner::%chunk of event-location%}

            if {_owner} is not uuid of player:

                if {region.setting.%{_owner}%::block} is true:

                    send "{@logo} &c이 구역에선 블럭 설치를 할 수 없습니다."

                    cancel event



보시면 아시겠지만 위에 좀 짤려있습니다 위에 error 도 없고 잘 작동합니다. 문제가 될거같은 부분만 올렸습니다

대충 땅 권한을 다른 플레이어에게 주는 구문인데 저 구문이 잘 작동하지 않습니다 error 도 없는데 분명 권한을 줬는데도 권한을 받은 플레이어가 블럭을 부수거나 등의 행동이 안됩니다.


*else if .... "권한": 부분 변수 안에 arg-2 부분을 player 로 바꿔도 똑같이 안됩니다




Warning
댓글이 없습니다.

새로운 댓글을 등록해 주세요!

뉴스 및 창작물
/files/thumbnails/487/784/003/262x150.crop.jpg?20240508233607

모드

Windows Borderless 모드에서 악성코드 발견

학교가기싫다

2024-05-08

1

/files/thumbnails/384/778/003/262x150.crop.jpg?20240507003327

업데이트

마인크래프트 자바 에디션 스냅샷 24w18a

학교가기싫다

2024-05-06

0

/files/thumbnails/855/781/003/262x150.crop.jpg?20240505141129

레드스톤

레이저 클리너

GlassesFilm

2024-05-05

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