Basic Trails
This is a very basic Particle Trails plugin. I originally made it for my server and I thought it could be useful to people who dont need a way too fancy plugin but still want to have trails. It is very lightweight and the current file is only 14.4 Kilobytes!!!
Permission: If per trail perms is not enabled the only permission is trails.trail to be able to use the trails. The permission to apply trails to others is trails.trail.other.
Per Trail perms: You have the option in the config of setting perTrailPerm to true. What this does is makes it so instead of just having one master permission each trail has its own individual permission. It is always trails.{trail name}. So for example the magic trail would be trails.magic. The permission to apply the trails to other players is trails.{trail name}.other so for example trails.magic.other.
Clear: If you want to be able to clear your current trail (why would you want to do that?) you can do /trail clear. Or do the command for the trail you currently have to toggle it off
I am open to feature suggestions :D , If you have an idea/feature you want added post a comment and I will read it and I might add it ;)
Crack Trail: The crack trail is somewhat special. It allows you to have the block break animation of any block in the game by id. Its not in the /trails gui so to activate it you have to do /trail crack {block id} for example /trail crack 1 for the stone break animation.
If you find any bugs you can report them at the github page below
Please make sure you have the latest version before reporting any bugs as they may have already been fixed
Source: The source can be found here: https://github.com/minecreatr/BasicTrails
THANKS FOR OVER 4000 DOWNLOADS!!!
If you are using this plugin on your server feel free to comment with your servers ip and I will add it to the servers page :D
Videos:
While using Spigot 1.8, the trails never show up for other or myself. However no console errors :P
Can you please fix this :] <3
@OfficialJetemonMaster
You mean the plugin.yml?
could you add the resources in github
@acommentator
Not at the moment but I will work on adding that :)
Edit: Added in 0.0.1g
Is there a way to set trails for other players? like /trail (player) magic?
@jwpwnz
I havn't tested it with 1.8 yet, I will look into updating it
Edit: Updated to 1.8 :D
Using spigot 1.8 i type/trail and click on one it says it works but i dont see a trail nor do other players?
This is great! First functional trails plugin I've found, and it comes with a GUI and everything! Keep up the good work! ;)
As a side note, perhaps you could make the colorful trails such as redstone and potion colorable? Like any given user could do /trail dust (color). That would be cool.
@SyTeck
Yeah, I removed the unnecessary reflection.
@Minecreatr
You should update Github too so people get the correct source.
Why not to use reflection when it's not necessary:
But it's your plugin and you're entitled to do whatever you want with it :)
@Minecreatr
While you're on a roll, haha, Could you add a button in the GUI and command to turn your trails off? Thanks!
Edit : Just Noticed in the Source that the command is /trail clear. U should probably put that somewhere here on the page.
@SyTeck
Why not
Edit: Actually I am going to remove that
Edit2: Removed
@Minecreatr
Ok, thanks so much!
Just a quick question, why would you use reflection to register commands?
@Minecreatr
@DrkMatr1984
I am currently actually working on a slight change to the permission system, I will comment on the pull request saying what to do to make it compatible (not that much)
Can you do this to block people without the perm from opening the GUI?
public class CommandTrailsGui extends AbstractCommand{
public CommandTrailsGui(){ super("trails"); }
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args){ if ((sender instanceof Player && sender.hasPermission("trails.trail"))){ Trails.openTrailsGui((Player)sender); return true; } else { if(!(sender instanceof Player)) sender.sendMessage(Trails.prefix+"Sender must be player!"); if((sender instanceof Player && !(sender.hasPermission("trails.trail")))) sender.sendMessage(Trails.prefix+"You dont have permission to use trails!"); return true; } } }
I'd do it myself but I don't have the LIbrary you mention on GitHub and don't wish to add it into the Source. Besides, It's probably generally a good idea. Thanks!
Edit : Added a pull request to your Github. If you could, could you compile this for me since you have the missing dependency and either Inbox me a dropbox link or Upload the result here @ dev.bukkit.org? Thanks you!
@TWSSYesterday
Ok I added the source ;)
@thatguywhohatesyou
That sounds cool :) , I would love to check out your server!
Good job. My players will like this.
First Public plugin :D