Sol Reklam

Çözüldü komutları istediğim komut olarak değiştirme

Durum
Mesaj gönderimine kapalı.

klounas52

Somon Balığı Selam Vermeye Geldi
Katılım
23 Mayıs 2023
Mesajlar
12
Elmaslar
0
Puanlar
395
Yaş
19
Yer
İstanbul
Minecraft
Klounas52

Discord:

! Klounas#6592

minecraft sunucumda örneğin /para yazınca /money komutu çalışacak ama /money komutu devre dışı kalacak yani birisi /money yazınca bilinmeyen komut diyecek /para yazınca çalışacak bunun gibi birsürü kodu değiştirmem lazım bi türlü yolunu bulamadım skript vs. varsa çok yardımı dokunur şimdiden teşekkürler.
 
Muhtemelen aşağıdaki skript işe yarayacaktır.

Kod:
variables:
    {CommandUse::%player%} = false
 
on command:
    if command is "Money":
        if {CommandUse::%player%} is false:
            cancel event
 
command Para:
    trigger:
        set {CommandUse::%player%} to true
        execute player command "Money"
        set {CommandUse::%player%} to false
 
Son düzenleme:
Kod:
command /merhaba:
    trigger:
        send "Merhaba, bu özel bir komut!"

command /teleport:
    trigger:
        send "Bu komut devre dışı bırakıldı. Lütfen /tp komutunu kullanın."

command /merhaba2:
    trigger:
        send "Yeni bir özel komut!"
 
Kod:
command /merhaba:
    trigger:
        send "Merhaba, bu özel bir komut!"

command /teleport:
    trigger:
        send "Bu komut devre dışı bırakıldı. Lütfen /tp komutunu kullanın."

command /merhaba2:
    trigger:
        send "Yeni bir özel komut!"
İstediği kodun tam olarak bu olduğunu düşünmüyorum, benim kazdığım kodu inceler misiniz?
 
Muhtemelen aşağıdaki skript işe yarayacaktır.

Kod:
variables:
    {CommandUse::%player%} = false
 
on command:
    if command is "Money":
        if {CommandUse::%player%} is false:
            cancel event
 
command Para:
    trigger:
        set {CommandUse::%player%} to true
        execute player command "Money"
        set {CommandUse::%player%} to false
mesela /money give yerine /para gönderi nasıl yapacağım şuan /para çalışıyor sadece /para gönder vs. gibi şeyler olmuyor bunları nasıl yapacağım teşekkür ederim bu arada <3
 
mesela /money give yerine /para gönderi nasıl yapacağım şuan /para çalışıyor sadece /para gönder vs. gibi şeyler olmuyor bunları nasıl yapacağım teşekkür ederim bu arada <3
Tüm komutları listeleyebilir misiniz?
 
Tüm komutları listeleyebilir misiniz?
Oyuncular için:
/dinar
/dinar gönder
Admin için:
/dinar ver

Gibi komutlar bana altyapısını versen bende ayarlarım diye düşünüyorum hatta senden ricam attıktan sonra zahmet olmazsa az bişey bilgi verirsen sevinirim çoğu komutu değiştireceğim çünkü altyapı olarak kullanabilirim şimdiden teşekkür ederim
 
Hocam spigottan bir skript buldum tam istediğiniz gibi olmayabilir (ingilizce)

#Money

options:
pf: &8[&eMoney&8]
noperms: &8[&eMoney&8] &cYou don't have enough permissions.

variables:
{money.%player%} = 0

command /money:
trigger:
send "{@pf} &c$%{money.%player%}%"

command /addmoney [<offlineplayer>] [<integer>]:
permission: money.add
permission message: {@noperms}
trigger:
if arg 1 is not set:
send "{@pf} &cUsage: /moneyadd <player> <amount>" to sender
stop
if arg 2 is not set:
send "{@pf} &cUsage: /moneyadd <player> <amount>" to sender
stop
if arg 2 is set:
add arg 2 to {money.%arg 1%}
send "{@pf} &7You transferred &c$%arg 2% &7to &c%arg 1%&7." to sender

command /setmoney [<offlineplayer>] [<integer>]:
permission: money.set
permission message: {@noperms}
trigger:
if arg 1 is not set:
send "{@pf} &cUsage: /moneyset <player> <amount>" to sender
stop
if arg 2 is not set:
send "{@pf} &cUsage: /moneyset <player> <amount>" to sender
stop
if arg 2 is set:
set {money.%arg 1%} to arg 2
send "{@pf} &7You have set the money from &c%arg 1% &7to &c$%arg 2%&7." to sender

command /pay [<player>] [<integer>]:
trigger:
if arg 1 is not set:
send "{@pf} &cUsage: /pay <player> <amount>" to sender
stop
if arg 1 is "%sender%":
send "{@pf} &cYou can not send yourself money." to sender
stop
if arg 2 is not set:
send "{@pf} &cUsage: /pay <player> <amount>" to sender
stop
if arg 2 is set:
if arg 2 is less than 1:
send "{@pf} &cYou can not send less than 0 money to someone." to sender
if arg 2 is bigger than 0:
if arg 2 is less than {money.%sender%} +1:
add arg 2 to {money.%arg 1%}
remove arg 2 from {money.%sender%}
send "{@pf} &7You have paid &c%arg 1% $%arg 2%&7." to sender
send "{@pf} &c%sender% &7has paid you &c$%arg 2%&7." to arg 1
else:
send "{@pf} &cYou can not send more money to someone like you." to sender
 
Kod:
command /otur:
    trigger:
        execute player command "/sit"

örnek otur komutu sit komutunu çalıştırıyor
 
Durum
Mesaj gönderimine kapalı.
Neden altınlarını Discord sunucumuzda kazmıyorsun? TIKLA VE KATIL!