tpa:
type: player_command
conditions:
- '%command% startsWith /tpa %arg_1% or %command% startsWith /call %arg_1%'
- '%statistic_seconds_since_death% < 15 execute antirelog'
- '%arg_1% == %player% execute actions2'
- '%parseother_{arg_1}_{player_online}% == no execute error'
- '%parseother_{arg_1}_{essentials_is_teleport_enabled}% == no execute error1'
actions:
default:
- 'cancel_event: true'
- 'player_command: tpa %arg_1%'
- 'console_command: execute at %arg_1% run playsound minecraft:block.note_block.snare
ambient %arg_1% ~ ~ ~ 3 1'
- 'console_command: tellraw %player% [{"text":" "},{"text":" "},{"text":" ","hoverEvent":{"action":"show_text","contents":[{"text":"","italic":false}]}},{"text":"
","hoverEvent":{"action":"show_text","contents":[{"text":"","italic":false}]}},{"text":"
","hoverEvent":{"action":"show_text","contents":[{"text":"","italic":false}]}},{"text":"
","hoverEvent":{"action":"show_text","contents":[{"text":"","italic":false}]}},{"text":"
","hoverEvent":{"action":"show_text","contents":[{"text":"","italic":false}]}},{"text":"
","hoverEvent":{"action":"show_text","contents":[{"text":"","italic":false}]}},{"text":"
","hoverEvent":{"action":"show_text","contents":[{"text":"","italic":false}]}},{"text":"
","hoverEvent":{"action":"show_text","contents":[{"text":"","italic":false}]}},{"text":"
","hoverEvent":{"action":"show_text","contents":[{"text":"","italic":false}]}},{"text":"
","hoverEvent":{"action":"show_text","contents":[{"text":"","italic":false}]}},{"text":"
","hoverEvent":{"action":"show_text","contents":[{"text":"","italic":false}]}},{"text":"[Отменить
запрос]","color":"#FB0000","italic":false,"hoverEvent":{"action":"show_text","contents":[{"text":"Нажми,
чтобы отменить запрос","italic":false}]},"clickEvent":{"action":"run_command","value":"/tpacancel
%arg_1%"}}]'
- 'console_command: tellraw %arg_1% [{"text":"[⚝] ","color":"#ff6600","italic":false},{"text":"%player%
","color":"#ff6600","italic":false},{"text":"хочет телепортироваться к вам.","color":"#ff0000","italic":false}]'
- 'console_command: tellraw %arg_1% [{"text":" "},{"text":" "},{"text":" "},{"text":"
"},{"text":" "},{"text":"[Принять запрос]","color":"#00FF00","italic":false,"hoverEvent":{"action":"show_text","contents":[{"text":"Нажми,
чтобы принять запрос","color":"white","italic":false}]},"clickEvent":{"action":"run_command","value":"/tpaccept"}},{"text":" "},{"text":" "},{"text":" "},{"text":"|","color":"gray","italic":false},{"text":"
"},{"text":" "},{"text":" "},{"text":"[Отменить запрос]","color":"#FF0000","italic":false,"hoverEvent":{"action":"show_text","contents":[{"text":"Нажми,
чтобы отменить","color":"white","italic":false}]},"clickEvent":{"action":"run_command","value":"/tpdeny"}}]'
- 'console_command: playsound minecraft:block.note_block.snare ambient %arg_1%
~ ~ ~ 3 1'
antirelog:
- 'cancel_event: true'
- 'message: &c[✘] &fВы недавно были в бою, поэтому вы &6не можете &fиспользовать
эту команду!'
- 'message: &f Подождите еще &d%math_15-{statistic_seconds_since_death}% сек.
&fдо конца задержки!'
actions2:
- 'cancel_event: true'
- 'message: &c[✘] #FFFFE6Нельзя отправлять запрос на телепортацию к самому себе.'
error:
- 'cancel_event: true'
- 'message: #ff6600[⚝] &fЭтот игрок не в сети'
error1:
- 'cancel_event: true'
- 'message: &c[✘] #FFFFE6%arg_1% отключил телепортацию.'
cooldown:
- 'cancel_event: true'
- 'message: &e[✘] #FFFFE6Команда будет доступна через &c%time%'
cooldown: 60
enabled: true
tpacancel1:
type: player_command
conditions:
- '%command% startsWith /tpacancel %arg_1%'
- '%arg_1% == %player% execute actions2'
actions:
default:
- 'cancel_event: false'
- 'console_command: tellraw %arg_1% [{"text":"[⚝] ","color":"#ff6600","italic":false},{"text":"Телепортация
","color":"#FFFFE6","italic":false},{"text":"отменена!","color":"#ff0000","italic":false}'
- 'playsound: BLOCK_NOTE_BLOCK_BASEDRUM;3;2'
actions2:
- 'cancel_event: true'
- 'message: #ff6600[✘] #FFFFE6Вы #ff6600не отправляли #FFFFE6запросов на телепортацию!'
cooldown:
- 'cancel_event: true'
- 'message: &e[✘] #FFFFE6Команда будет доступна через &c%time%'
cooldown: 5
enabled: true