//REGISTRO ESTA GUARDANDO USUARIOS SIN CONTRASEÑA, CORREGIR const roomName = "⚽🩸 [LHB] JUEGAN TODOS 🩸⚽"; const maxPlayers = 24; const roomPublic = false; const geo = [{ "code": "MA", "lat": -34.6397, "lon": -58.5648}]; var isOwnGoal = (team, player) => team != player.team ? " 😂Own Goal" : ""; const room = HBInit({ roomName: roomName, maxPlayers: maxPlayers, public: roomPublic, noPlayer: true, token: "thr1.AAAAAGRsFIzx0ff6Gy9IDg.xdn0U2fbC8Q", geo: geo[0] }); var seconds = 140; setInterval(function () { room.sendAnnouncement(`[💗] ¡UNITE AL DISCORD DE LHB!`, null, 0xff99d6, 'bold', 2); room.sendAnnouncement(`[📣] HTTPS://DISCORD.GG/BDT7g4RJMs`, null, 0xffffff, 'bold', 0); }, seconds*1000); var x7 = `{ "name" : "Futsal X7", "canBeStored" : false, "width" : 1265, "height" : 630, "bg" : { "type" : "hockey", "cornerRadius" : 0, "kickOffRadius" : 0 }, "vertexes" : [ /* 0 */ { "x" : 0, "y" : -631, "bCoef" : 0, "cMask" : ["red","blue" ], "cGroup" : ["redKO","blueKO" ] }, /* 1 */ { "x" : 0, "y" : -600, "bCoef" : 0.1, "cMask" : ["red","blue" ], "cGroup" : ["redKO","blueKO" ] }, /* 2 */ { "x" : -1200, "y" : -120, "bCoef" : 0.2, "cMask" : ["red","blue","ball" ], "trait" : "goalPost", "curve" : 0, "color" : "ffffff", "pos" : [-700,-80 ] }, /* 3 */ { "x" : -1235, "y" : -120, "bCoef" : 0.2, "cMask" : ["red","blue","ball" ], "trait" : "goalPost", "curve" : 0, "color" : "ffffff", "pos" : [-700,-80 ] }, /* 4 */ { "x" : -1235, "y" : 120, "bCoef" : 0.2, "cMask" : ["red","blue","ball" ], "trait" : "goalPost", "curve" : 0, "color" : "ffffff", "pos" : [-700,80 ] }, /* 5 */ { "x" : -1200, "y" : 120, "bCoef" : 0.2, "cMask" : ["red","blue","ball" ], "trait" : "goalPost", "curve" : 0, "color" : "ffffff", "pos" : [-700,80 ] }, /* 6 */ { "x" : 1200, "y" : -120, "bCoef" : 0.2, "cMask" : ["red","blue","ball" ], "trait" : "goalPost", "curve" : 0, "color" : "ffffff", "pos" : [1200,-120 ] }, /* 7 */ { "x" : 1235, "y" : -120, "bCoef" : 0.2, "cMask" : ["red","blue","ball" ], "trait" : "goalPost", "curve" : 0, "color" : "ffffff", "pos" : [1200,-120 ] }, /* 8 */ { "x" : 1235, "y" : 120, "bCoef" : 0.2, "cMask" : ["red","blue","ball" ], "trait" : "goalPost", "curve" : 0, "color" : "ffffff", "pos" : [1200,120 ] }, /* 9 */ { "x" : 1200, "y" : 120, "bCoef" : 0.2, "cMask" : ["red","blue","ball" ], "trait" : "goalPost", "curve" : 0, "color" : "ffffff", "pos" : [1200,120 ] }, /* 10 */ { "x" : -1200, "y" : 120, "bCoef" : 1.15, "cMask" : ["ball" ], "trait" : "ballArea", "color" : "ffffff", "pos" : [-700,80 ] }, /* 11 */ { "x" : -1200, "y" : 600, "bCoef" : 1.15, "cMask" : ["ball" ], "trait" : "ballArea", "color" : "ffffff" }, /* 12 */ { "x" : -1200, "y" : -120, "bCoef" : 1.15, "cMask" : ["ball" ], "trait" : "ballArea", "color" : "ffffff", "pos" : [-700,-80 ] }, /* 13 */ { "x" : -1200, "y" : -600, "bCoef" : 1.15, "cMask" : ["ball" ], "trait" : "ballArea", "color" : "ffffff" }, /* 14 */ { "x" : -1200, "y" : 600, "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "color" : "ffffff" }, /* 15 */ { "x" : 1200, "y" : 600, "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "color" : "ffffff" }, /* 16 */ { "x" : 1200, "y" : 120, "bCoef" : 1.15, "cMask" : ["ball" ], "trait" : "ballArea", "pos" : [1200,120 ], "color" : "ffffff" }, /* 17 */ { "x" : 1200, "y" : 600, "bCoef" : 1.15, "cMask" : ["ball" ], "trait" : "ballArea", "color" : "ffffff" }, /* 18 */ { "x" : 1200, "y" : -600, "bCoef" : 1.15, "cMask" : ["ball" ], "trait" : "ballArea", "color" : "ffffff" }, /* 19 */ { "x" : 1200, "y" : -120, "bCoef" : 1.15, "cMask" : ["ball" ], "trait" : "ballArea", "color" : "ffffff", "pos" : [1200,-120 ] }, /* 20 */ { "x" : -1200, "y" : -600, "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "curve" : 0, "color" : "ffffff" }, /* 21 */ { "x" : 1200, "y" : -600, "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "curve" : 0, "color" : "ffffff" }, /* 22 */ { "x" : -1206.5, "y" : 120, "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "curve" : 0, "vis" : false, "pos" : [-700,80 ], "color" : "ffffff" }, /* 23 */ { "x" : -1206.5, "y" : 600, "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "curve" : 0, "vis" : false, "color" : "ffffff" }, /* 24 */ { "x" : -1206.5, "y" : -600, "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "vis" : false, "curve" : 0, "color" : "ffffff" }, /* 25 */ { "x" : -1206.5, "y" : -120, "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "vis" : false, "curve" : 0, "pos" : [-700,-80 ], "color" : "ffffff" }, /* 26 */ { "x" : 1206.5, "y" : -600, "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "vis" : false, "curve" : 0, "color" : "ffffff" }, /* 27 */ { "x" : 1206.5, "y" : -120, "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "vis" : false, "curve" : 0, "pos" : [1200,-120 ], "color" : "ffffff" }, /* 28 */ { "x" : 1206.5, "y" : 120, "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "curve" : 0, "vis" : false, "pos" : [1200,120 ], "color" : "ffffff" }, /* 29 */ { "x" : 1206.5, "y" : 600, "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "curve" : 0, "vis" : false, "color" : "ffffff" }, /* 30 */ { "x" : -1200, "y" : -120, "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "color" : "F80000" }, /* 31 */ { "x" : -1200, "y" : 120, "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "color" : "F80000" }, /* 32 */ { "x" : 1200, "y" : -120, "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "color" : "0000F8", "pos" : [1200,-120 ] }, /* 33 */ { "x" : 1200, "y" : 120, "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "color" : "0000F8", "pos" : [1200,120 ] }, /* 34 */ { "x" : -1200, "y" : 560, "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "color" : "ffffff", "curve" : -93.241608812827 }, /* 35 */ { "x" : -740, "y" : 100, "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "color" : "ffffff", "curve" : -93.241608812827 }, /* 36 */ { "x" : -1200, "y" : -560, "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "color" : "ffffff", "curve" : 93.241608812827 }, /* 37 */ { "x" : -740, "y" : -100, "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "color" : "ffffff", "curve" : 93.241608812827 }, /* 38 */ { "x" : 1200, "y" : 560, "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "color" : "ffffff", "curve" : 93.241608812827 }, /* 39 */ { "x" : 740, "y" : 100, "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "color" : "ffffff", "curve" : 93.241608812827 }, /* 40 */ { "x" : 1200, "y" : -560, "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "color" : "ffffff", "curve" : -93.241608812827 }, /* 41 */ { "x" : 740, "y" : -100, "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "color" : "ffffff", "curve" : -93.241608812827 }, /* 42 */ { "x" : 740, "y" : 100, "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "color" : "ffffff", "curve" : 0 }, /* 43 */ { "x" : 740, "y" : -100, "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "color" : "ffffff", "curve" : 0 }, /* 44 */ { "x" : 740, "y" : 1, "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "curve" : 180, "color" : "ffffff" }, /* 45 */ { "x" : 740, "y" : -1, "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "curve" : 180, "color" : "ffffff" }, /* 46 */ { "x" : 740, "y" : 3, "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "curve" : 180, "color" : "ffffff" }, /* 47 */ { "x" : 740, "y" : -4, "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "curve" : 180, "color" : "ffffff" }, /* 48 */ { "x" : 740, "y" : 4, "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "curve" : 180, "color" : "ffffff" }, /* 49 */ { "x" : -740, "y" : 1, "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "curve" : 180, "color" : "ffffff" }, /* 50 */ { "x" : -740, "y" : -1, "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "curve" : 180, "color" : "ffffff" }, /* 51 */ { "x" : -740, "y" : 3, "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "curve" : 180, "color" : "ffffff" }, /* 52 */ { "x" : -740, "y" : -4, "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "curve" : 180, "color" : "ffffff" }, /* 53 */ { "x" : -740, "y" : 4, "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "curve" : 180, "color" : "ffffff" }, /* 54 */ { "x" : -1200, "y" : -120, "bCoef" : 0.2, "cMask" : ["red","blue","ball" ], "trait" : "goalPost", "curve" : 0, "color" : "ffffff", "pos" : [-700,-80 ], "vis" : false }, /* 55 */ { "x" : -1235, "y" : -120, "bCoef" : 0.2, "cMask" : ["red","blue","ball" ], "trait" : "goalPost", "curve" : 0, "color" : "ffffff", "pos" : [-700,-80 ], "vis" : false }, /* 56 */ { "x" : -1235, "y" : 120, "bCoef" : 0.2, "cMask" : ["red","blue","ball" ], "trait" : "goalPost", "curve" : 0, "color" : "ffffff", "pos" : [-700,80 ], "vis" : false }, /* 57 */ { "x" : -1200, "y" : 120, "bCoef" : 0.2, "cMask" : ["red","blue","ball" ], "trait" : "goalPost", "curve" : 0, "color" : "ffffff", "pos" : [-700,80 ], "vis" : false }, /* 58 */ { "x" : 1200, "y" : -120, "bCoef" : 0.2, "cMask" : ["red","blue","ball" ], "trait" : "goalPost", "curve" : 0, "color" : "ffffff", "pos" : [1200,-120 ], "vis" : false }, /* 59 */ { "x" : 1235, "y" : -120, "bCoef" : 0.2, "cMask" : ["red","blue","ball" ], "trait" : "goalPost", "curve" : 0, "color" : "ffffff", "pos" : [1200,-120 ], "vis" : false }, /* 60 */ { "x" : 1235, "y" : 120, "bCoef" : 0.2, "cMask" : ["red","blue","ball" ], "trait" : "goalPost", "curve" : 0, "color" : "ffffff", "pos" : [1200,120 ], "vis" : false }, /* 61 */ { "x" : 1200, "y" : 120, "bCoef" : 0.2, "cMask" : ["red","blue","ball" ], "trait" : "goalPost", "curve" : 0, "color" : "ffffff", "pos" : [1200,120 ], "vis" : false }, /* 62 */ { "x" : -1265.1, "y" : 15, "bCoef" : 0.5, "cMask" : ["red","blue" ], "trait" : "goalPost", "vis" : false, "pos" : [-1265.1,0 ] }, /* 63 */ { "x" : -1235, "y" : 15, "bCoef" : 0.5, "cMask" : ["red","blue" ], "trait" : "goalPost", "vis" : false }, /* 64 */ { "x" : -1265.1, "y" : -15, "bCoef" : 0.5, "cMask" : ["red","blue" ], "trait" : "goalPost", "vis" : false, "pos" : [-1265.1,0 ] }, /* 65 */ { "x" : -1235, "y" : -15, "bCoef" : 0.5, "cMask" : ["red","blue" ], "trait" : "goalPost", "vis" : false }, /* 66 */ { "x" : 1235, "y" : -15, "bCoef" : 0.5, "cMask" : ["red","blue" ], "trait" : "goalPost", "vis" : false }, /* 67 */ { "x" : 1265.1, "y" : -15, "bCoef" : 0.5, "cMask" : ["red","blue" ], "trait" : "goalPost", "vis" : false, "pos" : [610.1,0 ] }, /* 68 */ { "x" : 1235, "y" : 15, "bCoef" : 0.5, "cMask" : ["red","blue" ], "trait" : "goalPost", "vis" : false }, /* 69 */ { "x" : 1265.1, "y" : 15, "bCoef" : 0.5, "cMask" : ["red","blue" ], "trait" : "goalPost", "vis" : false, "pos" : [610.1,0 ] }, /* 70 */ { "x" : 0, "y" : 600, "bCoef" : 0, "cMask" : ["red","blue" ], "cGroup" : ["redKO","blueKO" ] }, /* 71 */ { "x" : 0, "y" : 630, "bCoef" : 0.1, "cMask" : ["red","blue" ], "cGroup" : ["redKO","blueKO" ] }, /* 72 */ { "x" : 0, "y" : 120, "bCoef" : 0.1, "cMask" : ["red","blue" ], "cGroup" : ["redKO","blueKO" ], "color" : "696969", "curve" : 180 }, /* 73 */ { "x" : 0, "y" : -120, "bCoef" : 0.1, "cMask" : ["red","blue" ], "cGroup" : ["redKO","blueKO" ], "color" : "696969", "curve" : 180 }, /* 74 */ { "x" : 0, "y" : 120, "bCoef" : 0, "cMask" : ["red","blue" ], "cGroup" : ["redKO","blueKO" ], "color" : "696969" }, /* 75 */ { "x" : 0, "y" : -120, "bCoef" : 0, "cMask" : ["red","blue" ], "cGroup" : ["redKO","blueKO" ], "color" : "696969" }, /* 76 */ { "x" : 0, "y" : -600, "bCoef" : 0.1, "cMask" : ["red","blue" ], "cGroup" : ["redKO","blueKO" ], "color" : "ffffff" }, /* 77 */ { "x" : 0, "y" : 120, "cMask" : [ ], "color" : "ffffff" }, /* 78 */ { "x" : 0, "y" : 600, "bCoef" : 0, "cMask" : ["red","blue" ], "cGroup" : ["redKO","blueKO" ] }, /* 79 */ { "x" : 0, "y" : 120, "bCoef" : 0, "cMask" : ["red","blue" ], "cGroup" : ["redKO","blueKO" ], "color" : "ffffff" }, /* 80 */ { "x" : 0, "y" : 600, "bCoef" : 0.1, "cMask" : ["red","blue" ], "cGroup" : ["redKO","blueKO" ], "color" : "ffffff" }, /* 81 */ { "x" : 0, "y" : -60, "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "curve" : 180, "color" : "ffffff" }, /* 82 */ { "x" : 0, "y" : 60, "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "curve" : 180, "color" : "ffffff" }, /* 83 */ { "x" : 0, "y" : -60, "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "color" : "ffffff", "curve" : -93.241608812827 }, /* 84 */ { "x" : 0, "y" : 120, "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "color" : "ffffff", "curve" : -93.241608812827 }, /* 85 */ { "x" : 0, "y" : 60, "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "color" : "ffffff", "curve" : 93.241608812827 }, /* 86 */ { "x" : 0, "y" : -121, "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "curve" : 180.5, "color" : "555555" }, /* 87 */ { "x" : 0, "y" : 121, "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "curve" : 180.5, "color" : "555555" }, /* 88 */ { "x" : 0, "y" : -121, "bCoef" : 0, "cMask" : ["red","blue" ], "cGroup" : ["redKO","blueKO" ], "color" : "FEBA01" }, /* 89 */ { "x" : 0, "y" : -600, "bCoef" : 0.1, "cMask" : ["red","blue" ], "cGroup" : ["redKO","blueKO" ], "color" : "ffffff" }, /* 90 */ { "x" : 0, "y" : 121, "bCoef" : 0, "cMask" : ["red","blue" ], "cGroup" : ["redKO","blueKO" ], "color" : "ffffff" }, /* 91 */ { "x" : 0, "y" : 600, "bCoef" : 0.1, "cMask" : ["red","blue" ], "cGroup" : ["redKO","blueKO" ], "color" : "ffffff" }, /* 92 */ { "x" : 0, "y" : 121, "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "color" : "ffffff", "curve" : -93.241608812827 }, /* 93 */ { "x" : 0, "y" : 60, "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "color" : "ffffff", "curve" : 93.241608812827 }, /* 94 */ { "x" : 0, "y" : -60, "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "color" : "ffffff", "curve" : -93.241608812827 }, /* 95 */ { "x" : 0, "y" : -121, "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "color" : "ffffff", "curve" : 93.241608812827 }, /* 96 */ { "x" : -1206.5, "y" : 120, "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "curve" : 0, "vis" : false, "pos" : [-700,80 ], "color" : "ffffff" }, /* 97 */ { "x" : -1206.5, "y" : 600, "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "curve" : 0, "vis" : false, "color" : "ffffff" }, /* 98 */ { "x" : -1206.5, "y" : -600, "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "vis" : false, "curve" : 0, "color" : "ffffff" }, /* 99 */ { "x" : -1206.5, "y" : -120, "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "vis" : false, "curve" : 0, "pos" : [-700,-80 ], "color" : "ffffff" }, /* 100 */ { "x" : 1206.5, "y" : 120, "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "curve" : 0, "vis" : false, "pos" : [1200,120 ], "color" : "ffffff" }, /* 101 */ { "x" : 1206.5, "y" : 600, "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "curve" : 0, "vis" : false, "color" : "ffffff" }, /* 102 */ { "x" : 1235, "y" : -630, "bCoef" : 0.5, "cMask" : ["red","blue" ] }, /* 103 */ { "x" : 1235, "y" : 630, "bCoef" : 0.5, "cMask" : ["red","blue" ] }, /* 104 */ { "x" : -1235, "y" : -630, "bCoef" : 0.5, "cMask" : ["red","blue" ] }, /* 105 */ { "x" : -1235, "y" : 630, "bCoef" : 0.5, "cMask" : ["red","blue" ] } ], "segments" : [ { "v0" : 0, "v1" : 1, "vis" : false, "color" : "F8F8F8", "bCoef" : 0.1, "cMask" : ["red","blue" ], "cGroup" : ["redKO","blueKO" ] }, { "v0" : 2, "v1" : 3, "curve" : 0, "color" : "ffffff", "bCoef" : 0.2, "cMask" : ["red","blue","ball" ], "trait" : "goalPost", "pos" : [-700,-80 ], "y" : -120 }, { "v0" : 3, "v1" : 4, "curve" : 0, "color" : "ffffff", "bCoef" : 0.2, "cMask" : ["red","blue","ball" ], "trait" : "goalPost", "x" : -1235 }, { "v0" : 4, "v1" : 5, "curve" : 0, "color" : "ffffff", "bCoef" : 0.2, "cMask" : ["red","blue","ball" ], "trait" : "goalPost", "pos" : [-700,80 ], "y" : 120 }, { "v0" : 6, "v1" : 7, "curve" : 0, "color" : "ffffff", "bCoef" : 0.2, "cMask" : ["red","blue","ball" ], "trait" : "goalPost", "pos" : [1200,-120 ], "y" : -120 }, { "v0" : 7, "v1" : 8, "curve" : 0, "color" : "ffffff", "bCoef" : 0.2, "cMask" : ["red","blue","ball" ], "trait" : "goalPost", "x" : 1235 }, { "v0" : 8, "v1" : 9, "curve" : 0, "color" : "ffffff", "bCoef" : 0.2, "cMask" : ["red","blue","ball" ], "trait" : "goalPost", "pos" : [1200,120 ], "y" : 120 }, { "v0" : 10, "v1" : 11, "vis" : true, "color" : "ffffff", "bCoef" : 1.15, "cMask" : ["ball" ], "trait" : "ballArea", "x" : -550 }, { "v0" : 12, "v1" : 13, "vis" : true, "color" : "ffffff", "bCoef" : 1.15, "cMask" : ["ball" ], "trait" : "ballArea", "x" : -550 }, { "v0" : 14, "v1" : 15, "vis" : true, "color" : "ffffff", "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "y" : 240 }, { "v0" : 16, "v1" : 17, "vis" : true, "color" : "ffffff", "bCoef" : 1.15, "cMask" : ["ball" ], "trait" : "ballArea", "x" : 550 }, { "v0" : 18, "v1" : 19, "vis" : true, "color" : "ffffff", "bCoef" : 1.15, "cMask" : ["ball" ], "trait" : "ballArea", "x" : 550 }, { "v0" : 20, "v1" : 21, "curve" : 0, "vis" : true, "color" : "ffffff", "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "y" : -600 }, { "v0" : 22, "v1" : 23, "curve" : 0, "vis" : false, "color" : "ffffff", "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "x" : -556.5 }, { "v0" : 24, "v1" : 25, "curve" : 0, "vis" : false, "color" : "ffffff", "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "x" : -556.5 }, { "v0" : 26, "v1" : 27, "curve" : 0, "vis" : false, "color" : "ffffff", "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "x" : 556.5 }, { "v0" : 28, "v1" : 29, "curve" : 0, "vis" : false, "color" : "ffffff", "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "x" : 556.5 }, { "v0" : 30, "v1" : 31, "curve" : 0, "vis" : true, "color" : "F80000", "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "x" : -550 }, { "v0" : 32, "v1" : 33, "curve" : 0, "vis" : true, "color" : "0000F8", "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "x" : 550 }, { "v0" : 34, "v1" : 35, "curve" : -93.241608812827, "vis" : true, "color" : "ffffff", "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line" }, { "v0" : 36, "v1" : 37, "curve" : 93.241608812827, "vis" : true, "color" : "ffffff", "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line" }, { "v0" : 35, "v1" : 37, "curve" : 0, "vis" : true, "color" : "ffffff", "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "x" : -740 }, { "v0" : 38, "v1" : 39, "curve" : 93.241608812827, "vis" : true, "color" : "ffffff", "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line" }, { "v0" : 40, "v1" : 41, "curve" : -93.241608812827, "vis" : true, "color" : "ffffff", "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line" }, { "v0" : 42, "v1" : 43, "curve" : 0, "vis" : true, "color" : "ffffff", "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "x" : 740 }, { "v0" : 45, "v1" : 44, "curve" : 180, "vis" : true, "color" : "ffffff", "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "x" : 740 }, { "v0" : 44, "v1" : 45, "curve" : 180, "vis" : true, "color" : "ffffff", "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "x" : 740 }, { "v0" : 47, "v1" : 46, "curve" : 180, "vis" : true, "color" : "ffffff", "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "x" : 740 }, { "v0" : 46, "v1" : 47, "curve" : 180, "vis" : true, "color" : "ffffff", "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "x" : 740 }, { "v0" : 50, "v1" : 49, "curve" : 180, "vis" : true, "color" : "ffffff", "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "x" : -740 }, { "v0" : 49, "v1" : 50, "curve" : 180, "vis" : true, "color" : "ffffff", "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "x" : -740 }, { "v0" : 52, "v1" : 51, "curve" : 180, "vis" : true, "color" : "ffffff", "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "x" : -740 }, { "v0" : 51, "v1" : 52, "curve" : 180, "vis" : true, "color" : "ffffff", "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "x" : -740 }, { "v0" : 54, "v1" : 55, "curve" : 0, "vis" : false, "color" : "ffffff", "bCoef" : 0.2, "cMask" : ["red","blue","ball" ], "trait" : "goalPost", "pos" : [-700,-80 ], "y" : -120 }, { "v0" : 55, "v1" : 56, "curve" : 0, "vis" : false, "color" : "ffffff", "bCoef" : 0.2, "cMask" : ["red","blue","ball" ], "trait" : "goalPost", "x" : -1235 }, { "v0" : 56, "v1" : 57, "curve" : 0, "vis" : false, "color" : "ffffff", "bCoef" : 0.2, "cMask" : ["red","blue","ball" ], "trait" : "goalPost", "pos" : [-700,80 ], "y" : 120 }, { "v0" : 58, "v1" : 59, "curve" : 0, "vis" : false, "color" : "ffffff", "bCoef" : 0.2, "cMask" : ["red","blue","ball" ], "trait" : "goalPost", "pos" : [1200,-120 ], "y" : -120 }, { "v0" : 59, "v1" : 60, "curve" : 0, "vis" : false, "color" : "ffffff", "bCoef" : 0.2, "cMask" : ["red","blue","ball" ], "trait" : "goalPost", "x" : 1235 }, { "v0" : 60, "v1" : 61, "curve" : 0, "vis" : false, "color" : "ffffff", "bCoef" : 0.2, "cMask" : ["red","blue","ball" ], "trait" : "goalPost", "pos" : [1200,120 ], "y" : 120 }, { "v0" : 62, "v1" : 63, "curve" : 0, "vis" : false, "color" : "ffffff", "bCoef" : 0.5, "cMask" : ["red","blue" ], "trait" : "goalPost", "y" : 15 }, { "v0" : 64, "v1" : 65, "curve" : 0, "vis" : false, "color" : "ffffff", "bCoef" : 0.5, "cMask" : ["red","blue" ], "trait" : "goalPost", "y" : -15 }, { "v0" : 66, "v1" : 67, "curve" : 0, "vis" : false, "color" : "ffffff", "bCoef" : 0.5, "cMask" : ["red","blue" ], "trait" : "goalPost", "y" : -15 }, { "v0" : 68, "v1" : 69, "curve" : 0, "vis" : false, "color" : "ffffff", "bCoef" : 0.5, "cMask" : ["red","blue" ], "trait" : "goalPost", "y" : 15 }, { "v0" : 70, "v1" : 71, "vis" : false, "color" : "F8F8F8", "bCoef" : 0.1, "cMask" : ["red","blue" ], "cGroup" : ["redKO","blueKO" ] }, { "v0" : 72, "v1" : 73, "curve" : 180, "color" : "696969", "bCoef" : 0.1, "cMask" : ["red","blue" ], "cGroup" : ["blueKO" ], "curveF" : 0.0049891420830909 }, { "v0" : 75, "v1" : 74, "curve" : 180, "color" : "696969", "bCoef" : 0.1, "cMask" : ["red","blue" ], "cGroup" : ["redKO" ], "curveF" : 6.1232339957368e-17 }, { "v0" : 82, "v1" : 81, "curve" : 180, "vis" : true, "color" : "ffffff", "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "x" : 0 }, { "v0" : 81, "v1" : 82, "curve" : 180, "vis" : true, "color" : "ffffff", "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "x" : 0 }, { "v0" : 87, "v1" : 86, "curve" : 180.5, "vis" : true, "color" : "555555", "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "x" : 0 }, { "v0" : 86, "v1" : 87, "curve" : 180.5, "vis" : true, "color" : "555555", "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "x" : 0 }, { "v0" : 89, "v1" : 88, "color" : "ffffff", "bCoef" : 0.1, "cMask" : ["red","blue" ], "cGroup" : ["redKO","blueKO" ] }, { "v0" : 90, "v1" : 91, "color" : "ffffff", "bCoef" : 0.1, "cMask" : ["red","blue" ], "cGroup" : ["redKO","blueKO" ] }, { "v0" : 92, "v1" : 93, "curve" : 0, "vis" : true, "color" : "ffffff", "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "x" : -740 }, { "v0" : 94, "v1" : 95, "curve" : 0, "vis" : true, "color" : "ffffff", "bCoef" : 0.1, "cMask" : ["wall" ], "trait" : "line", "x" : -740 }, { "v0" : 96, "v1" : 97, "curve" : 0, "vis" : false, "color" : "ffffff", "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "x" : -556.5 }, { "v0" : 98, "v1" : 99, "curve" : 0, "vis" : false, "color" : "ffffff", "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "x" : -556.5 }, { "v0" : 100, "v1" : 101, "curve" : 0, "vis" : false, "color" : "ffffff", "bCoef" : 1, "cMask" : ["ball" ], "trait" : "ballArea", "x" : 556.5 }, { "v0" : 102, "v1" : 103, "curve" : 0, "vis" : false, "color" : "ffffff", "bCoef" : 0.5, "cMask" : ["red","blue" ], "x" : 1235 }, { "v0" : 104, "v1" : 105, "curve" : 0, "vis" : false, "color" : "ffffff", "bCoef" : 0.5, "cMask" : ["red","blue" ], "x" : -1235 } ], "planes" : [ { "normal" : [0,1 ], "dist" : -630, "bCoef" : 0.1 }, { "normal" : [-1,0 ], "dist" : -1265.1, "bCoef" : 0.1 }, { "normal" : [0,-1 ], "dist" : -600, "cMask" : ["ball" ] }, { "normal" : [0,-1 ], "dist" : -630, "bCoef" : 0.1 }, { "normal" : [1,0 ], "dist" : -1265.1, "bCoef" : 0.1 }, { "normal" : [0,1 ], "dist" : -600, "cMask" : ["ball" ] } ], "goals" : [ { "p0" : [-1207.5,-120 ], "p1" : [-1207.5,120 ], "team" : "red", "color" : "ffffff" }, { "p0" : [1207.5,120 ], "p1" : [1207.5,-120 ], "team" : "blue", "color" : "ffffff" } ], "discs" : [ { "radius" : 0.01, "invMass" : 0, "pos" : [-1265.1,0 ], "color" : "000000", "bCoef" : 470, "vis" : true, "x" : -1265.1 }, { "radius" : 0.1, "invMass" : 0, "pos" : [1265.1,0 ], "color" : "000000", "bCoef" : 470 }, { "radius" : 6, "invMass" : 0, "pos" : [-1200,120 ], "color" : "ffffff", "trait" : "goalPost", "y" : 85 }, { "radius" : 6, "invMass" : 0, "pos" : [-1200,-120 ], "color" : "ffffff", "trait" : "goalPost", "y" : -110, "x" : -560 }, { "radius" : 6, "invMass" : 0, "pos" : [1200,120 ], "color" : "ffffff", "trait" : "goalPost", "y" : 85 }, { "radius" : 6, "invMass" : 0, "pos" : [1200,-120 ], "color" : "ffffff", "trait" : "goalPost", "y" : -110, "vis" : true } ], "playerPhysics" : { "bCoef" : 0.1, "acceleration" : 0.11, "kickingAcceleration" : 0.083, "kickStrength" : 5.2 }, "ballPhysics" : { "radius" : 6.25, "bCoef" : 0.4, "invMass" : 1.5, "color" : "FEBA01" }, "spawnDistance" : 320, "traits" : { } }` room.setCustomStadium(x7); room.setTimeLimit(10); room.setScoreLimit(5); room.setTeamsLock(true); var adminPassword = "88"; var adminOn = false; var admList = ["svsh",":$", "blud", "kkck", "ttom.zk", "erwin!", ""]; var playerData = new Object(); var lastPlayerTouched; var lastTeamTouched = 0; var Team = { SPECTATORS: 0, RED: 1, BLUE: 2 }; var players; var teamR; var teamB; var teamS; var isAdmin = false; var isLogged = false; //IMPORTAR DB var myHeaders = new Headers(); myHeaders.append("Content-Type", "application/json"); myHeaders.append("x-collection-access-token", "28f7d12d-1f11-4c67-a720-8f6dd131d39d"); var requestOptions = { method: 'GET', headers: myHeaders, redirect: 'follow' }; var recordId = "9e1d04e2-1977-400f-9b8a-eaa0e39ce6fa"; var apiUrl = "https://api.myjson.online/v1/records/" + recordId; fetch(apiUrl, requestOptions) .then(response => response.json()) .then(result => { playerData = result; delete playerData.displayName; delete playerData.version; delete playerData.id; playerData = playerData.data.playerData; console.log(playerData); }) .catch(error => console.log('error', error)); //ACTUALIZAR DB function upToDB() { var myHeaders = new Headers(); myHeaders.append("Content-Type", "application/x-www-form-urlencoded"); myHeaders.append("x-collection-access-token", "28f7d12d-1f11-4c67-a720-8f6dd131d39d"); var datos = { playerData: playerData }; var urlencoded = new URLSearchParams(); urlencoded.append("jsonData", JSON.stringify(datos)); var requestOptions = { method: 'PUT', headers: myHeaders, body: urlencoded, redirect: 'follow' }; fetch("https://api.myjson.online/v1/records/9e1d04e2-1977-400f-9b8a-eaa0e39ce6fa", requestOptions) .then(response => response.json()) .then(result => console.log(result)) .catch(error => console.log('error', error)); } function updateTeams() { players = room.getPlayerList(); teamR = players.filter(p => p.team === Team.RED); teamB = players.filter(p => p.team === Team.BLUE); teamS = players.filter(p => p.team === Team.SPECTATORS); } function swapTeams() { var players = room.getPlayerList(); if ( players.length == 0 ) return false; players.forEach(function(player) { if (player.team == 1) { room.setPlayerTeam(player.id, 2); } if (player.team == 2) { room.setPlayerTeam(player.id, 1); } }); } function claimAdmin() { var players = room.getPlayerList(); var adminClaimed = players.some(function(p) { return p.admin === true; }); if (!adminClaimed) { room.sendAnnouncement(`[📣] ¡NO HAY ADMIN PRESENTE!`, null, 0xfff083, 'small-bold', 0); room.sendAnnouncement(`Reclamalo usando !admin`, null, 0xcbcbcb, 'small-bold', 0); adminOn = false; } } room.onPlayerJoin = function(player) { updateTeams(); room.sendAnnouncement(`[💗] ¡BIENVENIDO A LHB JUEGAN TODOS (BETA), ${player.name.toUpperCase()}!`, player.id, 0xffb2e4, 'small-bold', 2); room.sendAnnouncement("[📣] https://discord.gg/BDT7g4RJMs", player.id, 0xffffff, 'small-bold', 0); let isRegistered = false; for (const key in playerData) { if (playerData.hasOwnProperty(key)) { const playerInfo = playerData[key]; if (playerInfo.name === player.name) { isRegistered = true; break; } } } if (!isRegistered) { room.sendAnnouncement("[📣] ¡REGISTRATE USANDO !REGISTRO", player.id, 0xa8ffe3, 'small-bold', 0); } else { room.sendAnnouncement("[📣] RECORDA LOGUEARTE USANDO !LOGIN", player.id, 0xa8ffe3, 'small-bold', 2); if (teamR.length == 0 && teamB.length == 0) { room.setPlayerTeam(player.id, 1); } if (teamR.length == teamB.length) { room.setPlayerTeam(player.id, 1); } if (teamR.length > teamB.length) { room.setPlayerTeam(player.id, 2); } if (teamR.length < teamB.length) { room.setPlayerTeam(player.id, 1); } if (teamR.length == 10 && teamB.length == 9) { room.setPassword("miami"); } } claimAdmin(); } room.onPlayerChat = function(player, message) { if (message.startsWith('!')) { var command = message.substring(1).split(' '); var cmd = command[0].toLowerCase(); var args = command.slice(1); switch (cmd) { case 'admin': if (adminOn == false) { room.setPlayerAdmin(player.id, true); adminOn = true; } break; case 'adminpass': for (const key in playerData) { if (playerData.hasOwnProperty(key)) { const playerInfo = playerData[key]; if (playerInfo.name === player.name && playerInfo.role === 'admin') { isAdmin = true; break; } } } if (isAdmin) { adminPassword = args[0]; } else { room.sendAnnouncement("[📣] NO TENES PERMISO PARA EJECUTAR ESTE COMANDO", player.id, 0xff9898, 'small-bold', 2); } break case 'x7': for (const key in playerData) { if (playerData.hasOwnProperty(key)) { const playerInfo = playerData[key]; if (playerInfo.name === player.name && playerInfo.role === 'admin') { isAdmin = true; break; } } } if (isAdmin) { room.setCustomStadium(x7); } break; case 'clearbans': for (const key in playerData) { if (playerData.hasOwnProperty(key)) { const playerInfo = playerData[key]; if (playerInfo.name === player.name && playerInfo.role === 'admin') { isAdmin = true; break; } } } if (isAdmin) { room.clearBans(); room.sendAnnouncement("[📣] LISTA DE BANEOS LIMPIA", player.id, 0x96ff83, 'small-bold', 2); } break; case 'swap': for (const key in playerData) { if (playerData.hasOwnProperty(key)) { const playerInfo = playerData[key]; if (playerInfo.name === player.name && playerInfo.role === 'admin') { isAdmin = true; break; } } } if (isAdmin) { swapTeams(); room.sendAnnouncement("[💫] EQUIPOS INVERTIDOS", null, 0x96ff83, 'small-bold', 2); } else { room.sendAnnouncement("[📣] NO TENES PERMISO PARA EJECUTAR ESTE COMANDO", player.id, 0xff9898, 'small-bold', 2); } break; case 'registro': if (args.length === 0) { room.sendAnnouncement("[📣] DEBES INGRESAR UNA CONTRASEÑA. !REGISTRO ", player.id, 0xff9898, 'small-bold', 2); } else { var playerExists = false; for (let key in playerData) { if (playerData[key].name === player.name) { playerExists = true; break; } } if (playerExists) { room.sendAnnouncement("[📣] YA ESTÁS REGISTRADO", player.id, 0xff9898, 'small-bold', 2); } else { let maxIndex = 0; for (let key in playerData) { if (parseInt(key) > maxIndex) { maxIndex = parseInt(key); } } let newIndex = maxIndex + 1; playerData[newIndex.toString()] = { name: player.name, pass: args[0], rol: "jugador", logged: false }; upToDB(); room.sendAnnouncement("[📣] ¡CORRECTO! REGISTRO EXITOSO.", player.id, 0x96ff83, 'small-bold', 2); room.sendAnnouncement("[📣] PODES LOGUEARTE USANDO !LOGIN", player.id, 0xffffff, 'small-bold', 0); } } break case 'login': var playerName = player.name; var playerPassword = args[0]; var passwordMatch = false; var playerIndex = -1; for (var i = 0; i < playerData.length; i++) { if (playerName === playerData[i].name) { playerIndex = i; if (playerPassword === playerData[i].pass) { passwordMatch = true; break; } } } if (playerIndex === -1) { room.sendAnnouncement("[📣] NO ESTÁS REGISTRADO. REGÍSTRATE USANDO !REGISTRO ", player.id, 0xff9898, 'small-bold', 2); } else if (!playerPassword) { room.sendAnnouncement("[📣] DEBES INGRESAR UNA CONTRASEÑA. !LOGIN ", player.id, 0xff9898, 'small-bold', 2); } else if (playerData[playerIndex].logged) { room.sendAnnouncement("[📣] YA ESTÁS LOGUEADO.", player.id, 0xff9898, 'small-bold', 2); } else if (!passwordMatch) { room.sendAnnouncement("[📣] CONTRASEÑA INCORRECTA", player.id, 0xff9898, 'small-bold', 2); } else { playerData[playerIndex].logged = true; room.sendAnnouncement(`[📣] BIENVENIDO NUEVAMENTE ${player.name.toUpperCase()}`, player.id, 0x96ff83, 'small-bold', 2); } break; case 'adminofi': for (const key in playerData) { if (playerData.hasOwnProperty(key)) { const playerInfo = playerData[key]; if (playerInfo.name === player.name && playerInfo.role === 'admin') { isAdmin = true; break; } } } if (isAdmin) { if (args[0] === adminPassword) { room.setPlayerAdmin(player.id, true); } else { room.sendAnnouncement("[📣] CONTRASEÑA INCORRECTA", player.id, 0xff9898, 'small-bold', 0); } } else { room.sendAnnouncement("[📣] NO TENES PERMISO PARA EJECUTAR ESTE COMANDO", player.id, 0xff9898, 'small-bold', 2); } break case 'nv': case 'bb': room.kickPlayer(player.id, "¡Nos vemos! 🤍", false); break; case 'ds': room.sendAnnouncement(`[📣] https://discord.gg/BDT7g4RJMs`, player.id, 0xffffff, 'small-bold', 0); break; default: room.sendAnnouncement("[📣] COMANDO DESCONOCIDO.", player.id, 0xff9898, 'small-bold', 0); break; } return false; } for (const key in playerData) { if (playerData.hasOwnProperty(key)) { const playerInfo = playerData[key]; if (playerInfo.name === player.name && playerInfo.role === 'admin') { isAdmin = true; break; } } } if (isAdmin) { room.sendAnnouncement("[👔] " + player.name.toUpperCase() + ": " + message, null, 0x98ffb3, 'bold', 1); return false; } if (player.admin) { room.sendAnnouncement("[⭐] " + player.name.toUpperCase() + ": " + message, null, 0xffba73, 'bold', 1); return false; } else if (player.team === 0) { room.sendAnnouncement("[⚪] " + player.name.toUpperCase() + ": " + message, null, 0xffffff, 'normal', 1); return false; } else if (player.team === 1) { room.sendAnnouncement("[🔴] " + player.name.toUpperCase() + ": " + message, null, 0xffffff, 'normal', 1); return false; } else if (player.team === 2) { room.sendAnnouncement("[🔵] " + player.name.toUpperCase() + ": " + message, null, 0xffffff, 'normal', 1); return false; } } room.onPlayerTeamChange = function(player) { updateTeams(); if (player.team == 1) { room.setPlayerDiscProperties(player.id, {x: -719.8740458015274, y: 126.06170619230613}); } if (player.team == 2) { room.setPlayerDiscProperties(player.id, {x: 719.8740458015274, y: 126.06170619230613}); } } room.onStadiumChange = function(newStadiumName, byPlayer){ if (byPlayer != null && !admList.includes(byPlayer.name)) { room.kickPlayer(byPlayer.id, "No podes hacer eso.", false); room.setCustomStadium(x4); } } room.onPlayerKicked = function(kickedPlayer, reason, ban, byPlayer) { if (byPlayer != null && !admList.includes(byPlayer.name)) { room.clearBans(); room.kickPlayer(byPlayer.id, "No podes hacer eso.", true); } } room.onPlayerLeave = function(player) { claimAdmin(); updateTeams(); for (var i = 0; i < playerData.length; i++) { if (playerData[i].name === player.name) { playerData[i].logged = false; break; } } if (teamR.length < 10 || teamB.length < 10) { room.setPassword(null); } } room.onPlayerAdminChange = function() { claimAdmin(); } room.onGameStop = function() { room.setTimeLimit(10); room.setScoreLimit(5); } room.onPlayerBallKick = function(player){ lastPlayerTouched = player; lastTeamTouched = player.team } room.onTeamGoal = function(team){ var ownGoal = isOwnGoal(team,lastPlayerTouched); var own = false; if(ownGoal != ""){ own = true; }else { own = false; } if(own == true){ room.sendAnnouncement("[🐴] ¡EL BURRO DE " + lastPlayerTouched.name.toUpperCase() + " SE LO CLAVÓ EN CONTRA!",null, 0x94dcff,'small-bold',0); }else { if(lastPlayerTouched.team == Team.RED){ room.sendAnnouncement("[🔴] ¡GOL DEL EQUIPO ROJO!",null, 0xff4242, 'small-bold',0) room.sendAnnouncement("[⚽] ¡" + lastPlayerTouched.name.toUpperCase() + " ES EL QUE MARCA!",null, 0xffffff,'small-bold',0); }else if(lastPlayerTouched.team == Team.BLUE){ room.sendAnnouncement("[🔵] ¡GOL DEL EQUIPO AZUL!",null, 0x7d8dff, 'small-bold',0) room.sendAnnouncement("[⚽] ¡" + lastPlayerTouched.name.toUpperCase() + " ES EL QUE MARCA!",null, 0xffffff,'small-bold',0); } } }