Code Monkey home page Code Monkey logo

Comments (5)

FlashyReese avatar FlashyReese commented on July 28, 2024

What version are you running? Is it possible that you can provide those command aliases files as well?

from commandaliases.

Happyfrozenfire avatar Happyfrozenfire commented on July 28, 2024

Version: MC 1.19.2, Fabric 0.4.10, CommandAliases 0.9.4
addbonus:

{
	"commandMode": "COMMAND_CUSTOM",
	"customCommand": 
	{
		"parent": "addbonus",
		"permission": 4,
		"actions":
		[
		{
			"command": "lp user $executor_name() parent add bonus",
			"commandType": "SERVER"
		}
		]
	}
}

removebonus replaces the add argument with remove, and changeorigin doesn't need to run in an mcfunction.
The point of this is as a workaround due to luckperms not allowing the use of selectors in commands. Running execute as @a run addbonus in a command block works fine. I just can't reference addbonus in the mcfunction.

from commandaliases.

FlashyReese avatar FlashyReese commented on July 28, 2024

Quick question does reloading the datapack using /reload still not let you reference addbonus?

To be honest, I have no idea why it won't let you reference it as a command.
I assume you can reference lp user @a parent add bonus directly.

from commandaliases.

Happyfrozenfire avatar Happyfrozenfire commented on July 28, 2024

Nah, it still doesn't let me reference addbonus. I can reference lp user @s parent add bonus directly, but at the time, my config was a default where lp wouldn't let me use selectors. Turns out, you can allow lp selectors in config, so I don't this solution anymore, but it's still weird

from commandaliases.

FlashyReese avatar FlashyReese commented on July 28, 2024

The main issue is that Command Aliases are registered after default mod commands and datapacks, making it impossible for the datapack to locate them. Additionally, moving the Command Aliases registration to the default one would cause a failure to locate commands from mods loaded after Command Aliases.

from commandaliases.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.