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
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?
https://www.spigotmc.org/resources/essentialsx-selectors-a-p-r-addon.101057/
you tried this right?
SpigotMC - High Performance Minecraft
EssentialsX Selectors: @a, @p, @r (Addon)
it claims it works for eco
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
hm
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
SpigotMC - High Performance Minecraft
[API] CommandAPI [1.15-1.20.1]
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?
what specific error do u like get
like im confused on "it doesnt 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
what does it like say
and what version of it did u use
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
alr
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?
the ess selector tool lets me do /eco give @a 100
let me try again
one moment
command API tool lets me do this sort of formatting
you mean just execute commands
it lets you execute plugin cmds via execute although i checked and it doesnt work with selectors
what about slightly more complex stuff
like
/execute at @p run execute as @a[distance=..100] run afk
/execute as @a[gamemode=creative] run warp spawn would work
that'd work
but i already have the selector tool installed
š¢
and it wasnt working before
are you sure your using 1.7.1?
might also need to update your essx?
i believe its latest version that the host provides
update it manually
^^ im using a dev build
i would try reinstalling them but it tends to screw up the economy whenever i mess with the files
well
dont use the installer lol
updating your plugin jars 99% wont mess with your plugin configs
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
thats probs why ur having this issue lol
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
Also hallo
stay ignored
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
?
what about eco give @s 1000
dw
the issue is ur doing this in a datapack
thats why its annoying
Want an easy solution?
probably?
lol
what is your easy solution
Use a plugin š
for what
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
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
a better idea is this
1. Give them bedrock
2. use commandAPI to make them run /sell
3. they get money
we would do bedrock but there are concerns of people hoarding it or building with it
number 2 makes sure they cant do that
originally it was command blocks since those do nothing in survival
u can use a cmd_block instead too and also maybe add nbt to prevent placement?
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
can you use skript in aternos lol
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
they're using aternos and datapacks
nuff said
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
probs not since they're different
what are you doing with the datapack exactly? @Hallownest
Like give an example bounty or how it works
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
mhm i see
how do u make custom bosses?
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
are you going to be using custom mobs?
or just regular mobs with effects
depends on what you mean by custom
like might give them more health custom armor and stuff
but not like
mhm so like a zombie with armor and better health, sword/effects etc
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
SpigotMC - High Performance Minecraft
Custom Advancements
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...
are you suggesting we replace the datapack with this?
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
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?
it should do
%player%? yes
the documents says it does
and its a plugin
Spigot for some reason removed selectors in plugin cmds unless a plugin supports it
entity selection is horribly optimised
yeah but couldnt they just idk added a toggle for it
so if i want to do more apart from advancements, i can still use this for give commands and other things involving selectors right?
uhh
why do u need selectors exactly
you want to give the "player" who complete the achivement the $$$
thats true
selecters just have a lot of practical uses so i thought i might need them eventually
essentials has some support for **
tbf
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
well so far everything ive mentioned, minigames, combat based things
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
yeah, not particularly, i just think there may be a point where they might be neccessitated
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
i would run the server off my desktop but port forwarding is incompatible with my router
you got a debit card?
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.
what are its limitations
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
permanently or temporarily shut it down?
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.
so just turn it back on and im fine?
you kinda need to run the server with a cmd ye
you ever used linux before?
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