Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Any way to run a player command from a plugin?
Post: Any way to run a player command from a plugin?
Hello,
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 w... |
|
mueller_minki |
Plugin Discussion
|
1 |
1,974 |
02-20-2021, 06:38 AM |
|
|
Thread: How should I use cPluginManager.ExecuteConsoleCommand ???
Post: How should I use cPluginManager.ExecuteConsoleComm...
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, ... |
|
mueller_minki |
Plugin Discussion
|
1 |
1,774 |
02-19-2021, 09:41 PM |
|
|
Thread: Broken "for" loops
Post: RE: Broken "for" loops
NiLSPACE Wrote: (02-19-2021, 07:45 PM)
--
That's because you're trying to use the variable 'offsetx' as a function. You probably want to use your 'offsetX' function with a capital X.
--
You were ri... |
|
mueller_minki |
Plugin Discussion
|
8 |
4,430 |
02-19-2021, 08:01 PM |
|
|
Thread: Broken "for" loops
Post: RE: Broken "for" loops
NiLSPACE Wrote: (02-19-2021, 07:32 PM)
--
The reason why the for loop doesn't work is because the statement above it is incorrect. You just have 'countx' which isn't a valid statement. Once you remo... |
|
mueller_minki |
Plugin Discussion
|
8 |
4,430 |
02-19-2021, 07:43 PM |
|
|
Thread: Broken "for" loops
Post: RE: Broken "for" loops
If there is a more elegant way to fill an area from a plugin, please tell me. Would make my life way easyer here. |
|
mueller_minki |
Plugin Discussion
|
8 |
4,430 |
02-19-2021, 07:32 PM |
|
|
Thread: Broken "for" loops
Post: RE: Broken "for" loops
NiLSPACE Wrote: (02-19-2021, 06:47 PM)
--
Could you post the code around the for loop?
--
Warning: this code is a mess. Im planning on making a /fill command and it has to run setBlock for every bl... |
|
mueller_minki |
Plugin Discussion
|
8 |
4,430 |
02-19-2021, 07:25 PM |
|
|
Thread: Broken "for" loops
Post: Broken "for" loops
Hello,
I was making a plugin that had to run something ten times and came across what seems to be a bug:
Code:
--
for i = 1, 10, 1 do
Player:SendMessage("Pass " .. i)
end
--
... |
|
mueller_minki |
Plugin Discussion
|
8 |
4,430 |
02-19-2021, 06:19 PM |
|
|
Thread: Not able to run command inside plugin
Post: Not able to run command inside plugin
OK, its now all working.
Here is the final code for anyone wanting /setblock in cuberite.
I will make a github with the full /fill and /setblock plugin when its done.
Until then, you can use this:
... |
|
mueller_minki |
Plugin Discussion
|
11 |
5,656 |
02-19-2021, 12:35 AM |
|
|
Thread: Not able to run command inside plugin
Post: RE: Not able to run command inside plugin
Ok, idk why but it wants BlockType to be a number? Why?
Code:
--
error in function 'SetBlock'.
argument #3 is 'string'; 'number' expected.
--
Here is the plugin as far as I am right now:
... |
|
mueller_minki |
Plugin Discussion
|
11 |
5,656 |
02-18-2021, 11:34 PM |
|
|
Thread: Not able to run command inside plugin
Post: RE: Not able to run command inside plugin
Ok, this is what I came up with but it doesn't work:
outVector3 = {x = 0, y = 0, z = 0}
outVector3.x = tonumber(Split[2])
outVector3.y = tonumber(Split[3])
outVector3.z = tonumbe... |
|
mueller_minki |
Plugin Discussion
|
11 |
5,656 |
02-18-2021, 11:28 PM |
|
|
Thread: Not able to run command inside plugin
Post: RE: Not able to run command inside plugin
Ok, got it fixed now. something was messed up with my database.
But now there is a new problem: SetBlock wants a Vector3 and idk what that even is and how to make 3 strings into 1 Vector3. |
|
mueller_minki |
Plugin Discussion
|
11 |
5,656 |
02-18-2021, 11:25 PM |
|
|
Thread: Not able to run command inside plugin
Post: RE: Not able to run command inside plugin
NiLSPACE Wrote: (02-18-2021, 10:42 PM)
--
That's because you haven't given yourself more permissions than the basics that Cuberite has by default. You can make yourself admin using 'op muellerCAM3' i... |
|
mueller_minki |
Plugin Discussion
|
11 |
5,656 |
02-18-2021, 11:02 PM |
|
|
Thread: Not able to run command inside plugin
Post: Not able to run command inside plugin
Hello,
I'm writing a plugin and no matter what I try, i allways have "insufficient privileges "/setblock"". Can anyone help me with that?
Here is the source:
Code:
--
PLUGIN = nil
function Init... |
|
mueller_minki |
Plugin Discussion
|
11 |
5,656 |
02-18-2021, 10:01 PM |
|
|
Thread: How can I make something like the vanilla /fill command inside my plugin?
Post: How can I make something like the vanilla /fill co...
Hello,
I'm running a small Server with minigames and I need a way to fill the layers of my spleef game after it has been played. I originally thought that I could just use /fill but I found out that ... |
|
mueller_minki |
Plugin Discussion
|
1 |
1,751 |
02-18-2021, 06:26 PM |