<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[Cuberite Forum - Plugin Discussion]]></title>
		<link>https://forum.cuberite.org/</link>
		<description><![CDATA[Cuberite Forum - https://forum.cuberite.org]]></description>
		<pubDate>Sun, 24 May 2026 22:06:13 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[How to make a Monster attack Player]]></title>
			<link>https://forum.cuberite.org/thread-3462.html</link>
			<pubDate>Thu, 01 May 2025 03:40:38 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.cuberite.org/member.php?action=profile&uid=5723">Goxe99</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.cuberite.org/thread-3462.html</guid>
			<description><![CDATA[Hellooo <img src="https://forum.cuberite.org/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /> , I have been reading the documentation and I don't see any method like SetTarget or AttackEntity in cMonster, how is it done? <img src="https://forum.cuberite.org/images/smilies/huh.png" alt="Huh" title="Huh" class="smilie smilie_17" />]]></description>
			<content:encoded><![CDATA[Hellooo <img src="https://forum.cuberite.org/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /> , I have been reading the documentation and I don't see any method like SetTarget or AttackEntity in cMonster, how is it done? <img src="https://forum.cuberite.org/images/smilies/huh.png" alt="Huh" title="Huh" class="smilie smilie_17" />]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Need Help for hooks]]></title>
			<link>https://forum.cuberite.org/thread-3460.html</link>
			<pubDate>Sun, 02 Feb 2025 14:54:11 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.cuberite.org/member.php?action=profile&uid=5451">Dredd</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.cuberite.org/thread-3460.html</guid>
			<description><![CDATA[Hi all, i have a problem. I don't understand how to do it right.<br />
Need:<br />
When opening the oven or chest, notice the movement of objects, and perform some actions before closing the window.<br />
My code doesn't work because the hook doesn't have the necessary functions.<br />
My code:<br />
<br />
Init.lua contains:<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">cPluginManager</span><span style="color: #007700">:</span><span style="color: #0000BB">AddHook</span><span style="color: #007700">(</span><span style="color: #0000BB">cPluginManager</span><span style="color: #007700">.</span><span style="color: #0000BB">HOOK_PLAYER_OPENING_WINDOW</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">OnOpeningWindow</span><span style="color: #007700">)&nbsp;<br /></span></code></div></div></div><br />
Hooks.lua contains:<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:</div><div class="body"><div dir="ltr"><code><span style="color: #007700">function&nbsp;</span><span style="color: #0000BB">OnOpeningWindow</span><span style="color: #007700">(</span><span style="color: #0000BB">Player</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">Window</span><span style="color: #007700">)<br /></span><span style="color: #0000BB"> &nbsp; &nbsp;&nbsp;local&nbsp;OnClicked&nbsp;</span><span style="color: #007700">=&nbsp;function(</span><span style="color: #0000BB">Window</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">ClickingPlayer</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">SlotNum</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">ClickAction</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">ClickedItem</span><span style="color: #007700">)<br /></span><span style="color: #0000BB"> &nbsp; &nbsp;  &nbsp; &nbsp;&nbsp;LOG</span><span style="color: #007700">(</span><span style="color: #DD0000">'Clicked'</span><span style="color: #007700">)<br /></span><span style="color: #0000BB"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><span style="color: #007700">return&nbsp;</span><span style="color: #0000BB">true<br /> &nbsp; &nbsp; end<br /> &nbsp; &nbsp;&nbsp;Window</span><span style="color: #007700">():</span><span style="color: #0000BB">SetOnClicked</span><span style="color: #007700">(</span><span style="color: #0000BB">OnClicked</span><span style="color: #007700">)<br /></span><span style="color: #0000BB">end&nbsp;<br /></span></code></div></div></div><br />
I don't understand how to get a callback to track clicks or movements of objects in an open window.<br />
<br />
<span style="color: #000000;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, Arial, Helvetica, sans-serif;" class="mycode_font">if I open a new window unrelated to the chest or furnace block, then I can receive a callback.</span></span> <br />
<span style="color: #000000;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, Arial, Helvetica, sans-serif;" class="mycode_font"><span style="color: #000088;" class="mycode_color">It works, but the window is not attached to the chest block:</span></span></span><br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">local&nbsp;OnClicked&nbsp;</span><span style="color: #007700">=&nbsp;function(</span><span style="color: #0000BB">Window</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">ClickingPlayer</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">SlotNum</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">ClickAction</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">ClickedItem</span><span style="color: #007700">)<br /></span><span style="color: #0000BB"> &nbsp; &nbsp; LOG</span><span style="color: #007700">(</span><span style="color: #DD0000">'Clicked'</span><span style="color: #007700">)<br /></span><span style="color: #0000BB">end<br />local&nbsp;Window&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">cLuaWindow</span><span style="color: #007700">(</span><span style="color: #0000BB">cWindow</span><span style="color: #007700">.</span><span style="color: #0000BB">wtChest</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">3</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">3</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'TestChest'</span><span style="color: #007700">)<br /></span><span style="color: #0000BB">Window</span><span style="color: #007700">:</span><span style="color: #0000BB">SetOnClicked</span><span style="color: #007700">(</span><span style="color: #0000BB">OnClicked</span><span style="color: #007700">)<br /></span><span style="color: #0000BB">Player</span><span style="color: #007700">:</span><span style="color: #0000BB">OpenWindow</span><span style="color: #007700">(</span><span style="color: #0000BB">Window</span><span style="color: #007700">)&nbsp;<br /></span></code></div></div></div><br />
Hhow to transfer an object to cLuaWindow and whether it is necessary?]]></description>
			<content:encoded><![CDATA[Hi all, i have a problem. I don't understand how to do it right.<br />
Need:<br />
When opening the oven or chest, notice the movement of objects, and perform some actions before closing the window.<br />
My code doesn't work because the hook doesn't have the necessary functions.<br />
My code:<br />
<br />
Init.lua contains:<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">cPluginManager</span><span style="color: #007700">:</span><span style="color: #0000BB">AddHook</span><span style="color: #007700">(</span><span style="color: #0000BB">cPluginManager</span><span style="color: #007700">.</span><span style="color: #0000BB">HOOK_PLAYER_OPENING_WINDOW</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">OnOpeningWindow</span><span style="color: #007700">)&nbsp;<br /></span></code></div></div></div><br />
Hooks.lua contains:<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:</div><div class="body"><div dir="ltr"><code><span style="color: #007700">function&nbsp;</span><span style="color: #0000BB">OnOpeningWindow</span><span style="color: #007700">(</span><span style="color: #0000BB">Player</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">Window</span><span style="color: #007700">)<br /></span><span style="color: #0000BB"> &nbsp; &nbsp;&nbsp;local&nbsp;OnClicked&nbsp;</span><span style="color: #007700">=&nbsp;function(</span><span style="color: #0000BB">Window</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">ClickingPlayer</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">SlotNum</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">ClickAction</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">ClickedItem</span><span style="color: #007700">)<br /></span><span style="color: #0000BB"> &nbsp; &nbsp;  &nbsp; &nbsp;&nbsp;LOG</span><span style="color: #007700">(</span><span style="color: #DD0000">'Clicked'</span><span style="color: #007700">)<br /></span><span style="color: #0000BB"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><span style="color: #007700">return&nbsp;</span><span style="color: #0000BB">true<br /> &nbsp; &nbsp; end<br /> &nbsp; &nbsp;&nbsp;Window</span><span style="color: #007700">():</span><span style="color: #0000BB">SetOnClicked</span><span style="color: #007700">(</span><span style="color: #0000BB">OnClicked</span><span style="color: #007700">)<br /></span><span style="color: #0000BB">end&nbsp;<br /></span></code></div></div></div><br />
I don't understand how to get a callback to track clicks or movements of objects in an open window.<br />
<br />
<span style="color: #000000;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, Arial, Helvetica, sans-serif;" class="mycode_font">if I open a new window unrelated to the chest or furnace block, then I can receive a callback.</span></span> <br />
<span style="color: #000000;" class="mycode_color"><span style="font-family: -apple-system, BlinkMacSystemFont, Arial, Helvetica, sans-serif;" class="mycode_font"><span style="color: #000088;" class="mycode_color">It works, but the window is not attached to the chest block:</span></span></span><br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">local&nbsp;OnClicked&nbsp;</span><span style="color: #007700">=&nbsp;function(</span><span style="color: #0000BB">Window</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">ClickingPlayer</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">SlotNum</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">ClickAction</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">ClickedItem</span><span style="color: #007700">)<br /></span><span style="color: #0000BB"> &nbsp; &nbsp; LOG</span><span style="color: #007700">(</span><span style="color: #DD0000">'Clicked'</span><span style="color: #007700">)<br /></span><span style="color: #0000BB">end<br />local&nbsp;Window&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">cLuaWindow</span><span style="color: #007700">(</span><span style="color: #0000BB">cWindow</span><span style="color: #007700">.</span><span style="color: #0000BB">wtChest</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">3</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">3</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'TestChest'</span><span style="color: #007700">)<br /></span><span style="color: #0000BB">Window</span><span style="color: #007700">:</span><span style="color: #0000BB">SetOnClicked</span><span style="color: #007700">(</span><span style="color: #0000BB">OnClicked</span><span style="color: #007700">)<br /></span><span style="color: #0000BB">Player</span><span style="color: #007700">:</span><span style="color: #0000BB">OpenWindow</span><span style="color: #007700">(</span><span style="color: #0000BB">Window</span><span style="color: #007700">)&nbsp;<br /></span></code></div></div></div><br />
Hhow to transfer an object to cLuaWindow and whether it is necessary?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[i need a way to have my plugin fill]]></title>
			<link>https://forum.cuberite.org/thread-3443.html</link>
			<pubDate>Fri, 11 Oct 2024 15:21:04 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.cuberite.org/member.php?action=profile&uid=5653">Alland20201</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.cuberite.org/thread-3443.html</guid>
			<description><![CDATA[im working on a minigame plugin and i didnt get setblock to work<br />
<br />
<span style="color: #c586c0;" class="mycode_color"><span style="font-family: Consolas, 'Courier New', monospace;" class="mycode_font">function</span></span> <span style="color: #dcdcaa;" class="mycode_color"><span style="font-family: Consolas, 'Courier New', monospace;" class="mycode_font">PlayerJoined</span></span><span style="color: #cccccc;" class="mycode_color"><span style="font-family: Consolas, 'Courier New', monospace;" class="mycode_font">(</span></span><span style="color: #9cdcfe;" class="mycode_color"><span style="font-family: Consolas, 'Courier New', monospace;" class="mycode_font">Player</span></span><span style="color: #cccccc;" class="mycode_color"><span style="font-family: Consolas, 'Courier New', monospace;" class="mycode_font">)</span></span><br />
<span style="color: #cccccc;" class="mycode_color"><span style="font-family: Consolas, 'Courier New', monospace;" class="mycode_font">    <span style="color: #569cd6;" class="mycode_color">local</span> <span style="color: #9cdcfe;" class="mycode_color">World</span> <span style="color: #d4d4d4;" class="mycode_color">=</span> <span style="color: #4ec9b0;" class="mycode_color">Player</span>:<span style="color: #dcdcaa;" class="mycode_color">GetWorld</span>()<br />
    <span style="color: #569cd6;" class="mycode_color">local</span> <span style="color: #9cdcfe;" class="mycode_color">position</span> <span style="color: #d4d4d4;" class="mycode_color">=</span> <span style="color: #dcdcaa;" class="mycode_color">Vector3i</span>(<span style="color: #b5cea8;" class="mycode_color">0</span>, <span style="color: #b5cea8;" class="mycode_color">500</span>, <span style="color: #b5cea8;" class="mycode_color">0</span>)<br />
    <span style="color: #569cd6;" class="mycode_color">local</span> <span style="color: #9cdcfe;" class="mycode_color">bedrock</span> <span style="color: #d4d4d4;" class="mycode_color">=</span> <span style="color: #b5cea8;" class="mycode_color">7</span><br />
    <span style="color: #4ec9b0;" class="mycode_color">World</span>:<span style="color: #dcdcaa;" class="mycode_color">FastSetBlock</span>(<span style="color: #9cdcfe;" class="mycode_color">position</span>, <span style="color: #9cdcfe;" class="mycode_color">bedrock</span>, <span style="color: #b5cea8;" class="mycode_color">0</span>)<br />
<span style="color: #c586c0;" class="mycode_color">end</span></span></span>]]></description>
			<content:encoded><![CDATA[im working on a minigame plugin and i didnt get setblock to work<br />
<br />
<span style="color: #c586c0;" class="mycode_color"><span style="font-family: Consolas, 'Courier New', monospace;" class="mycode_font">function</span></span> <span style="color: #dcdcaa;" class="mycode_color"><span style="font-family: Consolas, 'Courier New', monospace;" class="mycode_font">PlayerJoined</span></span><span style="color: #cccccc;" class="mycode_color"><span style="font-family: Consolas, 'Courier New', monospace;" class="mycode_font">(</span></span><span style="color: #9cdcfe;" class="mycode_color"><span style="font-family: Consolas, 'Courier New', monospace;" class="mycode_font">Player</span></span><span style="color: #cccccc;" class="mycode_color"><span style="font-family: Consolas, 'Courier New', monospace;" class="mycode_font">)</span></span><br />
<span style="color: #cccccc;" class="mycode_color"><span style="font-family: Consolas, 'Courier New', monospace;" class="mycode_font">    <span style="color: #569cd6;" class="mycode_color">local</span> <span style="color: #9cdcfe;" class="mycode_color">World</span> <span style="color: #d4d4d4;" class="mycode_color">=</span> <span style="color: #4ec9b0;" class="mycode_color">Player</span>:<span style="color: #dcdcaa;" class="mycode_color">GetWorld</span>()<br />
    <span style="color: #569cd6;" class="mycode_color">local</span> <span style="color: #9cdcfe;" class="mycode_color">position</span> <span style="color: #d4d4d4;" class="mycode_color">=</span> <span style="color: #dcdcaa;" class="mycode_color">Vector3i</span>(<span style="color: #b5cea8;" class="mycode_color">0</span>, <span style="color: #b5cea8;" class="mycode_color">500</span>, <span style="color: #b5cea8;" class="mycode_color">0</span>)<br />
    <span style="color: #569cd6;" class="mycode_color">local</span> <span style="color: #9cdcfe;" class="mycode_color">bedrock</span> <span style="color: #d4d4d4;" class="mycode_color">=</span> <span style="color: #b5cea8;" class="mycode_color">7</span><br />
    <span style="color: #4ec9b0;" class="mycode_color">World</span>:<span style="color: #dcdcaa;" class="mycode_color">FastSetBlock</span>(<span style="color: #9cdcfe;" class="mycode_color">position</span>, <span style="color: #9cdcfe;" class="mycode_color">bedrock</span>, <span style="color: #b5cea8;" class="mycode_color">0</span>)<br />
<span style="color: #c586c0;" class="mycode_color">end</span></span></span>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[webadmin]]></title>
			<link>https://forum.cuberite.org/thread-3398.html</link>
			<pubDate>Thu, 02 Nov 2023 01:18:13 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.cuberite.org/member.php?action=profile&uid=5515">XSeries553</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.cuberite.org/thread-3398.html</guid>
			<description><![CDATA[I can't figure out how to get to my webadmin.]]></description>
			<content:encoded><![CDATA[I can't figure out how to get to my webadmin.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Scoreboard team prefix]]></title>
			<link>https://forum.cuberite.org/thread-3387.html</link>
			<pubDate>Wed, 15 Mar 2023 00:34:21 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.cuberite.org/member.php?action=profile&uid=5472">kazhiel</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.cuberite.org/thread-3387.html</guid>
			<description><![CDATA[Since Minecraft, by default, limits the username to 16 characters, it is impossible to create "prefixes" correctly using cPlayer:SetCustomName(name) function. In Bukkit/Minecraft vanilla this is quickly resolved with scoreboard teams using prefix/sufix, which characters limit is 32<br />
<br />
As I'm new to Cuberite I tried to do the same in it, but without success. So after many tries i decided to look at the source code on GitHub and noticed that the team prefix on the scoreboard is not used anywhere in the code.<br />
<br />
So, is there any way to do this in Cuberite?<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>function LoadScoreboard(Player)<br />
    -- Scoreboard<br />
    Scoreboard = Player:GetWorld():GetScoreBoard()<br />
<br />
    if Scoreboard:GetTeam("Admin") == nil then<br />
        Scoreboard:RegisterTeam("Admin", "Admin", "§c[Admin]", "")<br />
    end<br />
<br />
    Scoreboard:GetTeam("Admin"):AddPlayer(Player:GetName())<br />
end</code></div></div>]]></description>
			<content:encoded><![CDATA[Since Minecraft, by default, limits the username to 16 characters, it is impossible to create "prefixes" correctly using cPlayer:SetCustomName(name) function. In Bukkit/Minecraft vanilla this is quickly resolved with scoreboard teams using prefix/sufix, which characters limit is 32<br />
<br />
As I'm new to Cuberite I tried to do the same in it, but without success. So after many tries i decided to look at the source code on GitHub and noticed that the team prefix on the scoreboard is not used anywhere in the code.<br />
<br />
So, is there any way to do this in Cuberite?<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>function LoadScoreboard(Player)<br />
    -- Scoreboard<br />
    Scoreboard = Player:GetWorld():GetScoreBoard()<br />
<br />
    if Scoreboard:GetTeam("Admin") == nil then<br />
        Scoreboard:RegisterTeam("Admin", "Admin", "§c[Admin]", "")<br />
    end<br />
<br />
    Scoreboard:GetTeam("Admin"):AddPlayer(Player:GetName())<br />
end</code></div></div>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[How i can change player nickname in TAB menu?]]></title>
			<link>https://forum.cuberite.org/thread-3378.html</link>
			<pubDate>Thu, 21 Jul 2022 13:19:09 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.cuberite.org/member.php?action=profile&uid=5424">timaaos</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.cuberite.org/thread-3378.html</guid>
			<description><![CDATA[Is there any API for changing player nickname on TAB menu and over player’s head?]]></description>
			<content:encoded><![CDATA[Is there any API for changing player nickname on TAB menu and over player’s head?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[i need help to plugins development]]></title>
			<link>https://forum.cuberite.org/thread-3377.html</link>
			<pubDate>Wed, 29 Jun 2022 18:01:38 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.cuberite.org/member.php?action=profile&uid=5421">Deu's</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.cuberite.org/thread-3377.html</guid>
			<description><![CDATA[hello, i'm are new and need help with the cuberite plugin development, i been read the documentation, but, some things were not clear to me,  is there a document or video more detailed?]]></description>
			<content:encoded><![CDATA[hello, i'm are new and need help with the cuberite plugin development, i been read the documentation, but, some things were not clear to me,  is there a document or video more detailed?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[attempting to make a plugin to spawn giants]]></title>
			<link>https://forum.cuberite.org/thread-3366.html</link>
			<pubDate>Tue, 13 Jul 2021 17:04:15 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.cuberite.org/member.php?action=profile&uid=5338">Code_Blue</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.cuberite.org/thread-3366.html</guid>
			<description><![CDATA[Hi,<br />
I am new to Lua and I wanted to modify the tutorial code a bit to create a plugin to spawn giants (1.12.2). I think I got most of it down, but I am having an issue with two different parts of it. <br />
Console Errors:<br />
<br />
[12:58:58] LUA: Plugins/SpawnGiants/spawngiants.lua:28: attempt to call method 'SpawnMob' (a nil value)<br />
[12:58:58] Stack trace:<br />
[12:58:58]  Plugins/SpawnGiants/spawngiants.lua(28): (no name)<br />
[12:58:58]  [C](-1): FindAndDoWithPlayer<br />
[12:58:58]  Plugins/SpawnGiants/spawngiants.lua(35): (no name)<br />
[12:58:58] Stack trace end<br />
[12:58:58] Error in &lt;attached&gt; calling function &lt;callback&gt;()<br />
<br />
<br />
Code:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>PLUGIN = nil<br />
<br />
function Initialize(Plugin)<br />
    Plugin:SetName("GiantSpawn")<br />
    Plugin:SetVersion(1)<br />
<br />
    -- Hooks<br />
<br />
    PLUGIN = Plugin -- NOTE: only needed if you want OnDisable() to use GetName() or something like that<br />
<br />
    -- Command Bindings<br />
    cPluginManager.BindCommand("/spawngiant", "SpawnGiants.main", SpawnGiant, " ~ Spawn a Giant at someone's location")<br />
<br />
<br />
    LOG("Initialised version " .. Plugin:GetVersion())<br />
    return true<br />
end<br />
function SpawnGiant(Split, Player)<br />
    if (#Split ~= 2) then<br />
        -- Send the proper usage to the player and exit<br />
        Player:SendMessage("Usage: /spawngiant [PlayerName]")<br />
        return true<br />
    end<br />
<br />
    local CommandSent = false<br />
    local GiantSpawnPerson = function(Giantee)<br />
        if (Giantee:GetName() == Split[2]) then<br />
            Player:SpawnMob(giant)<br />
            Player:SendMessageSuccess(Split[2] .. " has been attacked by a giant")<br />
            CommandSent = true<br />
            return true<br />
        end<br />
    end<br />
    cRoot:Get():FindandDoWithPlayer(Split[2], GiantSpawnPerson)<br />
<br />
    if not(CommandSent) then<br />
        Player:SendMessageFailure:(Split[2] .. " was not found")<br />
    end<br />
<br />
    return true<br />
end<br />
<br />
function OnDisable()<br />
    LOG("Shutting down...")<br />
end</code></div></div><br />
<br />
I am new to Lua and new to programming in general. Any help would be appreciated (This is running on a raspberry pi, I am not sure if that makes any difference.)]]></description>
			<content:encoded><![CDATA[Hi,<br />
I am new to Lua and I wanted to modify the tutorial code a bit to create a plugin to spawn giants (1.12.2). I think I got most of it down, but I am having an issue with two different parts of it. <br />
Console Errors:<br />
<br />
[12:58:58] LUA: Plugins/SpawnGiants/spawngiants.lua:28: attempt to call method 'SpawnMob' (a nil value)<br />
[12:58:58] Stack trace:<br />
[12:58:58]  Plugins/SpawnGiants/spawngiants.lua(28): (no name)<br />
[12:58:58]  [C](-1): FindAndDoWithPlayer<br />
[12:58:58]  Plugins/SpawnGiants/spawngiants.lua(35): (no name)<br />
[12:58:58] Stack trace end<br />
[12:58:58] Error in &lt;attached&gt; calling function &lt;callback&gt;()<br />
<br />
<br />
Code:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>PLUGIN = nil<br />
<br />
function Initialize(Plugin)<br />
    Plugin:SetName("GiantSpawn")<br />
    Plugin:SetVersion(1)<br />
<br />
    -- Hooks<br />
<br />
    PLUGIN = Plugin -- NOTE: only needed if you want OnDisable() to use GetName() or something like that<br />
<br />
    -- Command Bindings<br />
    cPluginManager.BindCommand("/spawngiant", "SpawnGiants.main", SpawnGiant, " ~ Spawn a Giant at someone's location")<br />
<br />
<br />
    LOG("Initialised version " .. Plugin:GetVersion())<br />
    return true<br />
end<br />
function SpawnGiant(Split, Player)<br />
    if (#Split ~= 2) then<br />
        -- Send the proper usage to the player and exit<br />
        Player:SendMessage("Usage: /spawngiant [PlayerName]")<br />
        return true<br />
    end<br />
<br />
    local CommandSent = false<br />
    local GiantSpawnPerson = function(Giantee)<br />
        if (Giantee:GetName() == Split[2]) then<br />
            Player:SpawnMob(giant)<br />
            Player:SendMessageSuccess(Split[2] .. " has been attacked by a giant")<br />
            CommandSent = true<br />
            return true<br />
        end<br />
    end<br />
    cRoot:Get():FindandDoWithPlayer(Split[2], GiantSpawnPerson)<br />
<br />
    if not(CommandSent) then<br />
        Player:SendMessageFailure:(Split[2] .. " was not found")<br />
    end<br />
<br />
    return true<br />
end<br />
<br />
function OnDisable()<br />
    LOG("Shutting down...")<br />
end</code></div></div><br />
<br />
I am new to Lua and new to programming in general. Any help would be appreciated (This is running on a raspberry pi, I am not sure if that makes any difference.)]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Working with packets.]]></title>
			<link>https://forum.cuberite.org/thread-3354.html</link>
			<pubDate>Sun, 25 Apr 2021 14:02:22 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.cuberite.org/member.php?action=profile&uid=5311">_XxFedexX_</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.cuberite.org/thread-3354.html</guid>
			<description><![CDATA[I am basically making a Vanish plugin, but it is not working correctly.<br />
In fact, if you use a hacked client, you can still see players with PlayerESP.<br />
So i searched in the API any way to work with packets and stop sending position update packets to the client if the player is vanished.<br />
To do the vanish, i used <span style="color: #d4d4d4;" class="mycode_color"><span style="font-size: small;" class="mycode_size"><span style="font-family: Consolas, 'Courier New', monospace;" class="mycode_font"><span style="color: #000000;" class="mycode_color">Player:<span style="color: #C19E00;" class="mycode_color">SetVisible</span>(</span><span style="color: #d4d4d4;" class="mycode_color"><span style="color: #000000;" class="mycode_color">) function.</span></span></span></span></span><br />
<br />
<span style="color: #d4d4d4;" class="mycode_color"><span style="font-size: small;" class="mycode_size"><span style="font-family: Consolas, 'Courier New', monospace;" class="mycode_font"><span style="color: #d4d4d4;" class="mycode_color"><span style="color: #000000;" class="mycode_color">Thank you!</span></span></span></span></span>]]></description>
			<content:encoded><![CDATA[I am basically making a Vanish plugin, but it is not working correctly.<br />
In fact, if you use a hacked client, you can still see players with PlayerESP.<br />
So i searched in the API any way to work with packets and stop sending position update packets to the client if the player is vanished.<br />
To do the vanish, i used <span style="color: #d4d4d4;" class="mycode_color"><span style="font-size: small;" class="mycode_size"><span style="font-family: Consolas, 'Courier New', monospace;" class="mycode_font"><span style="color: #000000;" class="mycode_color">Player:<span style="color: #C19E00;" class="mycode_color">SetVisible</span>(</span><span style="color: #d4d4d4;" class="mycode_color"><span style="color: #000000;" class="mycode_color">) function.</span></span></span></span></span><br />
<br />
<span style="color: #d4d4d4;" class="mycode_color"><span style="font-size: small;" class="mycode_size"><span style="font-family: Consolas, 'Courier New', monospace;" class="mycode_font"><span style="color: #d4d4d4;" class="mycode_color"><span style="color: #000000;" class="mycode_color">Thank you!</span></span></span></span></span>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[How to loop all players? - my code is not working]]></title>
			<link>https://forum.cuberite.org/thread-3351.html</link>
			<pubDate>Tue, 13 Apr 2021 07:47:49 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.cuberite.org/member.php?action=profile&uid=5311">_XxFedexX_</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.cuberite.org/thread-3351.html</guid>
			<description><![CDATA[<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>function OnTick(TickTime)<br />
    local ForEachPlayerTick = function(Player)<br />
        Player:SendMessage("Player never recieves this message")<br />
    end<br />
end</code></div></div>Of course I have added hook <br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>cPluginManager:AddHook(cPluginManager.HOOK_TICK, OnTick);</code></div></div>but it is not working.<br />
Console is not giving any error.<br />
Thank you very much! <img src="https://forum.cuberite.org/images/smilies/biggrin.png" alt="Big Grin" title="Big Grin" class="smilie smilie_4" />]]></description>
			<content:encoded><![CDATA[<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>function OnTick(TickTime)<br />
    local ForEachPlayerTick = function(Player)<br />
        Player:SendMessage("Player never recieves this message")<br />
    end<br />
end</code></div></div>Of course I have added hook <br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>cPluginManager:AddHook(cPluginManager.HOOK_TICK, OnTick);</code></div></div>but it is not working.<br />
Console is not giving any error.<br />
Thank you very much! <img src="https://forum.cuberite.org/images/smilies/biggrin.png" alt="Big Grin" title="Big Grin" class="smilie smilie_4" />]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Few questions - v1.16.*]]></title>
			<link>https://forum.cuberite.org/thread-3345.html</link>
			<pubDate>Tue, 30 Mar 2021 15:19:38 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.cuberite.org/member.php?action=profile&uid=5305">larryman</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.cuberite.org/thread-3345.html</guid>
			<description><![CDATA[Hi,<br />
I've had enough of server jams with java ... -_-<br />
I would like to switch to c ++ and start using Cuberite. But I have a few questions:<br />
1 - Is it possible to make the server work in version 1.16. *?<br />
2 - Do plugins on the server only work from this forum? Not from Spigot?<br />
3 - Does Cuberite work only on c ++ or does it work with Java?<br />
Thank you for answer <img src="https://forum.cuberite.org/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" />]]></description>
			<content:encoded><![CDATA[Hi,<br />
I've had enough of server jams with java ... -_-<br />
I would like to switch to c ++ and start using Cuberite. But I have a few questions:<br />
1 - Is it possible to make the server work in version 1.16. *?<br />
2 - Do plugins on the server only work from this forum? Not from Spigot?<br />
3 - Does Cuberite work only on c ++ or does it work with Java?<br />
Thank you for answer <img src="https://forum.cuberite.org/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" />]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Any way to run a player command from a plugin?]]></title>
			<link>https://forum.cuberite.org/thread-3340.html</link>
			<pubDate>Fri, 19 Feb 2021 20:38:11 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.cuberite.org/member.php?action=profile&uid=5282">mueller_minki</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.cuberite.org/thread-3340.html</guid>
			<description><![CDATA[Hello,<br />
I'm planning on making something that allows the console and command blocks to run commands as if they were a player. You would put like /run [SomePlayerCommand] inside of a command block and when powering it, it would execute it as if it was a player in the overworld with rank Admin. Has anyone done something like that before or knows what functions to call to make this work?<br />
<br />
And for all those shouting "Just use cPluginManager.ExecuteCommand":<br />
It doesn't seem to work correctly for my usecase. At least not in the way I tried to use it before.<br />
<span style="font-style: italic;" class="mycode_i">Here is my current code that doesn't work:</span><br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>function run(Split)<br />
    if (#Split &lt; 2) then<br />
&nbsp;&nbsp;&nbsp;&nbsp;-- There was less than one argument (excluding the "/" bit)<br />
&nbsp;&nbsp;&nbsp;&nbsp;-- Send the proper usage to the player and exit<br />
&nbsp;&nbsp;&nbsp;&nbsp;cRoot.BroadcastChatInfo("/say You need to provide a command.")<br />
&nbsp;&nbsp;&nbsp;&nbsp;return true<br />
    end<br />
    cPluginManager.ExecuteCommand(cPluginManager, tostring(Split))<br />
    return true<br />
end</code></div></div><br />
Edit:<br />
I'm so terrible at lua that even the help message won't work:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>error in function 'BroadcastChatInfo'.<br />
&nbsp;&nbsp;&nbsp;&nbsp; argument #1 is 'string'; 'cRoot' expected.</code></div></div>]]></description>
			<content:encoded><![CDATA[Hello,<br />
I'm planning on making something that allows the console and command blocks to run commands as if they were a player. You would put like /run [SomePlayerCommand] inside of a command block and when powering it, it would execute it as if it was a player in the overworld with rank Admin. Has anyone done something like that before or knows what functions to call to make this work?<br />
<br />
And for all those shouting "Just use cPluginManager.ExecuteCommand":<br />
It doesn't seem to work correctly for my usecase. At least not in the way I tried to use it before.<br />
<span style="font-style: italic;" class="mycode_i">Here is my current code that doesn't work:</span><br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>function run(Split)<br />
    if (#Split &lt; 2) then<br />
&nbsp;&nbsp;&nbsp;&nbsp;-- There was less than one argument (excluding the "/" bit)<br />
&nbsp;&nbsp;&nbsp;&nbsp;-- Send the proper usage to the player and exit<br />
&nbsp;&nbsp;&nbsp;&nbsp;cRoot.BroadcastChatInfo("/say You need to provide a command.")<br />
&nbsp;&nbsp;&nbsp;&nbsp;return true<br />
    end<br />
    cPluginManager.ExecuteCommand(cPluginManager, tostring(Split))<br />
    return true<br />
end</code></div></div><br />
Edit:<br />
I'm so terrible at lua that even the help message won't work:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>error in function 'BroadcastChatInfo'.<br />
&nbsp;&nbsp;&nbsp;&nbsp; argument #1 is 'string'; 'cRoot' expected.</code></div></div>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[How should I use cPluginManager.ExecuteConsoleCommand ???]]></title>
			<link>https://forum.cuberite.org/thread-3339.html</link>
			<pubDate>Fri, 19 Feb 2021 11:41:34 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.cuberite.org/member.php?action=profile&uid=5282">mueller_minki</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.cuberite.org/thread-3339.html</guid>
			<description><![CDATA[Hello, I was wondering if I could solve the commandblock issue by making a console command that would use cPluginManager.ExecuteConsoleCommand to simulate a command being run by a player. To test it, I made a new function which simply ran<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>cPluginManager.ExecuteConsoleCommand(cPluginManager, "/say Does this work?!?")</code></div></div>It said it had executed properly but there was no message in the chat. Why did that happen?]]></description>
			<content:encoded><![CDATA[Hello, I was wondering if I could solve the commandblock issue by making a console command that would use cPluginManager.ExecuteConsoleCommand to simulate a command being run by a player. To test it, I made a new function which simply ran<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>cPluginManager.ExecuteConsoleCommand(cPluginManager, "/say Does this work?!?")</code></div></div>It said it had executed properly but there was no message in the chat. Why did that happen?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Broken "for" loops]]></title>
			<link>https://forum.cuberite.org/thread-3338.html</link>
			<pubDate>Fri, 19 Feb 2021 08:19:42 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.cuberite.org/member.php?action=profile&uid=5282">mueller_minki</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.cuberite.org/thread-3338.html</guid>
			<description><![CDATA[Hello,<br />
I was making a plugin that had to run something ten times and came across what seems to be a bug:<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>    for i = 1, 10, 1 do <br />
        Player:SendMessage("Pass " .. i)<br />
    end</code></div></div><br />
This should return<br />
Pass 1<br />
Pass 2<br />
Pass 3<br />
Pass 4<br />
Pass 5<br />
Pass 6<br />
Pass 7<br />
Pass 8<br />
Pass 9<br />
Pass 10<br />
in chat.<br />
But instead, i get this error:<br />
'=' expected near 'for']]></description>
			<content:encoded><![CDATA[Hello,<br />
I was making a plugin that had to run something ten times and came across what seems to be a bug:<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>    for i = 1, 10, 1 do <br />
        Player:SendMessage("Pass " .. i)<br />
    end</code></div></div><br />
This should return<br />
Pass 1<br />
Pass 2<br />
Pass 3<br />
Pass 4<br />
Pass 5<br />
Pass 6<br />
Pass 7<br />
Pass 8<br />
Pass 9<br />
Pass 10<br />
in chat.<br />
But instead, i get this error:<br />
'=' expected near 'for']]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Not able to run command inside plugin]]></title>
			<link>https://forum.cuberite.org/thread-3337.html</link>
			<pubDate>Thu, 18 Feb 2021 12:01:17 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://forum.cuberite.org/member.php?action=profile&uid=5282">mueller_minki</a>]]></dc:creator>
			<guid isPermaLink="false">https://forum.cuberite.org/thread-3337.html</guid>
			<description><![CDATA[Hello,<br />
I'm writing a plugin and no matter what I try, i allways have "insufficient privileges "/setblock"". Can anyone help me with that?<br />
Here is the source:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>PLUGIN = nil<br />
<br />
function Initialize(Plugin)<br />
&nbsp;&nbsp;&nbsp;&nbsp;Plugin:SetName("VanillaFill")<br />
&nbsp;&nbsp;&nbsp;&nbsp;Plugin:SetVersion(1)<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-- Hooks<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;PLUGIN = Plugin -- NOTE: only needed if you want OnDisable() to use GetName() or something like that<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-- Command Bindings<br />
&nbsp;&nbsp;&nbsp;&nbsp;cPluginManager.BindCommand("/setblock", "vanillafill.setblock", setblock, " ~ Changes a block at X Y Z.");<br />
--&nbsp;&nbsp;&nbsp;&nbsp;cPluginManager.BindCommand("/fill", "vanillafill.fill", fill, " ~ Fills an area from X Y Z to X2 Y2 Z2.");<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;LOG("Initialised " .. Plugin:GetName() .. " v." .. Plugin:GetVersion())<br />
&nbsp;&nbsp;&nbsp;&nbsp;return true<br />
end<br />
<br />
function OnDisable()<br />
&nbsp;&nbsp;&nbsp;&nbsp;LOG(PLUGIN:GetName() .. " is shutting down...")<br />
end<br />
<br />
function setblock(Split, Player)<br />
&nbsp;&nbsp;&nbsp;&nbsp;if (#Split ~= 4) then<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- There was more or less than one argument (excluding the "/explode" bit)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- Send the proper usage to the player and exit<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Player:SendMessage("Usage: /setblock X Y Z [blocktype]")<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return true<br />
&nbsp;&nbsp;&nbsp;&nbsp;end<br />
<br />
    Player:GetWorld():SetBlock(Split[2], Split[3], Split[4], Split[5])<br />
<br />
    return true<br />
end</code></div></div>Console Log output:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>[12:55:56] Player muellerCAM3 is executing command "/setblock" in world "world" at world age 237160.<br />
[12:55:56] Player muellerCAM3 tried to execute forbidden command: "/setblock"</code></div></div>]]></description>
			<content:encoded><![CDATA[Hello,<br />
I'm writing a plugin and no matter what I try, i allways have "insufficient privileges "/setblock"". Can anyone help me with that?<br />
Here is the source:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>PLUGIN = nil<br />
<br />
function Initialize(Plugin)<br />
&nbsp;&nbsp;&nbsp;&nbsp;Plugin:SetName("VanillaFill")<br />
&nbsp;&nbsp;&nbsp;&nbsp;Plugin:SetVersion(1)<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-- Hooks<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;PLUGIN = Plugin -- NOTE: only needed if you want OnDisable() to use GetName() or something like that<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-- Command Bindings<br />
&nbsp;&nbsp;&nbsp;&nbsp;cPluginManager.BindCommand("/setblock", "vanillafill.setblock", setblock, " ~ Changes a block at X Y Z.");<br />
--&nbsp;&nbsp;&nbsp;&nbsp;cPluginManager.BindCommand("/fill", "vanillafill.fill", fill, " ~ Fills an area from X Y Z to X2 Y2 Z2.");<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;LOG("Initialised " .. Plugin:GetName() .. " v." .. Plugin:GetVersion())<br />
&nbsp;&nbsp;&nbsp;&nbsp;return true<br />
end<br />
<br />
function OnDisable()<br />
&nbsp;&nbsp;&nbsp;&nbsp;LOG(PLUGIN:GetName() .. " is shutting down...")<br />
end<br />
<br />
function setblock(Split, Player)<br />
&nbsp;&nbsp;&nbsp;&nbsp;if (#Split ~= 4) then<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- There was more or less than one argument (excluding the "/explode" bit)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- Send the proper usage to the player and exit<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Player:SendMessage("Usage: /setblock X Y Z [blocktype]")<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return true<br />
&nbsp;&nbsp;&nbsp;&nbsp;end<br />
<br />
    Player:GetWorld():SetBlock(Split[2], Split[3], Split[4], Split[5])<br />
<br />
    return true<br />
end</code></div></div>Console Log output:<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>[12:55:56] Player muellerCAM3 is executing command "/setblock" in world "world" at world age 237160.<br />
[12:55:56] Player muellerCAM3 tried to execute forbidden command: "/setblock"</code></div></div>]]></content:encoded>
		</item>
	</channel>
</rss>