Notify
Introduction:
Notify is a plugin for server owners who host their server on their own computer. On certain events Notify will play a sound that will alert the server host that the event has occurred. Never again will you check the console and notice that multiple players have played on your server without you being aware of it.
Features:
- Detects chat, join, and quit events.
- All sounds can be customized.
- Play unique sounds when a keyword is detected in chat or a specified player logs in/out.
- Supports WAVE, AU, and MIDI file playback.
- Enable or disable the sounds while the server is running.
- Sounds can be played via commands.
- Volume control.
Commands:
Command | Description |
/notify | Display plugin info. |
/notify help | Display plugin help. |
/notify help aliases | Display command aliases. |
/notify reload | Reload the configuration. |
/notify testsound <default/chat/join/quit> | Play the specified sound. |
/notify sound enable | Enable event sounds. |
/notify sound disable | Disable event sounds. |
Permissions:
- notify.admin: Gives access to all Notify commands.
- notify.help: Allows the user to view plugin help.
- notify.reload: Allows the user to reload the configuration and sound system.
- notify.update: Alert this player if an update is available when they log in.
- notify.testsound: Allows the user to play any sound to the console.
- notify.sound.enable: Allows the user to enable the sound system.
- notify.sound.disable: Allows the user to disable the sound system.
This plugin utilizes Hidendra's plugin metrics system. Click here to learn about the data it collects and how to disable it. A daily update checker is also included, which can be disabled in the configuration.
----------------------------------------------------------------------------
Main | Changelog | Configuration
@keytastic
I originally made it for my server, which is reasonably small. If it does begin to annoy you, or you do not want sounds to be played for some other reason, you can disable the sounds at any point you wish and re-enable them at a later time. I use it so that I will notice when players come on my server when I am at my computer, and I disable it when using my computer to work on other tasks such as homework or programming. I would not recommend using it on a really large server, as sounds would be playing too often to have much of a use.
Does anyone use this on a small home server (10 slots)? If so, does it get annoying? It sounds really cool, but... on the other hand, it could get really annoying.
Please make some sort of support for remote servers. :) Would be much appreciated. :)
If you could make this send me a twitter message and/or play a sound, this will be my favourite plugin ever.
@MysticCity
Are you using the default settings and sounds while running the plugin, or have you edited the configuration or sound files? Also, try and see if running Notify on a test server (newly generated and using no other plugins) works. I am unable to reproduce the error on my computer, and I cannot tell exactly what is wrong from the stack trace.
Java: 7
Bukkit: 1.4.5 r2
Notyfy: 1.2.2
Server: Win 2008
I get this error if a Start the Server and any Player Join.
@MysticCity
Please specify your operating system (brand and version), the version of Java you are using, the CraftBukkit version the server is running, and when the error occurs. I'm not quite sure what is causing the problem yet. Hopefully I'll be able to fix it soon.
Thanks,
HollowCube.
I get this all Time:
2012-12-04 10:13:25 [SEVERE] Could not pass event PlayerJoinEvent to Notify v1.2.2 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:341) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at net.minecraft.server.ServerConfigurationManagerAbstract.c(ServerConfigurationManagerAbstract.java:153) at net.minecraft.server.ServerConfigurationManagerAbstract.a(ServerConfigurationManagerAbstract.java:93) at net.minecraft.server.NetLoginHandler.d(NetLoginHandler.java:132) at net.minecraft.server.NetLoginHandler.c(NetLoginHandler.java:45) at net.minecraft.server.DedicatedServerConnectionThread.a(DedicatedServerConnectionThread.java:44) at net.minecraft.server.DedicatedServerConnection.b(SourceFile:29) at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:595) at net.minecraft.server.DedicatedServer.r(DedicatedServer.java:222) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:493) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:426) at net.minecraft.server.ThreadServerApplication.run(SourceFile:856) Caused by: java.lang.IllegalArgumentException: No line matching interface Clip supporting format PCM_SIGNED unknown sample rate, 16 bit, stereo, 4 bytes/frame, big-endian is supported. at javax.sound.sampled.AudioSystem.getLine(Unknown Source) at javax.sound.sampled.AudioSystem.getClip(Unknown Source) at me.HollowCube.notify.PlaySound.<init>(PlaySound.java:25) at me.HollowCube.notify.PluginListeners$PlayerJoin.playerJoin(PluginListeners.java:57) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:339) ... 14 more
@deleted_9935739
I could make a plugin that would play sounds to players on the same 3 events as this, but I would only be able to play Minecraft sounds to the players through the client. You can choose the sounds you'd like from http://jd.bukkit.org/apidocs/org/bukkit/Sound.html. The plugin will only play the sounds to players with a certain permission node so you can choose who will be sent the sounds.
I'm looking for something exactly like this but to play for certain or all players using game sounds. VariableTriggers can do this but it has too many extra features and is really CPU/RAM intensive to be used just for that.
@HollowCube
Support for *all* bukkit events.. o_O (how many are there?)
It sounds like a plan. I'll have my fingers crossed for you ;-)
/doorslam :D
@ThisUsernameIsMine
I think I'm going to try to add an option in the configuration that would allow support for all Bukkit events. For example, you would open the configuration, and add these lines:
event-1: PlayerGameModeChangeEvent
event-1-directory: "%Notify% aSound.wav"
Then I would have my plugin search through the configuration and find the values of event-1, if it exists find the values of event-2, etc. Then it would register a listener for all of the events that you guys enter into the configuration. Also, I might make it so that %Notify% is the same as the ./plugins/Notify/Sounds directory. Just some ideas I'm going to throw out there.
@HollowCube
hm, not really. I already changed the join and leave sounds to a doorbell and doorslam, lol.
@ThisUsernameIsMine
Sure. Any suggestions for the sound?
How about:
- player-death
- gamemode switch/change
@speaw
I'll be looking into finding the event you want to have a sound played on. I may not include it in this plugin but instead PM you a separate version, unless others would like this to be supported by Notify as well.
EDIT: I'll see what I can do. Now that I think of it it wouldn't make sense to include in another seperate plugin, as it would go outdated, etc. I'm thinking about adding a second (optional) configuration that would contain all of the events supported by Bukkit and events from other plugins that are requested, but I haven't found a way to do this quite yet. Sometime in the next little while I'll look into adding this to my plugin.
Bukkkit games- Before you start the game there is the counter to add sound. I'm sorry, my English is bad.
@speaw
I'm sorry, but could you explain in more detail what you mean by this? Would you like me to add in a listener for an event that has to do with BukkitGames? I need you to tell me exactly what event you want my plugin to listen for before I'm able to implement it.
Bukkitgames event?