This minecraft plugin adds @a, @p, and @r to EssentialsX Commands! Works with command block and console aswell!

Overview

EssentialsX-Target-Selectors

This minecraft plugin adds @a, @p, and @r to EssentialsX Commands! Works with command block and console aswell!

Usage:

Just pop this into your server, and it will just work! No commands, no config no nothing! As simple as could be.

How is this helpful and what does it do?

The very popular plugin EssentialsX, has never had support for target selectors like @a, or @p. And especially when working with command blocks, those selectors would be very helpful if they existed, But with this plugin, they do!

@a - all players @p - closest player @r - random player @s - yourself

Note: @p and @s can NOT be run from the server console, and @s can NOT be used in command blocks.

Examples: Without plugin (normal essentialsX)

/give @a dirt -> Unknown player @a

/kill @p -> Unknown player @p

give @r diamond 5 - > Unknown player @r

With Essentials Selectors Plugin:

/give @a dirt -> *gives every player on the server dirt*

/kill @p -> *kills the closest player*

give @r diamond 5 - > *gives the closest player 5 diamonds*

IMPORTANT:

This plugin does not replace EssentialsX! You still need to install the orginial EssentialsX plugin for this to work!

Comments
  • Different worlds issue

    Different worlds issue

    What went wrong? Doesn't work with multiple words

    Steps for recreation:

    1. Two players go into two different worlds
    2. One try to step on a commandblocks with the command "sudo @p[r=3] sethome Parkour1"
    3. It results in the error down below, it does however work when both players are in the same world.

    Any errors in console? If so, post the full error here, or post it on this website and share the link.

    [23:39:51 ERROR]: Could not pass event ServerCommandEvent to EssentialsSelectors v1.6
    java.lang.IllegalArgumentException: Cannot measure distance between Parkour4 and Parkour1
            at org.bukkit.Location.distanceSquared(Location.java:510) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
            at org.bukkit.Location.distance(Location.java:493) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
            at doglover.Events.ServerCommandExecute.onConsoleCommandThingy(ServerCommandExecute.java:215) ~[EssentialsSelectors.jar:?]
            at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor56.execute(Unknown Source) ~[?:?]
            at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:75) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
            at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:git-Paper-131]
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:670) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
            at net.minecraft.commands.Commands.dispatchServerCommand(Commands.java:247) ~[?:?]
            at net.minecraft.world.level.BaseCommandBlock.performCommand(BaseCommandBlock.java:133) ~[?:?]
            at net.minecraft.world.level.block.CommandBlock.execute(CommandBlock.java:121) ~[?:?]
            at net.minecraft.world.level.block.CommandBlock.tick(CommandBlock.java:108) ~[?:?]
            at net.minecraft.world.level.block.state.BlockBehaviour$BlockStateBase.tick(BlockBehaviour.java:1013) ~[?:?]
            at net.minecraft.server.level.ServerLevel.tickBlock(ServerLevel.java:1103) ~[?:?]
            at net.minecraft.world.ticks.LevelTicks.runCollectedTicks(LevelTicks.java:197) ~[?:?]
            at net.minecraft.world.ticks.LevelTicks.tick(LevelTicks.java:94) ~[?:?]
            at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:635) ~[?:?]
            at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1553) ~[paper-1.19.2.jar:git-Paper-131]
            at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:446) ~[paper-1.19.2.jar:git-Paper-131]
            at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1416) ~[paper-1.19.2.jar:git-Paper-131]
            at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1192) ~[paper-1.19.2.jar:git-Paper-131]
            at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:305) ~[paper-1.19.2.jar:git-Paper-131]
            at java.lang.Thread.run(Thread.java:833) ~[?:?]
    

    What is your plugin, server, and java version? git-Paper-131 (MC: 1.19.2) EssentialsX Selector 1.6

    Anything else? I'd be super happy if it could be fixed as soon as possible :). I have like 8 worlds with hundreds of old commandblocks, they work perfectly except when players are in different worlds. Would be great if I didn't have to replace all commandblocks due to this issue.

    bug 
    opened by Johandrex 5
  • /tp @s positon doesn't work

    /tp @s positon doesn't work

    What went wrong? Player command /tp @s 10 12 10 doesn't work, still shows "player not found", but the command /tp @s can work When I was playing on "CatServer-1.12.2" trying to use the command "/tp @s 100 50 100" or the mods XaerosWorldMap, Xaeros_Minimap's funcation "Teleport Here" I still got "player not found". Please help fix that! Steps for recreation: 1. install CatServer with plugins ess. and mods XaerosWorldMap, Xaeros_Minimap 2.connect the CatServer, 3.type in the chat blank "tp @s 10 20 20" press enter you will see "player not found" (not just this three number, any position is ok) 4.pree M to open the full screen map right click on the map, choose "Teleport Here" you will got "player not found" in the chat PS the order of 3 & 4 doesn't matter Any errors in console? If so, post the full error here, or post it on this website and share the link.

    What is your plugin, server, and java version? The plugin version is: EssentialsSelectors-v1.6 EssentialsX-2.19.5-dev+20-8d856dd EssentialsXAntiBuild-2.19.5-dev+20-8d856dd EssentialsXChat-2.19.5-dev+20-8d856dd EssentialsXProtect-2.19.5-dev+20-8d856dd EssentialsXSpawn-2.19.5-dev+20-8d856ddx GroupManager-2.9 spark-1.8.19-bukkit Vault-1.7.3 The server is : CatServer-1.12.2 The java edtion is : 1.8.0_321

    Anything else?

    bug wontfix confirmed 
    opened by REver0 2
  • Add /minecraft:team support

    Add /minecraft:team support

    Default minecraft selectors have team selector. I want this selector to be added to the addon.

    For example, I want to write a message to all the players who are on the "AB" team, but I can't do that.

    enhancement Implemented 
    opened by TheJavick 1
  • Little typo in README

    Little typo in README

    https://github.com/DogLoverPink/EssentialsX-Target-Selectors/blob/91a6cb320181d6090d44993433125fd0e24cf975/README.md?plain=1#L32

    Not the closest. Random

    opened by NoPlagiarism 1
  • An error that occured whilst using the plugin.

    An error that occured whilst using the plugin.

    What went wrong? An error is thrown in console when using a messaging plugin on the Bungeecord proxy. When trying to message yourself, if the plugin properly blocks this, an error will be thrown into the console of the back-end server you are on.

    Steps for recreation:

    1. Have a messaging plugin on a Bungeecord proxy.
    2. Try to message yourself, a good messaging plugin should prevent this.
    3. The below error should occur in the console on the back-end server you are on.

    Any errors in console? If so, post the full error here, or post it on this website and share the link.

    [11:56:36 ERROR]: Could not pass event PlayerCommandPreprocessEvent to EssentialsSelectors v1.7
    java.lang.NullPointerException: Cannot invoke "org.bukkit.command.PluginCommand.getPlugin()" because the return value of "org.bukkit.Bukkit.getPluginCommand(String)" is null
            at doglover.Events.PlayerCommandExecute.onCommandThingy(PlayerCommandExecute.java:35) ~[EssentialsSelectors-1.7.0.jar:?]
            at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor25.execute(Unknown Source) ~[?:?]
            at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[purpur-api-1.19.3-R0.1-SNAPSHOT.jar:?]
            at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[purpur-api-1.19.3-R0.1-SNAPSHOT.jar:git-Purpur-1876]
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[purpur-api-1.19.3-R0.1-SNAPSHOT.jar:?]
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:680) ~[purpur-api-1.19.3-R0.1-SNAPSHOT.jar:?]
            at net.minecraft.server.network.ServerGamePacketListenerImpl.performChatCommand(ServerGamePacketListenerImpl.java:2353) ~[?:?]
            at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleChatCommand$21(ServerGamePacketListenerImpl.java:2339) ~[?:?]
            at net.minecraft.util.thread.BlockableEventLoop.lambda$submitAsync$0(BlockableEventLoop.java:59) ~[?:?]
            at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
            at net.minecraft.server.TickTask.run(TickTask.java:18) ~[purpur-1.19.3.jar:git-Purpur-1876]
            at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:153) ~[?:?]
            at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[?:?]
            at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1368) ~[purpur-1.19.3.jar:git-Purpur-1876]
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:197) ~[purpur-1.19.3.jar:git-Purpur-1876]
            at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126) ~[?:?]
            at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1345) ~[purpur-1.19.3.jar:git-Purpur-1876]
            at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1338) ~[purpur-1.19.3.jar:git-Purpur-1876]
            at net.minecraft.util.thread.BlockableEventLoop.runAllTasks(BlockableEventLoop.java:114) ~[?:?]
            at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1472) ~[purpur-1.19.3.jar:git-Purpur-1876]
            at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1194) ~[purpur-1.19.3.jar:git-Purpur-1876]
            at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:321) ~[purpur-1.19.3.jar:git-Purpur-1876]
            at java.lang.Thread.run(Thread.java:833) ~[?:?]
    

    What is your plugin, server, and java version? Purpur 1.19.3 b1876 EssentialsX 2.20.0-dev EssentialsSelectors 1.7

    bug 
    opened by RealTriassic 0
  • selector(s) not working in console

    selector(s) not working in console

    cant use @r in console

    1. open console
    2. type /sudo @r c:hello

    [Wed 23:03:28 INFO Essentials] CONSOLE issued server command: /sudo @r c:test [Wed 23:03:28 INFO ] Forcing @r to run: /c:test [Wed 23:03:28 INFO ] Error: Player not found.

    java 17, running on unknown paper version on pebblehost

    bug 
    opened by PierreV23 1
  • [BUG ]sudo @p warp spawn not working

    [BUG ]sudo @p warp spawn not working

    Heyy great plugin, but when I put this in a command block:''sudo @p warp spawn'' it doesnt work. It will give the error: Player not found. but "sudo @p spawn" works fine. Would be great if u can fix this.

    Minecraft version: 1.19 Plugin version: Latest

    bug cannot reproduce 
    opened by antiGriefer 4
