[DISCONTINUED] EssentialCmds [v8.1.14]

Release v7.4b:

Tested on SpongeForge 1147

Changes:

  • Minor bug fixes.
  • Added functionality to /tp

Commands:

  • /tp <player> [<target>] - Teleports you to player or teleports target to player.
  • /tp <x> <y> <z> [<world>] [<target>] - Teleports you to the specified coordinates. Supports other worlds as well as teleporting different people. Almost the same as /tppos

Permissions:

  • essentialcmds.teleport.use

Whenever you have time do you think you can make it so you can click links in /msg and add a permission for it as well to be able to limit it?

Sure.

Limit messages or just links?

I just want to limit links

1 Like

interesting… I got the same problem, but with a different plugin :wink:

“essentialcmds.home.*”: 1,
“essentialcmds.home.use”: 1,
“essentialcmds.home.set”: 1,
“essentialcmds.home.list”: 1,
“essentialcmds.home.delete”: 1,

another note: essentialcmds.home.* is a wildcard. there’s no need to use it, as PEX supports using essentialcmds.home instead. It will include all subcommands. You don’t need to set the other 4 perms either, as they’re included anyways :wink:

So basically the 5 permissions i showed above boil down to this:

“essentialcmds.home”:1,

PS: using inheritance (basing one group on the other) would boil down your permissions file even further…

2 Likes

@HassanS6000
Why have you added .use to almost every permission? It doesn’t make sense when there are no other nodes present…

Doesn’t make sense, as there are no other nodes present:

essentialcmds.helpop.use

Makes sense as there actually are other nodes. This allows us to separate usage and list/delete/set:

essentialcmds.home.delete
essentialcmds.home.list
essentialcmds.home.set
essentialcmds.home.use

The full list PEX reported:

Also:

essentialcmds.world.create
essentialcmds.world.delete
essentialcmds.world.load
essentialcmds.world.spawn.set
essentialcmds.world.use
essentialcmds.worldinfo.use
essentialcmds.worlds.list

Why is the last one worlds instead of world?
Why is the list perm not called Esscmds.world.info?
Feels a bit inconsistent :wink:

Same here:

essentialcmds.tpa.accept
essentialcmds.tpa.use
essentialcmds.tpadeny.use
essentialcmds.tpahere.use
essentialcmds.tphere.use
essentialcmds.tpworld.use

I’d expect them either to follow esscmds.tpa.X scheme or something completely different.

1 Like

Thanks for reporting the inconsistencies. I’ll get to work fixing these. :slight_smile:

1 Like

Hi
Very well done plugin
I have a suggestion, could you make it so the plugin supports colouring of names? (Possibly make it tie into PEX)
And also in the config file under message you can’t use the @p under “# Message sent to a player when they join the server.” Would be awesome if you could greet the player by their name every time they log in :slightly_smiling:

What’s wrong with this?
When the player first join in the server, the consolo show these errors:

[18:47:38] [Server thread/INFO] [FML/]: [Server thread] Server side modded connection established
[18:47:38] [Server thread/DEBUG] [mixin/]: Mixing text.MixinClickEvent from mixins.common.core.json into net.minecraft.event.ClickEvent
[18:47:38] [Server thread/TRACE] [mixin/]: Added class metadata for org/spongepowered/common/interfaces/text/IMixinClickEvent to metadata cache
[18:47:38] [Server thread/ERROR] [Sponge/]: Could not pass PlayerLoggedInEvent to Plugin{id=EssentialCmds, name=EssentialCmds, version=7.4b-1a795cc}
java.lang.NullPointerException: The location was null!
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:229) ~[minecraft_server.1.8.9.jar:?]
at net.minecraft.entity.Entity.setLocation(Entity.java:324) ~[pk.class:?]
at net.minecraft.entity.Entity.setLocation(Entity.java:297) ~[pk.class:?]
at io.github.hsyyid.essentialcmds.listeners.PlayerJoinListener.onPlayerJoin(PlayerJoinListener.java:66) ~[PlayerJoinListener.class:7.4b]
at org.spongepowered.common.event.listener.JoinListener_PlayerJoinListener_onPlayerJoin11.handle(Unknown Source) ~[?:?]
at org.spongepowered.common.event.RegisteredListener.handle(RegisteredListener.java:86) ~[RegisteredListener.class:1.8.9-1722-3.1.0-BETA-1136]
at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:236) [SpongeModEventManager.class:1.8.9-1722-3.1.0-BETA-1136]
at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:196) [SpongeModEventManager.class:1.8.9-1722-3.1.0-BETA-1136]
at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:276) [SpongeModEventManager.class:1.8.9-1722-3.1.0-BETA-1136]
at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:248) [SpongeModEventManager.class:1.8.9-1722-3.1.0-BETA-1136]
at org.spongepowered.common.SpongeImpl.postEvent(SpongeImpl.java:127) [SpongeImpl.class:1.8.9-1722-3.1.0-BETA-1136]
at net.minecraft.server.management.ServerConfigurationManager.initializeConnectionToPlayer(ServerConfigurationManager.java:326) [lx.class:?]
at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.completeServerSideConnection(NetworkDispatcher.java:239) [NetworkDispatcher.class:?]
at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.access$100(NetworkDispatcher.java:54) [NetworkDispatcher.class:?]
at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher$1.func_73660_a(NetworkDispatcher.java:190) [NetworkDispatcher$1.class:?]
at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:289) [ek.class:?]
at net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:189) [ll.class:?]
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:724) [MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:344) [ko.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:605) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:481) [MinecraftServer.class:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_74]

