아직 스크립트를 모른다면? -https://mon0rail.tistory.com/2?category=909444

 

/plugins같은 명령어는 기본적으로 오피(OP)가 없어도 사용할 수 있다.

 

그렇기 때문에 특정 명령어의 사용을 제한하기 위하여 on command 이벤트를 사용해줄 것이다.

 

options:
	contains-ban: ":"
	is-ban: "pl" or "plugins"

on command:
	player is set
	player isn't op
	if command contains {@contains-ban}:
		cancel event
	else if command is {@is-ban}:
		cancel event
	else:
		stop
	send "Unknown command. Type ""/help"" for help."

 

/spigot:tps같은 명령어처럼 콜론(:)이 포함된 명령어와 /pl같은 서버 보안을 위한 명령어를 감지할 시,

 

이벤트를 캔슬하여 사용하지 못하게 막는 스크립트이다.

 

추후에 수정이 간편하도록 options에 제한하는 명령어를 따로 적어두었다.

 

오피가 없는 플레이어는 /pl 명령어를 입력하면 플러그인 목록 대신 존재하지 않는 명령어라는 메시지만 출력된다.

+ Recent posts