Dreamerial__ Posted May 10, 2021 Share Posted May 10, 2021 so.. i was trying to make a skript that teleport new players that never joined before to somewhere and send some title messages on first join: teleport player to location at 448, 64, 1116 in world "world" set {_loc} to player's location set {_loc}'s yaw to 180 teleport player to {_loc} send title "&f&lWelcome to &e&n&lBednekos," with subtitle "&f&o%player%" to player for 2 seconds wait 2 seconds send title "" with subtitle "&7Hmm... &fThis is &dfirst time &fyou come here i think," to player for 2 seconds wait 2 seconds send title "" with subtitle "&f&ofeel free to ask if you got any question! :D" to player for 2 seconds then i found out the teleport part is not working as well (it's just like skipped line 2-5) but the %player% in line.6 is working as well so idk what's wrong with it and a funny thing is, if i make it into a command, the teleporting part will work again! the code: Spoiler command /newplayerwelcometest: trigger: teleport player to location at 448, 64, 1116 in world "world" set {_loc} to player's location set {_loc}'s yaw to 180 teleport player to {_loc} send title "&f&lWelcome to &e&n&lBednekos," with subtitle "&f&o%player%" to player for 2 seconds wait 2 seconds send title "" with subtitle "&7Hmm... &fThis is &dfirst time &fyou come here i think," to player for 2 seconds wait 2 seconds send title "" with subtitle "&f&ofeel free to ask if you got any question! :D" to player for 2 seconds so i really don't know is it the problem because of "on first join" syntax problem Link to comment Share on other sites More sharing options...
rosathorn Posted May 10, 2021 Share Posted May 10, 2021 If you're sure the command works, but not the syntax, just add a player arg to your command and do on first join: execute console command "/newplayerwelcometest %player%" RosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRi code, animate, develop, UI design, learn, and adapt, as well as make servers, of courseJoined Minehut sometime in 2014VIP sometime in 2018Legend in January 2021Helper on 4/11/2021♥ (Retired) on 5/17/2021 Link to comment Share on other sites More sharing options...
Dreamerial__ Posted May 11, 2021 Author Share Posted May 11, 2021 hm i edited the "/newplayerwelcometest" command can use on other player now (cuz it cant, it can only effect the person who use the command, now i also added the permission for the command) then i used the code u said. but when i used another command to test it i found out it seem not working as well, and i also found nothing at console (it's just A1ph4_DenlosDX issued server command: /newplayertest2) im not sure will it work with "on first join:" but atleast it didt work when i copy the code and use a command to test it i'm going to try make it with some other way later Link to comment Share on other sites More sharing options...
BanditEagle Posted May 11, 2021 Share Posted May 11, 2021 6 hours ago, Dreamerial__ said: hm i edited the "/newplayerwelcometest" command can use on other player now (cuz it cant, it can only effect the person who use the command, now i also added the permission for the command) then i used the code u said. but when i used another command to test it i found out it seem not working as well, and i also found nothing at console (it's just A1ph4_DenlosDX issued server command: /newplayertest2) im not sure will it work with "on first join:" but atleast it didt work when i copy the code and use a command to test it i'm going to try make it with some other way later can you send the new code? 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...
Dreamerial__ Posted May 11, 2021 Author Share Posted May 11, 2021 (edited) so first i made a command to set {npt}: command /setnpt: trigger: if the player has permission "skript.thing": set {npt} to player's location set {npt}'s yaw to 180 then i edited my command to able to use on other players: command /newplayerwelcometest <player>: permission: skript.thing executable by: the console and players trigger: set {alphaPl} to arg-1 apply potion of blindness 255 to arg-1 for 3 seconds apply potion of night vision 255 to arg-1 for 3 seconds wait 1 seconds teleport {alphaPl} to {npt} send title "&f&lWelcome to &e&n&lBednekos," with subtitle "&f&o%arg-1%" to {alphaPl} for 2 seconds wait 2 seconds send title "" with subtitle "&7Hmm... &fThis is &dfirst time &fyou come here i think," to {alphaPl} for 2 seconds wait 2 seconds send title "" with subtitle "&f&ofeel free to ask if you got any question! :D" to {alphaPl} for 2 seconds the "on first join: " look like this: on first join: make console execute command "/newplayerwelcometest %player%" anyway, these things work great now ------------------------------------ oh yea and i know i can make that if the player has permission "skript.thing" can code as: command /command: permission: skript.thing trigger: codes Edited May 11, 2021 by Dreamerial__ Link to comment Share on other sites More sharing options...
BanditEagle Posted May 11, 2021 Share Posted May 11, 2021 2 hours ago, Dreamerial__ said: anyway, these things work great now So.. does the new code work? or is it still having issues? Sorry I'm a bit confused by the wording.. 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...
Dreamerial__ Posted May 12, 2021 Author Share Posted May 12, 2021 yes the code work Link to comment Share on other sites More sharing options...
BanditEagle Posted May 12, 2021 Share Posted May 12, 2021 13 hours ago, Dreamerial__ said: yes the code work So you fixed the issue? Or do you still need help with it? 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...
Dreamerial__ Posted May 13, 2021 Author Share Posted May 13, 2021 yes i fixed it 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