I’m chinese, so my language is zh_CN……
This is my config:
> afk {
> kick {
> # Sets the amount of time until a player is kicked for being AFK.
> timer=300000
> # When enabled, it enables the kicking of players who are AFK.
> use=true
> }
> # The length of time in millisec until a player is AFK.
> timer=300000
> }
> chat {
> # When set, changes the first character in chat from ‘<’.
> firstcharacter=“<”
> # When set, changes the character after the player name from ‘>’.
> lastcharacter=“>”
> }
> message {
> # Message sent to everyone when a player disconnects.
> disconnect=“&a@p&7离开了”
> # Message when a player first joins the server.
> firstjoin=“”
> # Message sent to a player when they join the server.
> join=“Test\nTe#st2”
> # Message sent to everyone when a player joins.
> login=“&a欢迎&f@p&a加入”
> }
> MySQL Options for EssentialCmds.
> mysql {
> # Name of MySQL Database.
> database=EssentialCmds
> # Address of MySQL Database.
> host=localhost
> # Password for MySQL Database.
> password=pass
> # Port of MySQL Database.
> port=“8080”
> # Enables/Disables MySQL usage for EssentialCmds.
> use=false
> # Username for MySQL Database.
> username=root
> }
> teleport {
> cooldown {
> # Toggles the cooldocion for teleports.
> enabled=false
> # The length of time in seconds until a player teleports.
> timer=10
> }
> }

Is there anything wrong? Thanks~~:slightly_smiling:

Ah this is because your spawn is not set yet. I will fix this soon.

@TillableToast

Will do this soon by tying into PEX.

I’ll fix that

Got it! Thanks for your reply:slightly_smiling:

Hassan,
is it possible to manage the prefixes of players when they are in different groups?

Currently ran into the issue that i belong to two groups and it doesn’t take the prefix of the group with the most rights, but the prefix of the group which is listed first in the perms file. zml pointed in your direction… :wink:

Example:

“UUID”: [
{
“parents”: [
“group:guest”,
“group:mod”
]

will always take the prefix of group guest and never consider the prefix of group mod. If i swap them, it’s the other way around.

@Tzk I’ll need to talk to @zml about how I can manage that, it’s a good question.

1 Like

Release v7.4c:

Tested on SpongeForge 1150

Changes:

  • Minor bug fixes.
  • Added the ability to specify player’s name color using a permissions plugin. You must set the option namecolor to a color. For example, to set a player or group’s name color to blue, use /pex group <group> option namecolor blue

Enjoy this Release! :slight_smile:

2 Likes

once again, http://pastebin.com/UWwqxaiH I am having a problem. i cannot seem to give players permissions to use warps such as “wild1” and “wild2”, i gave them permissions such as (“essentialcmds.warp.use”: 1,) and ( “essentialcmds.warp.use.wild1”: 1 ) please help and tell me what i’m doing wrong.

as the reply above states right now the perm for it is essentialcmds.warp.wild1 in your case so the proper format for the future would be essentialcmds.warp.[warp name]

with the brackets included?

no the end is just the name of the warp you set, no brackets

1 Like

It should be essentialcmds.warp.use now, I’ll double check my code.

Might be a bug on my end.

EDIT: Yeah, it won’t show up in /warps because of a bug on my end. It’s fixed now, so I’ll be releasing a small update in a bit.

1 Like

Release v7.4d:

Tested on SpongeForge 1151

Changes:

  • Minor bug fixes.