Releases(v1.7)
Owner
null
A Forge mod based on the EssentialsX plugin suite

A Forge mod based on the EssentialsX plugin suite. Wiki (WIP) | Discord (WIP) | Website (WIP) | | | | Disclaimer: Mod is in early development. Note: I

Gigawhat 6 Aug 4, 2022
This plugin disables commands specified in the configuration and prevents granting the "OP" authority to people not authorized in the plugin configuration.

Ares This plugin disables commands specified in the configuration and prevents granting the "OP" authority to people not authorized in the plugin conf

ᴠᴀʟᴇɴᴛɪɴ ᴢʜᴇʟᴇᴠ 6 Aug 30, 2022
A minecraft server plugin which allows user to custom commands. 一个支持你在 MC 服务器自定义指令的插件。

CustomCommands:自定义指令 CustomCommands 插件也叫 CCS(CustomCommandS)或 Custom-Commands 等,允许自己设置一些指令的格式,以简化输入。 插件 QQ 群:1028582500 作者:椽子。 明城京联合太学,保留所有权利。 请遵循 GNU

CHUANWISE 13 Feb 10, 2022
Minecraft plugin that is providing all essential commands for Staff!

Staff Essentials Minecraft plugin that is providing all essential commands for Staff! Current goal is to add new functionalities and fix open bugs. I

