코드의 일부를 발췌하여 재구성한거라 문법적 오류가 존재할 수 있음


command /예시 [<player>]:

trigger:

if player is op:

message "디버깅!" to arg 1

else

message "오류!" to arg 1


on rightclik on entity:

if name of cliked entity contain "안냥":

execute console command "/예시 player"


안냥이라는 이름의 엔티티를 누를때 /예시 커맨드가 작동을 하도록 설계한건데 디버깅!이 아닌 오류!, 즉 권한이 없다고 뜸