• Chào bạn, hãy đăng ký hoặc đăng nhập để tham gia cùng bọn mình và sử dụng được đầy đủ chức năng của diễn đàn :).
N

Hỏi về Plugin set quyền playerpoints

Trạng thái
Không mở trả lời sau này.
ý là khi vừa đăng kí /register thì 10 Points sẽ được chuyển vào acc đó ???
Bạn vào folder Authme -> commands.yml, khi mở file sẽ ra như này
Mã:
# 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
#
# Supported command events: onLogin, onSessionLogin, onJoin, onLogout, onRegister, onUnregister
onJoin: {}
onLogin: {}
# 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ạn sẽ thấy cái onLogin, chỉnh nó như sau

Mã:
 onLogin:
   gpoints:
     command: 'points give %p 10'
     executor: CONSOLE
--- Trong đó:
- onLogin là hành động sau khi login xong
- gPoints là tên của cái hành động đó, đặt gì cũng được nhưng nên đặt theo hoàn cảnh cho dễ nhận biết
- Command là lệnh thực hiện sau khi login xong
- ex cu to là kiểu như dùng lệnh theo loại, dùng kiểu console player gì gì đó đó
----
GOOD LUCK
 
ý là khi vừa đăng kí /register thì 10 Points sẽ được chuyển vào acc đó ???
Bạn vào folder Authme -> commands.yml, khi mở file sẽ ra như này
Mã:
# 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
#
# Supported command events: onLogin, onSessionLogin, onJoin, onLogout, onRegister, onUnregister
onJoin: {}
onLogin: {}
# 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ạn sẽ thấy cái onLogin, chỉnh nó như sau

Mã:
 onLogin:
   gpoints:
     command: 'points give %p 10'
     executor: CONSOLE
--- Trong đó:
- onLogin là hành động sau khi login xong
- gPoints là tên của cái hành động đó, đặt gì cũng được nhưng nên đặt theo hoàn cảnh cho dễ nhận biết
- Command là lệnh thực hiện sau khi login xong
- ex cu to là kiểu như dùng lệnh theo loại, dùng kiểu console player gì gì đó đó
----
GOOD LUCK
tks nhé tìm mấy bữa nay
*****Nội dung được bổ sung thêm*****
ý là khi vừa đăng kí /register thì 10 Points sẽ được chuyển vào acc đó ???
Bạn vào folder Authme -> commands.yml, khi mở file sẽ ra như này
Mã:
# 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
#
# Supported command events: onLogin, onSessionLogin, onJoin, onLogout, onRegister, onUnregister
onJoin: {}
onLogin: {}
# 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ạn sẽ thấy cái onLogin, chỉnh nó như sau

Mã:
 onLogin:
   gpoints:
     command: 'points give %p 10'
     executor: CONSOLE
--- Trong đó:
- onLogin là hành động sau khi login xong
- gPoints là tên của cái hành động đó, đặt gì cũng được nhưng nên đặt theo hoàn cảnh cho dễ nhận biết
- Command là lệnh thực hiện sau khi login xong
- ex cu to là kiểu như dùng lệnh theo loại, dùng kiểu console player gì gì đó đó
----
GOOD LUCK
@@ cứ đăng nhập lại là dc 10 coin sập sớm @@ có cánh nào khác hông
 
tks nhé tìm mấy bữa nay
*****Nội dung được bổ sung thêm*****

@@ cứ đăng nhập lại là dc 10 coin sập sớm @@ có cánh nào khác hông
à lộn :v, bạn chỉnh thành onRegister á :v
- à mà hình như cũng k ổn, k phù hợp cho trường hợp này, bạn cài plugins First Join Commands cho lành:v
 
fecWtSg.png

làm sao cho cái dạng này nó thàng tên được nhỉ nó mã hóa khó chịu quá
đấy là UUID của user
Nói thẳng là reg hay login hay first join được 10 point cũng chả có được đâu
Tình trạng clone lấy points sẽ lên tới đỉnh điểm và sv sẽ nát bét vì point point point không ai không có :))
Từ bỏ sớm đi
 
đấy là UUID của user
Nói thẳng là reg hay login hay first join được 10 point cũng chả có được đâu
Tình trạng clone lấy points sẽ lên tới đỉnh điểm và sv sẽ nát bét vì point point point không ai không có :))
Từ bỏ sớm đi
không có cánh nào khi login sẻ cập nhật trong sql coin nhỉ
 
bài ông đăng toàn mấy ông coder web, cứ nói rõ có thể sẽ giúp được ông,
còn cái ảnh ông cần tìm là mythicmobs nha
 
Trạng thái
Không mở trả lời sau này.
Similar content Most view Xem thêm
Back
Top Bottom