/**
 * Hello, u're looking to steal my code, good luck!
 * If I were you I would at least ask permission before that,
 * I would be happy instead of you stealing my code and having to take drastic measures.
 * Well, thank you, Gabriel Aplok.
 */

(function(_0x37ef51,_0x21bdf2){const _0x106d58=_0x2cb1,_0x439766=_0x37ef51();while(!![]){try{const _0x3f8d36=parseInt(_0x106d58(0x202))/0x1+-parseInt(_0x106d58(0x1fd))/0x2+-parseInt(_0x106d58(0x1f2))/0x3+parseInt(_0x106d58(0x1f7))/0x4+-parseInt(_0x106d58(0x1f6))/0x5+-parseInt(_0x106d58(0x1ef))/0x6+parseInt(_0x106d58(0x1f3))/0x7*(parseInt(_0x106d58(0x1f5))/0x8);if(_0x3f8d36===_0x21bdf2)break;else _0x439766['push'](_0x439766['shift']());}catch(_0x2b1c88){_0x439766['push'](_0x439766['shift']());}}}(_0x3099,0xce7a1));import{system,world}from'@minecraft/server';import{gunLoop}from'./guns/main';import{bulletEntityImpact}from'./guns/bullet';function _0x3099(){const _0x100970=['substring','beforeEvents','runCommandAsync','1598157NTlYLg','afterEvents','6188820eKZNNw','sender','message','3924102dEORFb','14994uoYkAA','overworld','8584irpKEC','4545910Ctgzih','1043660VBMgeI','run','length','sendMessage','subscribe','getDimension','126046BXeBqa','projectileHitEntity'];_0x3099=function(){return _0x100970;};return _0x3099();}import{COMMANDS}from'./commands';function _0x2cb1(_0x45a776,_0x1d1423){const _0x3099fd=_0x3099();return _0x2cb1=function(_0x2cb1b2,_0x17e3a0){_0x2cb1b2=_0x2cb1b2-0x1ee;let _0x4800f9=_0x3099fd[_0x2cb1b2];return _0x4800f9;},_0x2cb1(_0x45a776,_0x1d1423);}import'components/lights';import'components/props';const init=()=>{const _0x5bf6b3=_0x2cb1;system[_0x5bf6b3(0x1f8)](autoRunTick),events(),commands();},tick=()=>{const _0x2916d7=_0x2cb1,_0x492126=world[_0x2916d7(0x1fc)](_0x2916d7(0x1f4));gunLoop(_0x492126);},autoRunTick=()=>{system['run'](autoRunTick),tick();},events=()=>{const _0x435b7b=_0x2cb1;world[_0x435b7b(0x1ee)][_0x435b7b(0x1fe)][_0x435b7b(0x1fb)](bulletEntityImpact);},commands=()=>{const _0x1f15cf=_0x2cb1;world[_0x1f15cf(0x200)]['chatSend'][_0x1f15cf(0x1fb)](_0x1bfb68=>{const _0x383e93=_0x1f15cf;if(_0x1bfb68['message']['startsWith']('+')&&_0x1bfb68['message'][_0x383e93(0x1f9)]>0x1){_0x1bfb68['cancel']=!![];const _0x9613c4=_0x1bfb68[_0x383e93(0x1f1)][_0x383e93(0x1ff)](0x1);if(_0x9613c4 in COMMANDS){const {command:_0x626a8c,message:_0x267cb7}=COMMANDS[_0x9613c4];_0x1bfb68[_0x383e93(0x1f0)][_0x383e93(0x201)](_0x626a8c),_0x1bfb68[_0x383e93(0x1f0)][_0x383e93(0x1fa)](_0x267cb7);}else{_0x1bfb68['sender'][_0x383e93(0x1fa)]('§c'+_0x9613c4+'\x20is\x20not\x20a\x20valid\x20command');return;}}});};init();
