TeleParticles
Currently, this plugin is not under active development (I don't plan to add anything), I'll try however to fix any bugs found. If you have new ideas or are just interested, the source code can be found on Github
Features
- Adds sounds and particles when a player teleports
- Supports permissions
- Automatically disables effects if player is vanished with VanishNoPacket
- Supports PossessEm': Only the appropriate effects for the possessed player are played
- You can configure a list of commands with special treatment. Each command has four settings (Note that the player needs to teleport, so you can't add sounds to the /time command for example)
- It is possible to configure a command differently depending on the used arguments (see the example config below)
- You can configure a list of locations that trigger or disable effects if you teleport from/to them (or even from one to another)
- Configurable minimum-distance for sounds and effects
- You can tell the plugin to ignore any teleports with UNKNOWN as cause - this should disable any effects for entering minecarts and similar
- You can edit everything ingame using commands, so no need to edit the config file
Settings explanation
For every command/location you define, you can specify to controllers that affect the effects(particles/sound) being played:
- deny - this disables any effects, no matter what
- none - use this if you don't want the command/location to have any effect on what's being played
- force - this forces the effects for everyone (note that deny is "stronger", so if both deny and force are triggered for a teleport, no effect will be played) You can define two separate values for particles and sound
For a command, you can additionally define a value for argRegex. This is a regular expression that must match the argument of the command being used (default is .*, this allows any arguments) For locations, you can specify both from and to (or only one), each with a tolerance (it describes the maximum distance the real teleport start/target can have from the specified one) There's an additional setting: maxDelay. It defines the maximum amount of time between the command and the teleport of a player in milliseconds. (This is necessary since the plugin can't determine the command name of the command used to teleport the player, so it listens to all commands, and if a player teleports in a given interval after he issued a valid command, it plays the defined effects) The allowed format for all these settings are below.
Permissions
- teleparticles.particles - Enables teleport particles.
- teleparticles.sounds - Enables sound when teleporting.
- teleparticles.reload - Allows the player to reload the config.
- teleparticles.readmodify - Allows the player to read and modify any settings using the commands.
Commands
- /teleparticles reload/rld - reloads the configuration file from disk
- /teleparticles maxDelay/mD [<value>] - gets/sets the value
- /teleparticles minParticleDistance/mPD [<value>] - gets/sets the value
- /teleparticles minSoundDistance/mSD [<value>] - gets/sets the value
- /teleparticles ignoreUnknown/iU [<value>] - gets/sets the value
- /teleparticles commands/cmd - outputs a list of all configured commands (here you can get the id of a command)
- /teleparticles commands/cmd delete/del/d <id> - deletes the command with the specified id
- /teleparticles commands/cmd modify/mod/m <id> <data> - modifies the command with the specified id (the data format is explained below)
- /teleparticles commands/cmd add/a <command> <data> - adds a new command with the data specified (the data format is explained below)
- /teleparticles locations/loc - outputs a list of all configured locations (here you can get the id of a location)
- /teleparticles locations/loc delete/del/d <id> - deletes the location with the specified id
- /teleparticles locations/loc modify/mod/m <id> <data> - modifies the location with the specified id (the data format is explained below)
- /teleparticles locations/loc add|a <newData> - adds a new location with the data specified (the data format is explained below)
- /teleparticles matchingLocations|mLocations|matching|mL|nearbyLocations|nLocations|nearby|nL - outputs a list of all configured locations that match the current position
Data format (only for commands)
There are two possible formats for <data>:
- A simple list: <argRegex> [<spawnParticles>] [<playSound>] (for commands) or <from> [<to>] [<spawnParticles>] [<playSound>] (for locations)
- A list containing <id>:<value> pairs, where <id> can be:
- argRegex/arg/a (for argRegex)
- spawnParticles/particles/p (for spawnParticles)
- playSound/sound/s (for playSound)
- from|f (for from)
- to|t (for to)
Data format (for everything)
For the locations, there are three possible formats:
- <world>,<x>,<y>,<z>,<tolerance> (for a specific location)
- * (to allow any location, useful to reset values using the modify commands)
- #,<tolerance> (# means that it will use the current position of the player using the command, so it's no usable from the console or in the config file)
For the spawnParticles and playSound controllers there are three possible values:
- -1/deny/d (to deny any effect)
- 0/none/n (to not affect anything)
- 1/force/f (to deny any effect)
Installation
Just put the TeleParticles.jar file into the "Plugins" folder. There you go :)
Bugs/Problems
If you enter/leave any sort of vehicle, effects are triggered which isn't really nice and usefull There's now a config option to ignore any teleports with cause UNKNOWN. I don't know any teleport-cause except entering/leaving a vehicle that is UNKOWN, so it should work. If the effects aren't triggered in any other situation, set the ignoreUnknown-value to false to see if it works. (Be sure to report it, too)
If you find anything else, please report it! :-)
Nice plugin! but it didn't work with 1.12.2 :(
Don't spawn sounds and particles in 1.10.2. Also have some errors in chat, posted below by alanthya.
Works fine with 1.9 ???
Found this bug in 1.8.8 where if you press against an anvil while flying, it spams the teleportation sound effect..
Getting this error since updating to 1.9 http://pastebin.com/hY278sTM
@xbenas
yep
Does this work on 1.8.3 spigot?
@CNCcamon1
Which script do you mean? If you mean the source code, I can try to add an option if you can describe what you mean exactly. As of now, there is no option to change the effect, because I couldn't come up with more than one
Quick question - How do I actually modify the effect that happens when teleporting? I want to make it star trek-style. I have all the assets I need, but the script you have there for creating an effect is super confusing.
Darn i was making this plugin and was looking for the particles code and found this. Oh well u beat me to the punch. :P Ill see what i can do with updating it? Also ill still make the code and then ill send u in the jar plugin.
Is this plugin for 1.7.4? if not please update it.
@MisterMystery Omg O.o. I'm really sorry for that mistake - I don't even know how I was able to run the plugin at all (not to speak of a successful test). I'll upload a fix immediately.
Error :(
05.08 17:59:00 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173) 05.08 17:59:00 [Server] INFO at java.lang.Class.forName(Class.java:266) 05.08 17:59:00 [Server] INFO at java.lang.Class.forName0(Native Method) 05.08 17:59:00 [Server] INFO at java.lang.ClassLoader.loadClass(ClassLoader.java:356) 05.08 17:59:00 [Server] INFO at java.lang.ClassLoader.loadClass(ClassLoader.java:423) 05.08 17:59:00 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53) 05.08 17:59:00 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:80) 05.08 17:59:00 [Server] INFO at java.net.URLClassLoader.findClass(URLClassLoader.java:354) 05.08 17:59:00 [Server] INFO at java.security.AccessController.doPrivileged(Native Method) 05.08 17:59:00 [Server] INFO at java.net.URLClassLoader$1.run(URLClassLoader.java:355) 05.08 17:59:00 [Server] INFO at java.net.URLClassLoader$1.run(URLClassLoader.java:366) 05.08 17:59:00 [Server] INFO Caused by: java.lang.ClassNotFoundException: mathe172.minecraft.plugins.TeleParticles.TeleParticles 05.08 17:59:00 [Server] INFO at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582) 05.08 17:59:00 [Server] INFO at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:391) 05.08 17:59:00 [Server] INFO at net.minecraft.server.v1_6_R2.DedicatedServer.init(DedicatedServer.java:106) 05.08 17:59:00 [Server] INFO at net.minecraft.server.v1_6_R2.DedicatedPlayerList.<init>(SourceFile:11) 05.08 17:59:00 [Server] INFO at net.minecraft.server.v1_6_R2.PlayerList.<init>(PlayerList.java:56) 05.08 17:59:00 [Server] INFO at org.bukkit.craftbukkit.v1_6_R2.CraftServer.<init>(CraftServer.java:217) 05.08 17:59:00 [Server] INFO at org.bukkit.craftbukkit.v1_6_R2.CraftServer.loadPlugins(CraftServer.java:239) 05.08 17:59:00 [Server] INFO at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230) 05.08 17:59:00 [Server] INFO at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305) 05.08 17:59:00 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:184) 05.08 17:59:00 [Server] INFO org.bukkit.plugin.InvalidPluginException: java.lang.ClassNotFoundException: mathe172.minecraft.plugins.TeleParticles.TeleParticles 05.08 17:59:00 [Server] SEVERE Could not load 'plugins/TeleParticles.jar' in folder 'plugins'
Getting this Error:
[SEVERE] Could not load 'plugins/TeleParticles.jar' in folder 'plugins' 12:33:01 PM PDT CONSOLE: java.lang.ClassNotFoundException: mathe172.minecraft.plugins.TeleParticles.TeleParticles 12:33:02 PM PDT CONSOLE: [WARNING] Could not get latest artifact information: FileNotFoundException 12:33:02 PM PDT CONSOLE: [WARNING] Could not get preferred channel details: FileNotFoundException 12:33:02 PM PDT
any thoughts?
I updated to 1.6.2-R0.1 and added a config option to adress the issues with minecarts and other vehicles. (It might take a bit until you can download it, the admins always check new files)
@pierocks618
Sorry for the long pause - I wasn't at home for a while. What are you doing exactly? Could you send me the complete log file of the server as a private message?
@mathe172 sorry about the font thing Lol. Ok i really want this plugin but where i dowload it and put it into the plugins folder it doest show up. If you can help me i would love that **
p.s if you can help me my skype is pierocks618
@pierocks618
Could you tell me what issues you have instead of justz unsing an incredibly huge font? I should have time to look into it in the next few days, but it would be easier if I have something to focus on.
when will this work for 1.6.2
works in 1.6
Works perfectly fine now, thank you so much for such a quick fix!