Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Well my plugin has no Info.lua. It breaks commands...
You can change the command in SkyBlock.lua or use the plugin that xoft suggested.
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?
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.
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.
Ok I'll change that to thanks for letting me know.
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.
Never mind I answered my own question.

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>()
Added german language file. Translated by .
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16