#*********************************************# #((((((((((((((((((EZ-WARPS)))))))))))))))))))# #*********************************************# # Simple script to set, delete and use warps. # ############################################### # Installation: # # - Place in scripts folder. # # - Reload scripts. # #=============================================# # Permissions: # # - warps.setwarp (Create new warps.) # # - warps.delwarp (Delete existing warps.) # # - warps.warp (Teleport to warps.) # #*********************************************# #==============# #---SETWARP----# #==============# setwarp_command: type: command debug: false name: setwarp aliases: - createwarp usage: /setwarp <<>name<>> description: Set new warp or set new location if it exists already. permission: warps.setwarp allowed help: - determine > script: - if { - announce to_console "<&c>This command is for players only." - queue clear } - if { - narrate "<&c>Sorry, you don't have permission to use this command." - queue clear } - define Args - if == 0 { - narrate "<&c>Please specify warp name!" - queue clear } - flag server "warps.:" - narrate "<&2>Warp added!" #==============# #---DELWARP----# #==============# delwarp_command: type: command debug: false name: delwarp aliases: - remwarp - rmwarp usage: /delwarp <<>name<>> description: Set new warp or set new location if it exists already. permission: warps.delwarp allowed help: - determine > script: - if { - announce to_console "<&c>This command is for players only." - queue clear } - if { - narrate "<&c>Sorry, you don't have permission to use this command." - queue clear } - define Args - if == 0 { - narrate "<&c>Please specify warp name!" - queue clear } + - if ].not> { + - narrate "<&c>Sorry, <&e><&l><&c> was not found!" + - queue clear + } - flag server "warps.:!" - narrate "<&2>Warp removed!" #==============# #-----WARP-----# #==============# warp_command: type: command debug: false name: warp aliases: - warps usage: /warp (warp name) description: Teleport to specific warp if it exists or list warps. permission: warps.warp allowed help: - determine > script: - if { - announce to_console "<&c>This command is for players only." - queue clear } - if > { - narrate "<&c>Sorry, you don't have permission to use this command." - queue clear } - define Args - if == 0 { - narrate "<&6><&n>Warps" - if { - narrate "<&c>Warps have not been set!" - queue clear } else { - define WarpsList - foreach { - narrate "%value%" } } } else { - if ].not> { - narrate "<&c>Sorry, <&e><&l><&c> was not found!" - queue clear } - teleport ]> } -