Öncelikle şu tarz bir script yazdım:
on chat:
if message is " Son Giriş: 30 Gün Önce." or " Son Giriş: 31 Gün Önce." or " Son Giriş: 32 Gün Önce.":
set {tp} to location of targeted block
wait 0.1 second
execute console command "lp user %player% permission set griefprevention.ignoreclaims true"
wait 0.1 second
execute console command "sudo user %player% ignoreclaims"
wait 0.1 second
teleport player to {tp}
wait 0.1 second
execute console command "sudo %player% unclaim"
wait 0.1 second
execute console command "lp user %player% permission set griefprevention.ignoreclaims false"
Chatte şu kadar süre girmedi deyince cl nin kalkması gerekiyor ama bir sorun var. Plugin in gönderdiği mesajı algılamıyor.
griefprevention plugininin türkçe yamasını kullanıyoruz messages.yml olarak. Bir türlü " Son Giriş: 30 Gün Önce." mesajının algılatmasını başaramadım.
Bir oyuncu yazarsa bu mesajı algılıyor ama Plugin yazdığında nedense algılamıyor. Bunu algılayacağı şekilde editlemek istiyorum bilgisi olan veya yardım edebilecek var mı?
Not: Sorun türkçe karakter değil ingilizce karakter yapıpta da denedim olmadı.
on chat:
if message is " Son Giriş: 30 Gün Önce." or " Son Giriş: 31 Gün Önce." or " Son Giriş: 32 Gün Önce.":
set {tp} to location of targeted block
wait 0.1 second
execute console command "lp user %player% permission set griefprevention.ignoreclaims true"
wait 0.1 second
execute console command "sudo user %player% ignoreclaims"
wait 0.1 second
teleport player to {tp}
wait 0.1 second
execute console command "sudo %player% unclaim"
wait 0.1 second
execute console command "lp user %player% permission set griefprevention.ignoreclaims false"
Chatte şu kadar süre girmedi deyince cl nin kalkması gerekiyor ama bir sorun var. Plugin in gönderdiği mesajı algılamıyor.
griefprevention plugininin türkçe yamasını kullanıyoruz messages.yml olarak. Bir türlü " Son Giriş: 30 Gün Önce." mesajının algılatmasını başaramadım.
Bir oyuncu yazarsa bu mesajı algılıyor ama Plugin yazdığında nedense algılamıyor. Bunu algılayacağı şekilde editlemek istiyorum bilgisi olan veya yardım edebilecek var mı?
Not: Sorun türkçe karakter değil ingilizce karakter yapıpta da denedim olmadı.