티켓 시스템 > 트리거 공유

본문 바로가기
사이트 내 전체검색


트리거 공유

티켓 시스템

페이지 정보

작성자 치키이예 작성일19-09-23 08:48 조회332회 댓글0건

첨부파일

본문

트리거 - CUSTOMTRIGGER -
이벤트 org.bukkit.event.player.PlayerInteractEvent
구문 trg 파일
//클릭 이벤트 감지
IF event.getAction().name() == "RIGHT_CLICK_BLOCK" || event.getAction().name() == "RIGHT_CLICK_AIR"
//만약 결과가 NULL 일결우 제외
IF event.getItem() != null
//아이템이름이 &e&l인생 &a&l낚시터 &b&l15분 이용권 인것을 찾음 - 티켓을 찾음
    IF event.getItem().getItemMeta().getDisplayName() == color("&e&l인생 &a&l낚시터 &b&l15분 이용권")
//찾으면 할것
        #MESSAGE "1분후 낚시대 삭제와 함께 이 지역에서 벗어나집니다"
#MESSAGE "1분 동안 이아이템은 다시 쓸 수 없습니다"
//쿨타임 1분
#COOLDOWN 60
#CMDOP "warp 낚시터"
//전역 변수 로 저장된 fishticket 아이템 1개 삭제
takeItem(player, {"fishticket"}, 1)
//60초 대기
#WAIT 60
//60초후 해당 지역에서만 사용 가능 한 아이템 전부 삭제
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
takeItem(player, {"fish1"}, 1)
takeItem(player, {"fish2"}, 1)
//삭제후 back쳐도 이벤트 지역으로 가지 못하게 스폰으로 두번보냄
#CMDOP "spawn"
#CMDOP "spawn"
ELSE
ENDIF
ENDIF
ELSE
//getitem이 null일 경우 건너뛰고 트리거 중단
#STOP
ENDIF

yml
Sync: false
Event: org.bukkit.event.player.PlayerInteractEvent

댓글목록

등록된 댓글이 없습니다.

상단으로


모바일 버전으로 보기