marcelo-mason / PreciousStones

Self-service protection for Minecraft servers
http://dev.bukkit.org/server-mods/preciousstones/
56 stars 66 forks source link

Teleporter broken? #1069

Closed Omanoctoa closed 7 years ago

Omanoctoa commented 7 years ago

Hello! I've been trying to work out teleport flags to create a simple, player-oriented teleportation mechanic. Basically, players place 2 fields and give them the same names, then can sneak within that field to teleport. Here's a snippet...

`

The fields place and can be named no problem, but do nothing. Any thoughts? To me understanding this should work as is...but isn't. I've tried it with and without the global ^teleport-on-sneak flag, and yes, I have permission :)

krustymk commented 7 years ago

Pretty sure the destination and teleport have to be on separate stones

Omanoctoa commented 7 years ago

On the Field Flag Reference, it says teleport and destination can be on the same teleport field, giving it two-way abilities. I've searched around for more documentation on the teleport flags but haven't found anything on them.

Omanoctoa commented 7 years ago

Still not working. Did a test with a few other flags, etc.

enable-with-redstone: true
teleport-players-on-enable: true
teleport-if-walking-on: [22, 123, 124, 157]

Added these 3 and tested in a variety of ways. Debug shows [Server] INFO Omanoctoa entered a Teleporter field but apart from me renaming both fields to the same name, nothing else appears in console.

I considered trying to hook the field into WorldGuard Anchors, and using WG to teleport players to an anchor they create when they place the field, but I haven't figured out how to remove the Anchors when they break the field, or how to specify the teleport location. I'd prefer not to use this method...

Help?

Omanoctoa commented 7 years ago

After a week of trying to figure this out, I found out why it wasn't working. It had nothing to do with the configuration or the flags. Apparently by giving myself and any players all the permissions...I also gave them preciousstones.bypass.teleport which disables teleporters for that player. In order to make it work, I had to either remove that perm or negate it (for myself).

So, mostly solved! Now i just have to figure out why it only partially teleports me!