Skip to content

Commit

Permalink
add mc connection
Browse files Browse the repository at this point in the history
  • Loading branch information
nglmercer committed Dec 10, 2024
1 parent bddc343 commit cd9f0f4
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/public/features/Minecraftconfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,13 @@ const minecraftdata = localStorage.getItem("MinecraftPluginServer") ? JSON.parse
const Aformelement = new EditModal(minecraftconfig);

const trackerMultiple = new UserInteractionTracker({autoDestroy: true});
trackerMultiple.addInteractionListener(async (interaction) => {
const interacted = trackerMultiple.getAllInteractionsByArray(['click','touchstart','keydown','input']);
if (interacted) {
console.log("interacted",interacted);
handlebotconnect("connect-plugin",minecraftdata);
trackerMultiple.destroy();
}
});
trackerMultiple.addInteractionListener(handlemcconnect);

function handlemcconnect(interaction) {
console.log("handlemcconnect",interaction);
handlebotconnect("connect-plugin",minecraftdata);

}
const htmlminecraft = Aformelement.ReturnHtml(minecraftdata);
htmlminecraft.classList.add('grid');
// document.getElementById('sendcommandmc').addEventListener('submit', function(e) {
Expand Down

0 comments on commit cd9f0f4

Please sign in to comment.