JUJKZ Posted April 25, 2022 Share Posted April 25, 2022 Hi I would like to get something like weaken.life afk zone I kinda tried myself but could not figure it out here is more abt it: i have afk region called afk and i want that when someone is afk for 10 minutes he / she will get a afk key (crates givekey %Player% afk 1) If anyone could help me I would appreciate it Link to comment Share on other sites More sharing options...
JUJKZ Posted April 25, 2022 Author Share Posted April 25, 2022 options: region: afk # the region where players can get keys (must have worldguard) every 5 minutes: loop all players where [region at input is {@region}]: make console execute command "givekey %loop-player% bigcrate key 1" # change command if you wish this doesnt work for me Link to comment Share on other sites More sharing options...
BanditEagle Posted April 30, 2022 Share Posted April 30, 2022 Perhaps you can try something like this: options: region: afk every 5 minutes: loop all players if "%region at loop-player%" is "%{@region}%": make console execute command "givekey %loop-player% bigcrate key 1" # change command if you wish I am not sure if this will work, but I am basing it off of this code which is in the skriphub.net documentation: on right click on stone button: if "%region at player%" is "spawn in world lobby": send action bar "&eTeleporting.." to player teleport player to {game.start} Let me know if this works! 1 If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot! Some Minehut Links: Server Rules • Staff Applications • News & Updates • Reports • Appeals Minehut: VIP (07/04/2021 --> Current)Elestra/Versa Realms: Manager (12/04/2021 --> Current) If you have any questions contact me!My Discord: BanditEagle#2481My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/My IGN: BanditEagle Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now