개인 자료란 (JE)

  서버 커뮤니티

Profile 빛나는토마토 대표칭호 없음

Tomato105 4a7a3e2f6add4cc7bbe412b198b15cbd

Profile

질문하기 Java

질문

2022.03.24 조회 수 691 추천 수 0
이해도 플러그인 
게임버전 (JE) 버킷 

@Override
public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command, @NotNull String label, @NotNull String[] args) {
    if (label.equalsIgnoreCase("hello")) {
        Player p = (Player) sender;
        p.sendMessage("WELCOME TO OUR SERVER!");
    }
    return true;
}

이렇게 쓰고 나서
plugin.yml에

commands:
  hello:


이렇게 썼는데 실행은 잘 되지만

Schema validation: Incompatible types.<br/>Required: object. Actual: null. 라고 경고가 뜨네요.
왜 뜨는 건가요?

+ 아이템에 아무 인첸트도 붙이지 않고 인첸트가 붙은 것처럼 오로라 같은게 생기게 하려면 어떻게 하나요?
+ 돈처럼 플레이어마다 다른 변수를 만들려면 어떻게 하나요?

+nbt가 달려있는 아이템을 만드려면 어떻게 하나요?

+PotionEffect를 PotionEffectType으로 변환(PotionEffect의 종류)하려면 어떻게 하나요?




1개의 댓글

명이
2022.03.27

commands:

hello:

description : 대충 아무거나

 

이렇게 쓰셔야지 될것 같아요

hello:

저는 저렇게 쓰는데

commands:

- hello

라고 쓰셔도 될수도 있어요

뉴스 및 창작물
/files/thumbnails/520/751/003/262x150.crop.jpg?20240328020349

레드스톤

마인크래프트 노트블록으로 만든 『 Bling‐Bang‐Bang‐Born 』 1

Sonttukk

2024-03-23

1

/files/thumbnails/467/742/003/262x150.crop.jpg?20240311163123

레드스톤

[노트블럭커버] MILGRAM -ミルグラム(밀그램)- / 아마네 「숙청 행진」 제 2심 2

리비온

2024-03-11

0

/files/thumbnails/846/741/003/262x150.crop.jpg?20240310221214

레드스톤

워든 vs 라마 200마리 1

GlassesFilm

2024-03-10

0

/files/thumbnails/542/739/003/262x150.crop.jpg?20240309070457

레드스톤

[고인의 명복을 빕니다][노트블럭]드래곤볼 GT 오프닝 - 점점 마음이 끌려

리비온

2024-03-09

0

/files/thumbnails/326/738/003/262x150.crop.jpg?20240328020414

레드스톤

마인크래프트 노트블록으로 만든 『 Build Our Machine 』

Sonttukk

2024-03-07

0