charon 3 Sep 21, 2022
resetchunks is a tiny fabric mod that re-adds the /resetchunks command, allowing you to regenerate one or more chunks

resetchunks is a tiny fabric mod that enables the /resetchunks command, allowing you to regenerate one or more chunks.

Potassium 5 Jul 25, 2022
Spigot plugin with a bunch of quite useful commands in it!

QuiteUsefulCommands Spigot plugin with a bunch of quite useful commands in it. Install Download the latest release and drag it into your server's plug

MightyCoderX 6 Aug 20, 2022
A Spigot plugin to edit block properties and more.

BoneTool BoneTool is a tool created to edit block properties with many features for builders. This is a creative tool developed as a package of featur

DeZilla 1 Jan 6, 2022
Brings marriage to Minecraft servers using commands.

MarriageLab MarriageLab is a plugin that brings marriage to Minecraft servers using commands. It has been tested on Spigot and Paper. Requeriments Thi

Lably Team [Disintegrated] 5 Oct 8, 2021
A Minecraft Mod for Fabric which aims to make Block Entity rendering faster and more customizable with almost no compromises.

Enhanced Block Entities EBE is a 100% client side mod for Minecraft on the Fabric mod loader which aims to increase the performance of block entity re

null 151 Dec 30, 2022
A minecraft mod that allows using minecrafts structure block based test system

MC Tester Mod This mod allows using the automated structure based test system Mojang created for minecraft. The test system is only partially included

2No2Name 21 Nov 11, 2022
Minecraft mod to block NameMC indexing on servers.

Fuck NameMC A mod to block server status ping from NameMC. ?? What's this mod? Let's say it outright, NameMC doesn't have any decency. It indexes ever

LambdAurora 72 Dec 28, 2022
BetterBlockOutline - A client sided Minecraft mod that allows for ample customization of the block outline. Everything from color customization to debug information.

BetterBlockOutline BetterBlockOutline is a client sided Minecraft mod that allows for ample customization of the block outline. Everything from color

null 19 Nov 19, 2022
A Minecraft Java mod that adds 48 pieces of functional, decorative and unique furniture that fit with the vanilla style.

FurniDeco ( ?? WIP) FurniDeco adds 25 pieces of functional, decorative and unique-looking furniture that fit with the vanilla style. With more than 80

Arexon 2 Jul 3, 2022
A minecraft mod that adds colored ping values inside each player's nametag.

Ping Nametags (Fabric) A minecraft mod that adds colored ping values inside each player's nametag. Installation Stable Releases (recommended) The late

Paul Soporan 3 Nov 21, 2021
Addon to the Minecraft Forge/Fabric mod InvMove that adds mod compatibilities

Addon to the Minecraft Forge/Fabric mod InvMove that adds mod compatibilities

David M. 3 Oct 21, 2022
Minecraft Forge/Fabric mod that adds the ability to walk around while in inventories

Minecraft Forge/Fabric mod that adds the ability to walk around while in inventories

David M. 16 Nov 22, 2022
JED is mod that adds descriptions to every item in Minecraft with a simple UI

JED is mod that adds descriptions to every item in Minecraft with a simple UI

null 5 Mar 6, 2022
A Minecraft Forge Mod that adds the features from Blockixel Artistry's YouTube videos

Blockixel Concepts for Forge 1.18.2 Fabric Port at https://github.com/JimmyTheGreat1500/BlockixelConcepts A Forge mod that aims to implement Blockixel

OutCraft 3 Dec 25, 2022
Minecraft mod - Adds more support for keyboard navigation in GUI screens!

UseKeyboardWithMenu Client-sided mod that adds more support for keyboard navigation in GUI screens! ?? Table of Contents About Authors ?? About UseKey

ZimonIsHim 3 Apr 26, 2022