Essentials Player Selecters Issue
I'm having a HUGE issue with my server!
As you guys probably know, Essentials doesn't recognize player selectors (@a, @p, @s, etc.)
I want to /eco give @s number if someone completes a specific task, but that wont work. Does anyone have a solution or workaround?
I tried using a banknotes plugin, but it was outdated; and I imagine the rest aren't working either.
My friend and I are attempting to create a datapack that will give people money for completing bounties, but it's challenging since Essentials plugins refuse to acknowledge player selectors. We attempted to use the Essentials Selectors Plugin, but the /eco command still will not work with selectors, despite being a part of Essentials.
If you think of any creative solutions or plugins to solve this, let me know! We want to come up with several unique and fun ways to earn money besides just mining or grinding out farms, and this is challenging considering the requirement to type a specific player name.
47 Replies
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close
!close
!solved
!answered
Requested by teamcherrygames#0
What specific tasks?
Mind giving a few examples?
Yes, and it does not
such as like /eco give @s 1000
No. You said you wanted to give people money for completing certain activities
yes i do, what are you saying no to
ohhh
i understand
I asked for examples of those tasks...
yeah my mistake
i just woke up haha
As an example, there are achievements in the datapack which would give you cash after completion which are all different
things such as kill a husk or collect 64 wool
we are also considering doing mini "boss" mobs that spawn every now and then which give you a decent amount of money
what would be spawning the mini bosses
we currently have an okay solution which is player heads are unattainable by survival players, so completing an activity gives you a player head in the shape of a money bag which you may sell
and thats an okay solution
how exactly does this work?
okay
so
it simply requires a player to be specified
so like if i did /eco give @s 1000
that would not work, but /eco give Hallownest 1000 would work
from what i recall it says something along the lines of not being a valid player
the server is on 1.20.1
I'm not certain of the exact version but I might be able to check
also, we are using EssentialsX
v2.20.0
this was v1.7.1
and if no solid solution, not the end of the world because we have this, but like its just a tad scuffed
what
š
how
is that with command API?
let me try again
one moment
you mean just execute commands
what about slightly more complex stuff
like
/execute at @p run execute as @a[distance=..100] run afk
but i already have the selector tool installed
š¢
and it wasnt working before
i believe its latest version that the host provides
update it manually
i would try reinstalling them but it tends to screw up the economy whenever i mess with the files
I'm using aternos, so it doesnt let you input your own plugins or certain files
ouch
yes
i know
big ouch
not a fan but its better than minehut
there are better free alternatives
the server is too developed to switch
cant u download shit?
unless i guess if i copied all the configs, world file and playerdata
which would be
a task
but i suppose its possible
stay ignored
what about eco give @s 1000
dw
probably?
lol
what is your easy solution
Use a plugin š
for what
that is already the solution i came up with lol
its just a bit sccuffed
we turned off the thing in config preventing you from selling named items
so its just named like $100 or something
it works its just a little goofy
we would do bedrock but there are concerns of people hoarding it or building with it
originally it was command blocks since those do nothing in survival
thats true
but then again i think the head just looks nicer
thats why we switched
on the subject of that solution, is there a plugin that can detect if you right click
on an item
kind of like how a carrot on a stick can
i think so
im just
not experienced at all
š
also bad performance tbf
because it would be great to just be able to right click the head and have it sell itself
rather than make players manually type it out
by the way
the main reason why this is an issue is because i want to have a variety of tasks in the future that give money
and in some cases it just seems more efficient to deliver it directly to their account
still might get the command api anyways
its not an intensive datapack š
i know people used skript on minehut
if it works on minehut
it probably will on aternos
give me a sec

theres tasks too
not just bounties
so some tasks are based off of achievements
but i intend in the future for there to be other ways to get money like random boss spawn events, minigames, bets (1v1s)
maybe not all of them
well that is just plans for the future
but if i had to guess it would just be set to a timer to spawn every so often and near a player with like spreadplayers or something
depends on what you mean by custom
like might give them more health custom armor and stuff
but not like
custom moves or anything to that level
probably
its just an idea so far
its a dual effort
i have a relatively minimal understanding of commands, but enough to get me by
are you suggesting we replace the datapack with this?
how so? i havent had much of an issue with them
is it just ram intensive or something
horrible for performance if they use command functions
functions in general*
entity selection is also horrible optimised
do you think the command would actually work?
%player%? yes
entity selection is horribly optimised
so if i want to do more apart from advancements, i can still use this for give commands and other things involving selectors right?
thats true
selecters just have a lot of practical uses so i thought i might need them eventually
essentials has some support for **
tbf
well so far everything ive mentioned, minigames, combat based things
yeah, not particularly, i just think there may be a point where they might be neccessitated
i would run the server off my desktop but port forwarding is incompatible with my router
what are its limitations
permanently or temporarily shut it down?
so just turn it back on and im fine?
nope
Well, another option is to find a plugin that rewards based off achievement.
Since the datapack uses the vanilla achievement system and just adds custom ones you might be able to just listen for achievement compelted
doesn't sound too complex unless it is?
thats probably the plan
Idk off the top of my head a plugin for this. There might not be an existing one, but should be easy to implement
wouldnt this work?
Oh this might be it lmao
Just read the documentation he posted
All ur answers are in there
Alrighty
Before closing this thread I'm just gonna experiment make sure everythings working to not waste resources
but at least from what i understand I'm good to go
Sounds good š
hello again
i have run into a new issue
lol
We have a system for delivering players cash in the form of items now
however
we also need a system that can take money from them
The main points are
- A system that can detect if a player has enough money in their balance
- A system that can take that money out of the player's balance
can u not just use essentials/vault eco?
deluxemenu with placeholders?
well depends why u want to take the money from them
/eco take 1000 @s does not work
is that a plugin thats customizable
well u make the menus urself
so yes
it functions as a shop?
u could do that
if u set it up for it
and add each item manually
or u could use a shop plugin