From 023a2dd8554fa65b3baf8106a64686db6b7e729e Mon Sep 17 00:00:00 2001 From: radmanplays <95340057+radmanplays@users.noreply.github.com> Date: Sun, 29 Sep 2024 16:46:57 +0330 Subject: [PATCH] Update mobnpcspawner.js --- examplemods/mobnpcspawner.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/examplemods/mobnpcspawner.js b/examplemods/mobnpcspawner.js index 8e24aae..b16caff 100644 --- a/examplemods/mobnpcspawner.js +++ b/examplemods/mobnpcspawner.js @@ -1,8 +1,6 @@ (() => { PluginAPI.dedicatedServer.appendCode(function () { PluginAPI.addEventListener("processcommand", (event) => { - // Check if the sender is a player - if (!ModAPI.reflect.getClassById("net.minecraft.entity.player.EntityPlayerMP").instanceOf(event.sender.getRef())) { return; } // Check if the command is "/spawnnpc" if (event.command.toLowerCase().startsWith("/spawnnpc")) {