#What should I do to get the player's ip through %player_ip%? Has it appeared in the server? If it ha
1 messages · Page 1 of 1 (latest)
Can you be more specific, bro
use IP of player
that would work only if the player is online
well that will do
How to detect the same or different results of %player_ip% and the newly detected %player_ip% variable?
just check if the list already contains the ip
if {list::blah} contains player's IP:
?
try it
trigger:
Set {_ipipss} to placeholder "player_ip" from player
if {_ipipss} contains player's IP:
broadcast "works"
else:
broadcast "not works"```
is it correct please
try it then ull know
he is normal
If I want to test whether the value of the variable is the same as the {_test} variable, how should I write it?
I don't know how to compare
if x = y
set {playersIP::%player%} to ip of player
command /test21:
trigger:
if {playersIP::%player%} is ip of player:
broadcast "work"
else:
broadcast "not work"```
what are you trying to do mate? explain yourself a little.
Can this determine whether the ip is the same as the ip of the existing logged in player?
yes
if {playersIP::%ip of player%} isn't set:
set {playersIP::%ip of player%} to true
else:
kick the player due to "You cant login this ip"
on quit:
if {playersIP::%ip of player%} is set:
delete {playersIP::%ip of player%}
use like this
ok i try
If you had explained yourself more clearly, we could have helped before.
Thank you very much
I want to achieve, for example, I give a person permission, but I want him to have only one account per ip to have this permission
Other accounts with the same ip cannot apply for this permission
If you use this, one account can join with the same ip.
So your problem is solved.
You have introduced a deadlock
then you can't control it. but you set to uuid
like this set {playersIP::%ip of player%} to uuid of player
Does this tip matter?
i can't see full error in your screenshot
it keeps refreshing like this
[04:33:39] [Skript database 'MySQL example' monitor thread/WARN]: [Skript] Cannot load variables from the database fast enough (loading took 1.695s, monitor interval = 1.0s). Please increase your monitor interval or reduce usage of variables. (this warning will be repeated at most once every 10 seconds)
[04:33:48] [Craft Scheduler Thread - 1616 - Skript/ERROR]: [Skript] database error: Deadlock found when trying to get lock; try restarting transaction```
and this
Your mysql server may also be slow.
It is my variable that is read by other servers, but there is a problem with this variable on other servers
Another server has problems
Skript uses MySQL only as a storage.
When starting, all data is set to RAM.
So you know what you are using it for.
Do you know of any ways to give offline rewards? Like email?
create storage command
like /chest
I can't take the time right now. sorry