nesoicompany
AuthMe config dosyanızı paylaşabilirmisiniz acaba?Minecraft sunucum için oyuncular authme ile kayıt veya login olduktan sonra onalrı belirli bir warpa hub warpına ışınlamak istiyorum bunu nasıl yapabilriim skripte authme an login veya register çalışmıyor yardımıc olursanız çok sevinirm
nesoicompany
onLogin:
isinla:
command: 'warp hub'
executor: PLAYER
turk_genci
consoldan nasıl çalıştırabilrim çünkü oyuncya O yetkiyi vermke istemiyıtumBiraz araştırdım ve olayın config.yml ile alakasız olduğunu farkettim, istediğiniz şeyi yapmak için bu adımları takip edin:
1. plugins -> AuthMe -> commands.yml dosyasına giriş sağlayın.
(Karşınızda yorum satırlarında hali hazırda verilmiş örnek (example) ile karşılaşıcaksınız)
2. İstediğiniz şekilde method oluşturabilirsiniz örnek olarak şöyle:
İstediğiniz gibi özelleştirebilirsiniz.Kod:onLogin: isinla: command: 'warp hub' executor: PLAYER
nesoicompany
Aynı şekil sadece executor: CONSOLE olarak ayarlayıp kodda artık nasıl warpa gönderiyorsanız warp blabla %p diye sanırsam böyle yapabilirsinconsoldan nasıl çalıştırabilrim çünkü oyuncya O yetkiyi vermke istemiyıtum
turk_genci
Aynı şekil sadece executor: CONSOLE olarak ayarlayıp kodda artık nasıl warpa gönderiyorsanız warp blabla %p diye sanırsam böyle yapabilirsin
# This configuration file allows you to execute commands on various events.
# Supported placeholders in commands:
# %p is replaced with the player name.
# %nick is replaced with the player's nick name
# %ip is replaced with the player's IP address
# %country is replaced with the player's country
#
# For example, if you want to send a welcome message to a player who just registered:
# onRegister:
# welcome:
# command: 'loginhub'
# executor: PLAYER
#
# This will make the console execute the msg command to the player.
# Each command under an event has a name you can choose freely (e.g. 'welcome' as above),
# after which a mandatory 'command' field defines the command to run,
# and 'executor' defines who will run the command (either PLAYER or CONSOLE). Longer example:
# onLogin:
# welcome:
# command: 'loginhub'
# executor: PLAYER
#
# You can also add delay to command. It will run after the specified ticks. Example:
# onLogin:
# rules:
# command: 'rules'
# executor: PLAyer
turk_genci
command /loginhub [<offlineplayer>]:
permission: loginhub.use
permission message: &cBu komutu kullanmak için yetkin yok!
trigger:
if arg 1 is set:
set {_p} to arg 1
else:
set {_p} to player
if {_p} is not online:
send "&cHata: Belirtilen oyuncu çevrimdışı!" to player
stop
send "&bGiriş başarılı! Hub'a ışınlanmana &f5 &bsaniye..." to {_p}
loop 5 times:
set {_sec} to 6 - loop-number
send "&e%{_sec}%..." to {_p}
play sound "BLOCK_NOTE_BLOCK_PLING" to {_p}
wait 1 second
send "&a✔ Başarıyla giriş yaptın, seni &eHub&7'a ışınlıyoruz!" to {_p}
play sound "ENTITY_ENDERMAN_TELEPORT" to {_p}
execute console command "warp hub %{_p}%"
nesoicompany
turk_genci
Biraz araştırdım ve olayın config.yml ile alakasız olduğunu farkettim, istediğiniz şeyi yapmak için bu adımları takip edin:
1. plugins -> AuthMe -> commands.yml dosyasına giriş sağlayın.
(Karşınızda yorum satırlarında hali hazırda verilmiş örnek (example) ile karşılaşıcaksınız)
2. İstediğiniz şekilde method oluşturabilirsiniz örnek olarak şöyle:
İstediğiniz gibi özelleştirebilirsiniz.Kod:onLogin: isinla: command: 'warp hub' executor: PLAYER
nesoicompany
# This configuration file allows you to execute commands on various events.
# Supported placeholders in commands:
# %p is replaced with the player name.
# %nick is replaced with the player's nick name
# %ip is replaced with the player's IP address
# %country is replaced with the player's country
#
# For example, if you want to send a welcome message to a player who just registered:
# onRegister:
# welcome:
# command: 'loginhub'
# executor: PLAYER
#
# This will make the console execute the msg command to the player.
# Each command under an event has a name you can choose freely (e.g. 'welcome' as above),
# after which a mandatory 'command' field defines the command to run,
# and 'executor' defines who will run the command (either PLAYER or CONSOLE). Longer example:
onLogin:
isinla:
command: 'loginhub %p'
executor: CONSOLE
# You can also add delay to command. It will run after the specified ticks. Example:
# onLogin:
# rules:
# command: 'rules'
# executor: PLAYER
turk_genci
dediğiniiz yaptıktan sonra authme çalışmamaya başladıcommands.yml dosyanızı inceledim ve kod satırlarının başında "#" işareti olduğun gördüm bu işaret kodun yorum satırı olduğunu belirtmekte yani ne kadar ayarlasanızda o kısmı çalıştırmaz. İlgili kısmın başlarındaki "#" işaretlerini kaldırarak tekrar denermisiniz?
Düzeltilmiş dosya: (Sadece onlogin için yapılmıştır kendiniz öbür methodlar içinde yapabilirsiniz)
Kod:# This configuration file allows you to execute commands on various events. # Supported placeholders in commands: # %p is replaced with the player name. # %nick is replaced with the player's nick name # %ip is replaced with the player's IP address # %country is replaced with the player's country # # For example, if you want to send a welcome message to a player who just registered: # onRegister: # welcome: # command: 'loginhub' # executor: PLAYER # # This will make the console execute the msg command to the player. # Each command under an event has a name you can choose freely (e.g. 'welcome' as above), # after which a mandatory 'command' field defines the command to run, # and 'executor' defines who will run the command (either PLAYER or CONSOLE). Longer example: onLogin: isinla: command: 'loginhub %p' executor: CONSOLE # You can also add delay to command. It will run after the specified ticks. Example: # onLogin: # rules: # command: 'rules' # executor: PLAYER
nesoicompany
Log dosyanızı paylaşabilirmisiniz?dediğiniiz yaptıktan sonra authme çalışmamaya başladı
nesoicompany
# This configuration file allows you to execute commands on various events.
# Supported placeholders in commands:
# %p is replaced with the player name.
# %nick is replaced with the player's nick name
# %ip is replaced with the player's IP address
# %country is replaced with the player's country
#
# For example, if you want to send a welcome message to a player who just registered:
# onRegister:
# welcome:
# command: 'msg %p Welcome to the server!'
# executor: CONSOLE
#
# This will make the console execute the msg command to the player.
# Each command under an event has a name you can choose freely (e.g. 'welcome' as above),
# after which a mandatory 'command' field defines the command to run,
# and 'executor' defines who will run the command (either PLAYER or CONSOLE). Longer example:
# onLogin:
# welcome:
# command: 'msg %p Welcome back!'
# executor: PLAYER
# broadcast:
# command: 'broadcast %p has joined, welcome back!'
# executor: CONSOLE
#
# You can also add delay to command. It will run after the specified ticks. Example:
# onLogin:
# rules:
# command: 'rules'
# executor: PLAYER
# delay: 200
#
# Supported command events: onLogin, onSessionLogin, onFirstLogin, onJoin, onLogout, onRegister, onUnregister
#
# For onLogin and onFirstLogin, you can use 'ifNumberOfAccountsLessThan' and 'ifNumberOfAccountsAtLeast'
# to specify limits to how many accounts a player can have (matched by IP) for a command to be run:
# onLogin:
# warnOnManyAccounts:
# command: 'say Uh oh! %p has many alt accounts!'
# executor: CONSOLE
# ifNumberOfAccountsAtLeast: 5
# Commands to run for players logging in whose 'last login date' was empty
onFirstLogin: {}
onJoin: {}
onLogin:
isinla:
command: 'loginhub %p'
executor: CONSOLE
# These commands are called whenever a logged in player uses /logout or quits.
# The commands are not run if a player that was not logged in quits the server.
# Note: if your server crashes, these commands won't be run, so don't rely on them to undo
# 'onLogin' commands that would be dangerous for non-logged in players to have!
onLogout: {}
onRegister: {}
onSessionLogin: {}
# Commands to run whenever a player is unregistered (by himself, or by an admin)
onUnregister: {}
turk_genci
dc den iletişem geçebilme şansın varmı ayrıntılı konuşlım analmadım cünküAuthme nin github sayfasında example olarak bu dosya bulunmakta bunun üzerinden devam edin:
(Hata vermesindeki sebep onJoin: {} gibi methodların bulunmamasından kaynaklı olabilir. Sizin bana attığın dosyanın üzerinde onu yaptığımdam kaynaklı olabilir)
Kod:# This configuration file allows you to execute commands on various events. # Supported placeholders in commands: # %p is replaced with the player name. # %nick is replaced with the player's nick name # %ip is replaced with the player's IP address # %country is replaced with the player's country # # For example, if you want to send a welcome message to a player who just registered: # onRegister: # welcome: # command: 'msg %p Welcome to the server!' # executor: CONSOLE # # This will make the console execute the msg command to the player. # Each command under an event has a name you can choose freely (e.g. 'welcome' as above), # after which a mandatory 'command' field defines the command to run, # and 'executor' defines who will run the command (either PLAYER or CONSOLE). Longer example: # onLogin: # welcome: # command: 'msg %p Welcome back!' # executor: PLAYER # broadcast: # command: 'broadcast %p has joined, welcome back!' # executor: CONSOLE # # You can also add delay to command. It will run after the specified ticks. Example: # onLogin: # rules: # command: 'rules' # executor: PLAYER # delay: 200 # # Supported command events: onLogin, onSessionLogin, onFirstLogin, onJoin, onLogout, onRegister, onUnregister # # For onLogin and onFirstLogin, you can use 'ifNumberOfAccountsLessThan' and 'ifNumberOfAccountsAtLeast' # to specify limits to how many accounts a player can have (matched by IP) for a command to be run: # onLogin: # warnOnManyAccounts: # command: 'say Uh oh! %p has many alt accounts!' # executor: CONSOLE # ifNumberOfAccountsAtLeast: 5 # Commands to run for players logging in whose 'last login date' was empty onFirstLogin: {} onJoin: {} onLogin: isinla: command: 'loginhub %p' executor: CONSOLE # These commands are called whenever a logged in player uses /logout or quits. # The commands are not run if a player that was not logged in quits the server. # Note: if your server crashes, these commands won't be run, so don't rely on them to undo # 'onLogin' commands that would be dangerous for non-logged in players to have! onLogout: {} onRegister: {} onSessionLogin: {} # Commands to run whenever a player is unregistered (by himself, or by an admin) onUnregister: {}
Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!