코드를 아래처럼 작성했더니 /섬 명령어와 /섬 생성 명령어가 둘이 충돌하여 로드할수가 없다고 함.
/섬 명령어와 /섬 생성 명령어를 수정하지 않고 해당 문제를 해결할 방법이 존재할까?
# /섬 명령어를 입력했을 때 /is panel 명령어를 실행하도록 설정 command /섬: trigger: execute player command "/is panel" # /섬 생성 명령어를 입력했을 때 /is create {player} 명령어를 실행하도록 설정 command /섬 생성: permission: island.create permission message: 당신은 이 명령어를 사용할 권한이 없음. trigger: # 명령어를 실행한 플레이어의 이름을 변수로 저장 set {_player} to player # 플레이어에게 /is create {player} 명령어를 실행하게 함 execute player command "/is create %{_player}%" # /팜 명령어를 입력했을 때 /is home 명령어를 실행하도록 설정 command /팜: trigger: execute player command "/is home"
오류 메시지 임.
Line 7: (is_Create.sk) [20:36:33 INFO]: A command with the name /섬 is already defined in is_Create.sk [20:36:33 INFO]: Line: command /섬 생성:
이걸로 해봐command /섬 [<text>]: trigger: if arg 1 is not set: execute player command "/is panel" stop if arg 1 is "생성": if player has permission "island.create": execute player command "/is create %player%" stop else: send "당신은 이 명령어를 사용할 권한이 없음." stop
ㄳ
이 댓글은 게시물 작성자가 삭제하였습니다.