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.
122 Replies
Admincraft Meta
Admincraft Metaā€¢2y ago
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
Discount Milk
Discount Milkā€¢2y ago
What specific tasks? Mind giving a few examples?
Mortis
Mortisā€¢2y ago
it claims it works for eco
Hallownest
HallownestOPā€¢2y ago
Yes, and it does not such as like /eco give @s 1000
Discount Milk
Discount Milkā€¢2y ago
No. You said you wanted to give people money for completing certain activities
Hallownest
HallownestOPā€¢2y ago
yes i do, what are you saying no to ohhh i understand
Discount Milk
Discount Milkā€¢2y ago
I asked for examples of those tasks...
Hallownest
HallownestOPā€¢2y ago
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
Mortis
Mortisā€¢2y ago
hm
Hallownest
HallownestOPā€¢2y ago
we are also considering doing mini "boss" mobs that spawn every now and then which give you a decent amount of money
ProGamingDk
ProGamingDkā€¢2y ago
what would be spawning the mini bosses
Hallownest
HallownestOPā€¢2y ago
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?
Mortis
Mortisā€¢2y ago
what specific error do u like get like im confused on "it doesnt work"
Hallownest
HallownestOPā€¢2y ago
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
Mortis
Mortisā€¢2y ago
what does it like say and what version of it did u use
Hallownest
HallownestOPā€¢2y ago
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
Mortis
Mortisā€¢2y ago
alr
Hallownest
HallownestOPā€¢2y ago
and if no solid solution, not the end of the world because we have this, but like its just a tad scuffed
Mortis
Mortisā€¢2y ago
No description
No description
Hallownest
HallownestOPā€¢2y ago
what šŸ˜­ how is that with command API?
Mortis
Mortisā€¢2y ago
the ess selector tool lets me do /eco give @a 100
Hallownest
HallownestOPā€¢2y ago
let me try again one moment
Mortis
Mortisā€¢2y ago
command API tool lets me do this sort of formatting
No description
Hallownest
HallownestOPā€¢2y ago
you mean just execute commands
Mortis
Mortisā€¢2y ago
it lets you execute plugin cmds via execute although i checked and it doesnt work with selectors
Hallownest
HallownestOPā€¢2y ago
what about slightly more complex stuff like /execute at @p run execute as @a[distance=..100] run afk
Mortis
Mortisā€¢2y ago
/execute as @a[gamemode=creative] run warp spawn would work that'd work
Hallownest
HallownestOPā€¢2y ago
but i already have the selector tool installed šŸ˜¢ and it wasnt working before
Mortis
Mortisā€¢2y ago
are you sure your using 1.7.1? might also need to update your essx?
Hallownest
HallownestOPā€¢2y ago
i believe its latest version that the host provides
ProGamingDk
ProGamingDkā€¢2y ago
update it manually
Mortis
Mortisā€¢2y ago
^^ im using a dev build
Hallownest
HallownestOPā€¢2y ago
i would try reinstalling them but it tends to screw up the economy whenever i mess with the files
Mortis
Mortisā€¢2y ago
well dont use the installer lol updating your plugin jars 99% wont mess with your plugin configs
Hallownest
HallownestOPā€¢2y ago
I'm using aternos, so it doesnt let you input your own plugins or certain files
ProGamingDk
ProGamingDkā€¢2y ago
ouch
Hallownest
HallownestOPā€¢2y ago
yes i know big ouch not a fan but its better than minehut
Mortis
Mortisā€¢2y ago
thats probs why ur having this issue lol
ProGamingDk
ProGamingDkā€¢2y ago
there are better free alternatives
Hallownest
HallownestOPā€¢2y ago
the server is too developed to switch
ProGamingDk
ProGamingDkā€¢2y ago
cant u download shit?
Hallownest
HallownestOPā€¢2y ago
unless i guess if i copied all the configs, world file and playerdata which would be a task but i suppose its possible
Mortis
Mortisā€¢2y ago
Also hallo
ProGamingDk
ProGamingDkā€¢2y ago
stay ignored
Mortis
Mortisā€¢2y ago
my tests so far: - eco give @a 100 wont work - eco give username 100 works - execute at @p run execute as @a[gamemode=creative] run afk works due to command api - execute at @p run execute as @a[distance=..100] run eco give @s 100 doesnt work the Eco selector thingy just hooks into Essentials ?
Hallownest
HallownestOPā€¢2y ago
what about eco give @s 1000
ProGamingDk
ProGamingDkā€¢2y ago
dw
Mortis
Mortisā€¢2y ago
the issue is ur doing this in a datapack thats why its annoying Want an easy solution?
Hallownest
HallownestOPā€¢2y ago
probably? lol what is your easy solution
QarthO
QarthOā€¢2y ago
Use a plugin šŸ˜Š
Hallownest
HallownestOPā€¢2y ago
for what
Mortis
Mortisā€¢2y ago
give them a head disguised as token and sell the token via /sell using worth.yml or another plugin with vault that makes this shit easier/better
Hallownest
HallownestOPā€¢2y ago
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
Mortis
Mortisā€¢2y ago
a better idea is this 1. Give them bedrock 2. use commandAPI to make them run /sell 3. they get money
Hallownest
HallownestOPā€¢2y ago
we would do bedrock but there are concerns of people hoarding it or building with it
Mortis
Mortisā€¢2y ago
number 2 makes sure they cant do that
Hallownest
HallownestOPā€¢2y ago
originally it was command blocks since those do nothing in survival
Mortis
Mortisā€¢2y ago
u can use a cmd_block instead too and also maybe add nbt to prevent placement?
Hallownest
HallownestOPā€¢2y ago
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
Mortis
Mortisā€¢2y ago
can you use skript in aternos lol
Hallownest
HallownestOPā€¢2y ago
i think so im just not experienced at all šŸ’€
ProGamingDk
ProGamingDkā€¢2y ago
also bad performance tbf
Hallownest
HallownestOPā€¢2y ago
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
Mortis
Mortisā€¢2y ago
they're using aternos and datapacks nuff said
Hallownest
HallownestOPā€¢2y ago
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
Mortis
Mortisā€¢2y ago
probs not since they're different what are you doing with the datapack exactly? @Hallownest Like give an example bounty or how it works
Hallownest
HallownestOPā€¢2y ago
give me a sec
Hallownest
HallownestOPā€¢2y ago
No description
Hallownest
HallownestOPā€¢2y ago
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
Mortis
Mortisā€¢2y ago
mhm i see how do u make custom bosses?
Hallownest
HallownestOPā€¢2y ago
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
Mortis
Mortisā€¢2y ago
are you going to be using custom mobs? or just regular mobs with effects
Hallownest
HallownestOPā€¢2y ago
depends on what you mean by custom like might give them more health custom armor and stuff but not like
Mortis
Mortisā€¢2y ago
mhm so like a zombie with armor and better health, sword/effects etc
Hallownest
HallownestOPā€¢2y ago
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
Mortis
Mortisā€¢2y ago
GitHub
Configurations: Reward configurations
Custom Advancements is an easy to configure minecraft plugin where you can create your own advancements for your server. Your players can use the easy to use GUI to see the advancements and their p...
Hallownest
HallownestOPā€¢2y ago
are you suggesting we replace the datapack with this?
Mortis
Mortisā€¢2y ago
1. its available on aternos 2. it supports 1.20.1 3. it runs commands so you could do /eco give %player% 100 frankly surprised you didnt try going for a plugin route. datapacks are not that good for performance usually
Hallownest
HallownestOPā€¢2y ago
how so? i havent had much of an issue with them is it just ram intensive or something
ProGamingDk
ProGamingDkā€¢2y ago
horrible for performance if they use command functions functions in general* entity selection is also horrible optimised
Hallownest
HallownestOPā€¢2y ago
do you think the command would actually work?
Mortis
Mortisā€¢2y ago
it should do
ProGamingDk
ProGamingDkā€¢2y ago
%player%? yes
Mortis
Mortisā€¢2y ago
the documents says it does and its a plugin Spigot for some reason removed selectors in plugin cmds unless a plugin supports it
ProGamingDk
ProGamingDkā€¢2y ago
entity selection is horribly optimised
Mortis
Mortisā€¢2y ago
yeah but couldnt they just idk added a toggle for it
Hallownest
HallownestOPā€¢2y ago
so if i want to do more apart from advancements, i can still use this for give commands and other things involving selectors right?
Mortis
Mortisā€¢2y ago
uhh why do u need selectors exactly you want to give the "player" who complete the achivement the $$$
Hallownest
HallownestOPā€¢2y ago
thats true selecters just have a lot of practical uses so i thought i might need them eventually
ProGamingDk
ProGamingDkā€¢2y ago
essentials has some support for ** tbf
Mortis
Mortisā€¢2y ago
like tell us what ur planning as progaming lovingly said. ess supports ** which is @a but less advance although on top of my head you could probably do execute as @a run or just minecraft;give @a etc
Hallownest
HallownestOPā€¢2y ago
well so far everything ive mentioned, minigames, combat based things
Mortis
Mortisā€¢2y ago
but idk why you need selectors for that? quests/Achievements normally you want to reward the guy who done it the reward if you got some sort of team quest thing like beat this parkour you could use the advancement command with the selector in a cmd block if its a team event then use @a[team] etc
Hallownest
HallownestOPā€¢2y ago
yeah, not particularly, i just think there may be a point where they might be neccessitated
Mortis
Mortisā€¢2y ago
if you cant think of one then dont bother you're just overcomplicating the situation you also cant be picky as an aternos user lol
Hallownest
HallownestOPā€¢2y ago
i would run the server off my desktop but port forwarding is incompatible with my router
Mortis
Mortisā€¢2y ago
you got a debit card?
Mortis
Mortisā€¢2y ago
if you do then you can use https://wiki.daaan.uk/guides/oracle-cloud which is free but just requires a card to prevent fraud
Deploying in Oracle Cloud | setup.md
A modified version of the guide produced by u/Belaboy1095969 on the Admincraft reddit using Ubuntu LTS.
Hallownest
HallownestOPā€¢2y ago
what are its limitations
Mortis
Mortisā€¢2y ago
Basically none you just kinda need a brain lol the trick gives you a free VPS. if they think the server is inactive they may just shut it down. if you abuse it somehow it gets terminated
Hallownest
HallownestOPā€¢2y ago
permanently or temporarily shut it down?
Mortis
Mortisā€¢2y ago
some ppl claim they randomly lost their instance but i have yet to seen it happen to me and i been using it for a year or 2 inactive it just gets shut down and u gotta restart it.
Hallownest
HallownestOPā€¢2y ago
so just turn it back on and im fine?
Mortis
Mortisā€¢2y ago
you kinda need to run the server with a cmd ye you ever used linux before?
Hallownest
HallownestOPā€¢2y ago
nope
QarthO
QarthOā€¢2y ago
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
Hallownest
HallownestOPā€¢2y ago
doesn't sound too complex unless it is? thats probably the plan
QarthO
QarthOā€¢2y ago
Idk off the top of my head a plugin for this. There might not be an existing one, but should be easy to implement
Hallownest
HallownestOPā€¢2y ago
wouldnt this work?
QarthO
QarthOā€¢2y ago
Oh this might be it lmao Just read the documentation he posted All ur answers are in there
Hallownest
HallownestOPā€¢2y ago
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
QarthO
QarthOā€¢2y ago
Sounds good šŸ™‚
Hallownest
HallownestOPā€¢2y ago
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
QarthO
QarthOā€¢2y ago
can u not just use essentials/vault eco?
ProGamingDk
ProGamingDkā€¢2y ago
deluxemenu with placeholders? well depends why u want to take the money from them
Hallownest
HallownestOPā€¢2y ago
/eco take 1000 @s does not work is that a plugin thats customizable
ProGamingDk
ProGamingDkā€¢2y ago
well u make the menus urself so yes
Hallownest
HallownestOPā€¢2y ago
it functions as a shop?
ProGamingDk
ProGamingDkā€¢2y ago
u could do that if u set it up for it and add each item manually or u could use a shop plugin

Did you find this page helpful?