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! :-)
-
View User Profile
-
Send Message
Posted Jun 29, 2013How can I make it so when a player joins a server or teleports to spawn they make a particle effect?
-
View User Profile
-
Send Message
Posted Jun 29, 2013@alek123222
I already uploaded the fix, now we just have to wait for the bukkit-dev admins to approve it :), but they're pretty fast normally.
-
View User Profile
-
Send Message
Posted Jun 29, 2013Will do amazing trivial plugin buddy, mistakes happen :D Cant wait for the fix
-
View User Profile
-
Send Message
Posted Jun 29, 2013@DmNova
I can't access the image...can you try to upload it on a different website?
-
View User Profile
-
Send Message
Posted Jun 29, 2013@alek123222
Ooops, must have forgotten that line of code...sorry about that. It should be fixed in 1.7.2, can you confirm this?
-
View User Profile
-
Send Message
Posted Jun 28, 2013anytime i teleport it says COMMAND
-
View User Profile
-
Send Message
Posted Jun 28, 2013Wen i write /spawn i get this. http://www.part.lt/perziura/5cebfe5c6eaa2e808fae5404c28abd18591.png
-
View User Profile
-
Send Message
Posted Jun 27, 2013@mat41997
I updated it to 1.5.2. If you have any issues, please let me know
-
View User Profile
-
Send Message
Posted Jun 27, 2013@mat41997
What do you mean exactly? Which effect should be played and when?
-
View User Profile
-
Send Message
Posted Jun 26, 2013add this efect to pvp and pve
-
View User Profile
-
Send Message
Posted Jun 26, 2013update to 1.5.2
-
View User Profile
-
Send Message
Posted Jun 8, 2013@IMathe172I
Didn't show up on my test server either. Only when defaults started joining the main server did I start seeing this error.
-
View User Profile
-
Send Message
Posted Jun 8, 2013@alanthya
Can you provide some additional information? I tested build #909 and didn't notice any problems when joining the server
-
View User Profile
-
Send Message
Posted Jun 8, 2013Error on player join, running Spigot build #909
http://pastie.org/8023978
-
View User Profile
-
Send Message
Posted Jun 7, 2013@MisterMystery
That's weird... What Bukkit version are you using? And are you sure you set both "teleparticles.particles" and "teleparticles.sound" for all players? You shouldn't need to change anything in the config, you can leave the default one. [Edit: I was on my test server and installed eTeleport, but I didn't notice any difference]
-
View User Profile
-
Send Message
Posted Jun 4, 2013This is my config file:
maxDelay: 50 commands: - spawnParticles: 1 argRegex: '' command: spawn playSound: 1 version: 3 minParticleDistance: 1 minSoundDistance: 1 locations: []
Do I need to add commands? I'm using eteleport plugin.
-
View User Profile
-
Send Message
Posted Jun 4, 2013This doesnt seem to work with my users.
Works great for me as admin, but when I try to tp players around they don't get the effects. I've set permissions for them and when I tp to them, its fine, but not anyone else.
I haven't done anything with locations or anything fancy. I just want the /tp to work for everyone. Does it not do this? Do I need to mess around with fancy settings? Do they have to be OPs?
-
View User Profile
-
Send Message
Posted Jun 2, 2013@N1T3SLAY3R
what bukkit version are you using? is there any specific action that causes this error? Or is it at least limited to teleporting between worlds or similar?
-
View User Profile
-
Send Message
Posted Jun 2, 2013new random issue: 2013-06-02 03:02:01 [SEVERE] Could not pass event PlayerTeleportEvent to TeleParticles v1.5 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:478) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:463) at org.bukkit.craftbukkit.v1_5_R3.entity.CraftPlayer.teleport(CraftPlayer.java:375) at org.bukkit.craftbukkit.v1_5_R3.entity.CraftEntity.teleport(CraftEntity.java:194) at net.citizensnpcs.npc.entity.HumanController.createEntity(HumanController.java:24) at net.citizensnpcs.npc.AbstractEntityController.spawn(AbstractEntityController.java:28) at net.citizensnpcs.npc.CitizensNPC.spawn(CitizensNPC.java:179) at net.citizensnpcs.npc.CitizensNPC.load(CitizensNPC.java:130) at net.citizensnpcs.api.npc.SimpleNPCDataStore.loadInto(SimpleNPCDataStore.java:36) at net.citizensnpcs.Citizens$1.run(Citizens.java:273) at org.bukkit.craftbukkit.v1_5_R3.scheduler.CraftTask.run(CraftTask.java:58) at org.bukkit.craftbukkit.v1_5_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:344) at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:509) at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:227) at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:472) at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:404) at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573) Caused by: java.lang.NullPointerException at org.bukkit.craftbukkit.v1_5_R3.CraftWorld.playEffect(CraftWorld.java:890) at org.bukkit.craftbukkit.v1_5_R3.CraftWorld.playEffect(CraftWorld.java:881) at li.powersurf.lukas172.plugins.TeleParticles.TeleParticlesListener.onPlayerTeleport(TeleParticlesListener.java:78) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 19 more
-
View User Profile
-
Send Message
Posted Apr 16, 2013@tenten8401
Ooops, must have made a mistake there...thanks for mentioning it :-)