Cuberite Forum
SkyBlock v3 - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Plugins (https://forum.cuberite.org/forum-1.html)
+--- Forum: Plugin Releases (https://forum.cuberite.org/forum-2.html)
+--- Thread: SkyBlock v3 (/thread-1508.html)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16


RE: SkyBlock v3 - Seadragon91 - 02-18-2017

Well my plugin has no Info.lua. It breaks commands...

@yoboykai You can change the command in SkyBlock.lua or use the plugin that xoft suggested.


RE: SkyBlock v3 - yoboykai - 02-19-2017

I want to change all the /skyblock and /island commands to something else would I just edit them in the SkyBlock.lua and change them or is there multiple folders for the commands?


RE: SkyBlock v3 - Seadragon91 - 02-19-2017

@yoboykai The commands are all in SkyBlock.lua

This are the lines, they should be around line 85:
Code:
cPluginManager:BindCommand("/skyblock", "skyblock.command", CommandSkyBlock , " - Access to the skyblock plugin")
cPluginManager:BindCommand("/challenges", "skyblock.command", CommandChallenges , " - Access to the challenges")
cPluginManager:BindCommand("/island", "skyblock.command", CommandIsland , " - Access to the island commands")

To change the command, change: /skyblock, /challenges and /island.
You could also keep them, copy the lines and change the commands in the copied lines to /sb for /skyblock, /is for /island and /ch for /challenges.


RE: SkyBlock v3 - yoboykai - 02-19-2017

Ok I see now. Thank you.


RE: SkyBlock v3 - Seadragon91 - 02-19-2017

@yoboykai Ah sorry, I just forgot the language file. On first run a language file will be generated that is then placed in folder languages. You would need to change the commands there, too.


RE: SkyBlock v3 - yoboykai - 02-19-2017

Ok I'll change that to thanks for letting me know.


RE: SkyBlock v3 - yoboykai - 02-24-2017

Just for clarification in the languages file, I change every where it says things like 1=/skyblock join or 7=/island home set. to something like 1=/comand join.


RE: SkyBlock v3 - yoboykai - 02-24-2017

Never mind I answered my own question.Big Grin


RE: SkyBlock v3 - Seadragon91 - 04-01-2017

Corrected a nil access, wrong variable name. The error happens on running the command "/skyblock join".
Code:
[18:30:41] LUA: error in function 'new'.
    argument #2 is 'number'; '[no object]' expected.

[18:30:41] Stack trace:
[18:30:41]   [C](-1): (no name)
[18:30:41]   [C](-1): Vector3d
[18:30:41]   Plugins/SkyBlock/code/functions.lua(142): (no name)
[18:30:41]   [C](-1): ChunkStay
[18:30:41]   Plugins/SkyBlock/code/functions.lua(133): TeleportToIsland
[18:30:41]   Plugins/SkyBlock/code/commands/cmd_SkyBlock.lua(33): (no name)
[18:30:41] Stack trace end
[18:30:41] Error in <attached> calling function <callback>()



RE: SkyBlock v3 - Seadragon91 - 04-09-2017

Added german language file. Translated by @Angemessen.