TGViewer
ботик ботик @botikst · 22 subscribers
Post #96 60
Скрипт команды (chatSend)
import { world, system } from "@minecraft/server";

world.beforeEvents.chatSend.subscribe((data) => {
fik(data)
})

function fik(data) {
const send = data.sender;
const message = data.message;
const cach1 = message === "!start";
const cach2 = message === "!help";
const cach3 = message === "!menu";
const cach4 = message === "!admin";
const ff = message === "!";

const cancel = (cach1 || cach2 || cach3 || cach4 || ff) && (data.cancel = true);
const che1 = cach1 && system.run(() => {
send.runCommand(`title @a title команда start`);
});
const che2 = cach2 && system.run(() => {
send.runCommand(`title @a title команда help`);
});
const che3 = cach3 && system.run(() => {
send.runCommand(`title @a title команда menu`);
});
const che4 = cach4 && system.run(() => {
if (send.hasTag("op")) {
send.runCommand(`title @a title команда admin`);
} else {
send.runCommand(`title @a title нет тега "op"`);
}
});
const ffi = ff && system.run(() => {
send.sendMessage(`!start\n!help\n!menu\n!admin (tag=op)`);
});

return;
}
More from @botikst
  1. Sep 6, 2026пример WebSocket10
  2. Sep 6, 2026Файл скрипт WebSocket10
  3. Sep 6, 2026файл apk termux
  4. Sep 6, 2026Скрипт WebSocket10 const TelegramBot = require('node-telegram-bot-api'); const WebSocket =…
  5. Sep 6, 2026Команды termux: termux-setup-storage pkg update && pkg upgrade -y pkg install nodejs-lts n…
  6. Jul 26, 2026Пример «Импульс»
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →