Slimefun

Slimefun

3M Downloads

Question about the /sf research command

BurrowBird opened this issue ยท 7 comments

commented

๐Ÿ“ Description

Can't join the Discord so I'm not sure where to ask. I'll try here.

Is there a way to not specifiy the player in the /sf research command?
What I would like to do is to have the player running the command be the (player).

Things like @p or %player% don't work.

This way, players could grant themself specific research by clicking a button or a sign.
Specifically, I have a plugin that grants players temporary permissions when clicking on a sign, so I would temporarily grant them the research permission, they would click the sign, pay certain amount of server money and learn the research.

  • Server Software: PaperSpigot
  • Minecraft Version: 1.16.4
  • Slimefun Version: Slimefun4 - DEV 766 (git 5aa5c)
  • CS-CoreLib Version: CS-CoreLib+v1.6.3
commented

Yes there's a player arg. /sf research <player> <research-key>

You would need some plugin to replace a variable with a player name, we can't just randomly know who %player% is supposed to be. Either use the players name or a plugin that replaces the variable with a name.

Either way, yes it's possible.

commented

Well.... Yes, I assumed it's doable. Your answer feels a bit condescending. Unfortunately I'm not skilled enough to create a plugin myself and I couldn't find a plugin that does something this specific. I wouldn't even know what to look for or how to implement it to begin with. I was hoping there would be a way inside sf to do this. Thank you anyway.

commented

When discord is working again you could always suggest for sf to support @p and all the others

commented

I heard discord has been broken for weeks and still everything points to it like nothing is broken. But yea, I might do that if it ever recovers. Thank you.

commented

I don't know what @p is supposed to do...

If you have a command sign plugin (which, this wont work without that anyway even if we added) there should be a payer variable you can use.

commented

There is nothing they can do to fix it. Its an issue on discords site. No one expected such an issue to appear randomly. Thebusybiscuit is constantly contacting them but no progress on it yet. I think they find it as annoying as you do. Trust me i want it fixed aswell, i havent been in the discord over 3 weeks aswell to help support my plugins.

commented

The issue should be fixed in the latest build of discord now.