#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)

white tide
#

keep track of it in a list

sinful urchin
white tide
#

...

#

join event, add ip to a list if its not already in it

split sky
#

use IP of player

west zealot
sinful urchin
#

I need to be available offline

#

Of course you can also online

west zealot
sinful urchin
#

How to detect the same or different results of %player_ip% and the newly detected %player_ip% variable?

white tide
#

just check if the list already contains the ip

sinful urchin
#

?

white tide
#

try it

sinful urchin
#
  trigger:
    Set {_ipipss} to placeholder "player_ip" from player
    if {_ipipss} contains player's IP:
      broadcast "works"
    else:
      broadcast "not works"```
sinful urchin
white tide
#

try it then ull know

sinful urchin
#

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

white tide
#

if x = y

split sky
#

what are you trying to do mate? explain yourself a little.

sinful urchin
#

Can this determine whether the ip is the same as the ip of the existing logged in player?

split sky
#

yes

split sky
#

use like this

sinful urchin
#

ok i try

split sky
#

good luck

sinful urchin
#

thank you very much for your help

#

You are such a sunny boy

#

Wish you happy

split sky
#

If you had explained yourself more clearly, we could have helped before.

sinful urchin
#

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

split sky
#

So your problem is solved.

sinful urchin
#

what's wrong

west zealot
#

You have introduced a deadlock

sinful urchin
#

oh shit

#

this is mysql sk

#

can i get uuid instead of id with %ip of player%

split sky
#

like this set {playersIP::%ip of player%} to uuid of player

sinful urchin
split sky
#

when are you getting this error?

sinful urchin
#

I don't know how he caused it

#

I used his mysql

#

since an hour ago

split sky
#

i can't see full error in your screenshot

sinful urchin
sinful urchin
#
[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

split sky
#

You used variables wrong

#

You have too many variables.

sinful urchin
#

know why

#

In fact, there are more than 20

#

Probably a bug

split sky
#

Your mysql server may also be slow.

sinful urchin
#

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

split sky
#

Skript uses MySQL only as a storage.

#

When starting, all data is set to RAM.

#

So you know what you are using it for.

sinful urchin
#

Do you know of any ways to give offline rewards? Like email?

split sky
#

like /chest

sinful urchin
#

I want the way through the crate menu

#

can you

split sky
#

I can't take the time right now. sorry

sinful urchin
#

ok

#

I'll try