BattukClashTR
Kömür Madencisi
- En iyi cevaplar
- 0
Beyler plugin dosyalarından Location çekmem lazım. (Önceden kaydettiğim)
fakat direk olarak getConfig().getLocation("konum.x"); diye bir komut,method yok,
İnternete baktım şu şekilde çekiyorlar ama bende işe yaramıyor (0,0) diye çekiyor tüm değerleri:
double x = getConfig().getDouble("konum.x");
double y = getConfig().getDouble("konum.y");
double z = getConfig().getDouble("konum.z");
bu şekilde çekincede 0,0 diye çekiyor. Asıl lokasyonu çekmiyor.
Bu arada config.yml şöyle:
Acil yardım. Ben bu configdeki Konum'un içindeki X'i nasıl çekicem? (0,0 diye değil adam akıllı çekicek bir method,kod lazım)
fakat direk olarak getConfig().getLocation("konum.x"); diye bir komut,method yok,
İnternete baktım şu şekilde çekiyorlar ama bende işe yaramıyor (0,0) diye çekiyor tüm değerleri:
double x = getConfig().getDouble("konum.x");
double y = getConfig().getDouble("konum.y");
double z = getConfig().getDouble("konum.z");
bu şekilde çekincede 0,0 diye çekiyor. Asıl lokasyonu çekmiyor.
Bu arada config.yml şöyle:
konum:
==: org.bukkit.Location
world: world
x: 101.58528586939296
y: 70.0
z: 221.38522745290874
pitch: 90.0
yaw: 177.47902
==: org.bukkit.Location
world: world
x: 101.58528586939296
y: 70.0
z: 221.38522745290874
pitch: 90.0
yaw: 177.47902
Acil yardım. Ben bu configdeki Konum'un içindeki X'i nasıl çekicem? (0,0 diye değil adam akıllı çekicek bir method,kod lazım)